Closed skizzo closed 5 years ago
Okay, seems like I didn't properly set this up initially.
It turns out that I put the wrong path to ViroKit
into my Podfile
, since I don't use use_frameworks!
, I should have just followed the instructions on the Integrating w/o use_frameworks! (Cocoapods) docs page and actually put
pod 'ViroKit_static_lib', :path => '../node_modules/react-viro/ios/dist/ViroRenderer/static_lib'
there (instead of pod 'ViroKit', :path => '../node_modules/react-viro/ios/dist/ViroRenderer/'
, which only works when using use_frameworks!
). Duh. Closing this myself, thank you very much.
Hi,
first and foremost, thanks for this amazing library! I really want to integrate it into my existing RN project, but I just can't make it work without using
use_frameworks!
in myPodfile
. Using it is not an option, it would break many of my other dependencies in the project.I am aware that there are similar issues (Cannot upgrade to v2.3.0 because of use-frameworks!, Issues building for iOS and use_frameworks) but most of them are almost a year old and none of the suggested solutions there could fix my problem.
The error
No matter what I do, I always end up getting this error when running the debug version on the iOS simulator, on app launch, showing up in the XCode console:
dyld: Library not loaded: @rpath/AWSCore.framework/AWSCore Referenced from: /Users/steff/Library/Developer/CoreSimulator/Devices/A71C73DE-6CAC-4FDD-A80D-29FA591D731B/data/Containers/Bundle/Application/19BB82C8-75FC-4B19-B124-EAFEB55FAEBC/iazzu.app/Frameworks/ViroKit.framework/ViroKit Reason: image not found
Steps to reproduce
Your docs page Integrating w/o use_frameworks! (Cocoapods) suggests that starting with version 2.8.0, users are not forced to use
use_frameworks!
any more ("Starting with ViroReact 2.8.0 we have started including our static library (without the need for relying on use_frameworks! in the ViroReact package that you get from npm itself."). As great as this sounds in theory, it doesn't work and leads to the error mentioned above.What I do to install react-viro, step by step:
"react-viro", "2.13.0"
to my package.jsonnpm install
pod 'ViroReact', :path => '../node_modules/react-viro/ios/'
andpod 'ViroKit', :path => '../node_modules/react-viro/ios/dist/ViroRenderer/'
to myPodfile
, along with this little post install script to prevent the error with vlog_is_on.oo. <-- See the comment below, this was the mistakepod install
in the iOS directoryEnable Bitcode
toNo
in project settingsWhat I tried to fix the error
Disclaimer: I have no idea what I'm doing, just trying everything here.
Added
libViroReact.a
(node_modules/react-viro/ios/dist/static_lib/libViroReact.a
) to the Link Binary with Libraries section in my target. Same error.Added
ViroKit.framework
(node_modules/react-viro/ios/dist/ViroRenderer/ViroKit.framework
) to the Link Binary with Libraries section in my target. Same error.Followed the instructions here and added the AWS iOS SDK to my project using Carthage, and effectively added
AWSCore.framework
andAWSDynamoDB.framework
to my project. Same error.Environment
react-viro 2.13.0
,react-native 0.57.7
Podfile
So here's the content of my Podfile, just in case:
Thanks for pointing me into the right direction folks.