-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
iOS build fails after update to 2.9.0 #6
Comments
I can confirm that it's not building with cyclic dependency errors with following environments:
v2.8.7 builds only for release if bitcode is enabled. |
@buraktt I solved this by deleting the command line tool. but just in case, do these first. if this doesn't work.
and you get to install xcode command line tool again.
|
@oojikoo I tried your suggestions and ended up with same errors. Even creating a new project with only dependency as react-native-sip yielded same results. I think I'll stick to 2.8.7 for now. |
Chiming in to say that I experience the cyclic dependency issue as well. On 2.9.0 I experience it when building to both physical devices and the Simulator. On 2.8.7 I can get it to build to the Simulator, however physical devices fail with "please specify target machine". If I apply patching manually to specify a target, I also get the cyclic dependency issue on 2.9.0. I'm going to keep digging around to see if I can fix it, but since my experience with both PJSIP, iOS, and React Native is all fairly limited I won't make any promises. |
a while After one successful build, I happened to clean the ios build and and.... I figured out this. It worked multiple times on me whenever the errors happened.
please let me know if this works on you guys. |
tried and still not working |
Suddenly my 2.8.7 build also started to give cyclic dependency errors. I had made a folder backup when it was building ok. Tried to build and had success, after doing pod install it started to give cyclic dependency errors again. (I realized pod install changes Podfile.lock too) Compared the pod files; difference was cocoapods version (current 1.9.0, old was 1.8.4) & react-native-device-info was installed later. After downgrading cocoapods to 1.8.4 & removing react-native-device-info
and changing the build config as follows: Project: Target: Pods Project: react-native-sip: the build was successful, I'll try with 2.9.0 when i have time (same path should work) |
@buraktt Hi. Can you share the work project with installed react-native-sip? |
I'm having the same issue... any advance or reliable solution? |
Howdy. I've been struggling with this for the last few days and I think I've found a solution. After some detective work and looking into the error stack trace, I noticed some stand out references in the iOS code that appeared to have conflicts leading to this error. After researching, I found some info about Header Leaks. Cocoapods has a thing where it maps all the pod headers into one location, and this could cause conflicts. My hunch was that our code was leaking some headers that were affecting the compiling of the other frameworks (Foundation, Darwin, etc). I found a xconfig setting that allows disabling the mapping of the headers of this module. After applying that to RTCPjSip.xcodeproj and the react-native-sip.podspec file, I was able to make this error go away and successfully build on the simulator and a real device. I will link to my fork of the repo so you can see the changes I made and where exactly they go. Hopefully this is able to help. I'll add a note about my fork in case you might want to use it. That latest 2.9.0 version of this repo was causing troubles and also the addition of building the PJSIP libraries with Docker was breaking our CI builds because we don't have docker on there. It also uses our fork of PJSIP-Builder that is running PJSIP 2.8. |
Hi David, Appreciate your effort in making this possible at your side. It is still throwing errors for me. Bitcode is set to No for react-native-sip Showing All Errors Only Undefined symbol: ___cxa_guard_release Undefined symbol: operator new(unsigned long) Undefined symbol: ___cxa_begin_catch Undefined symbol: std::terminate() Undefined symbol: ___cxa_pure_virtual Undefined symbol: vtable for __cxxabiv1::__si_class_type_info Undefined symbol: ___cxa_guard_abort Undefined symbol: vtable for __cxxabiv1::__class_type_info Undefined symbol: ___gxx_personality_v0 Undefined symbol: ___cxa_guard_acquire Undefined symbol: operator delete(void*) Then I tried with your github project by updating my package.json "react-native-sip": "https://github.com/FastPBX/react-native-sip.git" Still it is showing the same issue. Am I missing something here? |
Thanks for your contribution @David-Melo I added It builds perfectly on Simulator, but breaks whenever I try to run on a device or just run a build, I get this error (1 of 21 errors): |
@David-Melo |
I already mentioned adn discussed on #3 .
I think it's not fixed yet.
building on simulator was ok with the previous version 2.8.7 but ios build against physical devices
so I updated to 2.9.0 which fixed the issue. but still it fails.
this is the error message I'm getting.
Environment
The text was updated successfully, but these errors were encountered: