(ios) Apple Mach-O Linker Error
datnguyen0606 opened this issue · 2 comments
datnguyen0606 commented
Hi,
I got error "Apple Mach-O Linker Error" when trying to build the app from XCode.
Could you guys help me to figure out how to fix this issue?
Thanks
sahil-innostax commented
Open YourAppName.xcworkspace instead of YourAppName.xcodeproj and build again
johanarnor commented
We also had a similar issue, when running custom configuration (something other than Debug/Release, e.g Staging).
I think it is somewhat related to facebook/react-native#11813, and even though it looked like facebook/react-native#11813 (comment) would solve our issue, that was not the case.
Instead, I opened YourAppName.xcworkspace as @sksahil030 suggested and relinked libPods-YourAppName.a
with the following steps
- Press
YourAppName
in the Project navigator - Select
YourAppName
as the target - Go to
General
and scroll down toLinked Frameworks and Libraries
- Remove
libPods-YourAppName.a
and add it again (either by + or drag it from Pods -> Products)
Hope this helps anyone with a similar issue!