react-native-hockeyapp icon indicating copy to clipboard operation
react-native-hockeyapp copied to clipboard

(ios) Apple Mach-O Linker Error

Open datnguyen0606 opened this issue 7 years ago • 2 comments

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

datnguyen0606 avatar Jun 06 '17 13:06 datnguyen0606

Open YourAppName.xcworkspace instead of YourAppName.xcodeproj and build again

sahil-innostax avatar Jun 12 '17 12:06 sahil-innostax

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 to Linked 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!

johanarnor avatar Jun 27 '17 20:06 johanarnor