Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Linker command failed with exit code 1 (use -v to see invocation) #297
Hello - I searched the issues here as well as in stackOverflow, but cannot seem to find a resolution to this problem.
I followed the manual instructions - https://github.com/mapbox/react-native-mapbox-gl/blob/master/ios/install.md - to install react-native-mapbox-gl for iOS, installing manually onto my Macbook Pro and I am using_ xCode 7.2.x_ .
I am getting an error in xCode and the project fails to build with the following error :
xCode is executing the following command:
general details -
initial thought - do I have to add some file or folder to path? let me know.
Any help is appreciated. thanks - Edward
@bsudekum thanks for responding. I will post a screenshot of xCode setup in a moment but yes I embedded the Mapbox framework in the embedded framework settings under the General Tab for my project.
In the meantime, I thought I would follow up with the following:
(even going further as to add the additional references to my podfile as you described further on in the iOS instructions and updating the node_modules references appropriately, this executed with no errors)
pod 'RCTMapboxGL', :path => '../node_modules/react-native-mapbox-gl/ios'
So having tried both methods on two mac machines I am currently stuck.
Here is the general order of steps I performed in image form as per your request @bsudekum
I then implemented the example and built the project in Xcode.
Here was the result (from one of a number of multiple tests) @bsudekum ...
I also ran the setup against cocoa pods (latest version) and had the native version of Ruby for OSX (I think 2.x) then upgraded to the latest version for OSX.
_notes: in a test I performed today (March 7th, over a week later) I was able to get the example iOS app running by launching the site from the _terminal* using the command
Any update on this, I seem to be getting the same error
Most recent post #741
Seem to have tried many approaches, both via CocoaPods and Manual installation ... neither is currently working for me.
When doing CocoaPods, I get
After removing the project, cloning again, running npm install, and jscodeshift -t react-codemod/transforms/React-PropTypes-to-prop-types.js clustr_app/node_modules/ on my project node modules, I then get the following after the app starts up which is libc++abi.dylib: terminating with uncaught exception of type NSException (lldb)
Thanks very much