ld: framework not found Darkly for architecture x86_64
apolishch opened this issue · comments
This happens every time I try to run react-native run-ios. I have attempted to follow both the semi automatic process and the manual process.
I am on RN 0.46
Any suggestions would be very welcome! Thanks!
Hey @apolishch!
Sorry for late response,
Just checked installation steps on clean react-native@0.46.3 app. Here are the steps I just performed with screenshots:
Terminal:
react-native init --version 0.46.3 rnld
cd rnld
yarn add react-native-launch-darkly --save
react-native link react-native-launch-darkly
open ios/rnld.xcodeproj
XCode:
- "Right click" folder name same as app name in navigator and select
Add Files to "rnld"
- Navigate to node_modules/react-native-launch-darkly/ios and select
Darkly.framework
- Now in project settings, from
Targets
=>rnld
underGeneral
tab click+
for sectionEmbedded Binaries
. SelectDarkly.framework
- You should end with something like that:
Let me knows if these steps help you.
Best regards,
PJ
Following these instructions does change the error message to the following:
The following build commands failed:
CompileC /Users/abrahampolishchuk/github/flock/flock-react-app/ios/build/Build/Intermediates.noindex/RNLaunchDarkly.build/Debug-iphonesimulator/RNLaunchDarkly.build/Objects-normal/x86_64/RNLaunchDarkly.o RNLaunchDarkly.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
Installing build/Build/Products/Debug-iphonesimulator/flockCover.app
An error was encountered processing the command (domain=IXErrorDomain, code=13):
Failed to get bundle ID from /Users/abrahampolishchuk/github/flock/flock-react-app/ios/build/Build/Products/Debug-iphonesimulator/flockCover.app
Print: Entry, ":CFBundleIdentifier", Does Not Exist
Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/flockCover.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist
(possibly unrelated aside), have since upgraded to RN ^0.49