react-native-hockeyapp
react-native-hockeyapp copied to clipboard
(ios) Apple Mach-O Linker Error
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
Open YourAppName.xcworkspace instead of YourAppName.xcodeproj and build again
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 https://github.com/facebook/react-native/issues/11813, and even though it looked like https://github.com/facebook/react-native/issues/11813#issuecomment-285224076 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!