mirror of
https://github.com/status-im/react-native-mapbox-gl.git
synced 2026-08-31 13:01:15 +00:00
1.2 KiB
1.2 KiB
Manual installation process
Make sure to follow these directions carefully.
First,
npm install react-native-mapbox-gl --save
- In the Xcode's
Project navigator, right click on project's name ➜Add Files to <...>. Addnode_modules/react-native-mapbox-gl/ios/RCTMapboxGL.xcodeproj
- Select your project in the
Project navigator. ClickGeneraltab then addnode_modules/react-native-mapbox-gl/ios/Mapbox.frameworktoEmbedded Binaries. 💥 Important, make sure you're adding it to general ->Embedded Binaries💥
- In the
Build Phasestab, click the plus sign and thenNew Run Script Phase
- Open the newly added
Run Scriptand paste (Only necessary when submitting to the app store, but a good idea to add this now):
"${BUILT_PRODUCTS_DIR}/${FRAMEWORKS_FOLDER_PATH}/Mapbox.framework/strip-frameworks.sh"
- In
Build Phasestab, clickLink Binaries With Librariesand addlibRCTMapboxGL.a
- Add to project, see example
