p-janik / react-native-launch-darkly

React native wrapper for native Launch Darkly SDKs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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:

  1. "Right click" folder name same as app name in navigator and select Add Files to "rnld"

zrzut ekranu 2017-11-27 22 42 56

  1. Navigate to node_modules/react-native-launch-darkly/ios and select Darkly.framework

zrzut ekranu 2017-11-27 22 43 25

  1. Now in project settings, from Targets => rnld under General tab click + for section Embedded Binaries. Select Darkly.framework

zrzut ekranu 2017-11-27 22 43 50

  1. You should end with something like that:

zrzut ekranu 2017-11-27 22 44 02

5. Try to run the app

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