Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update: Add Folly and cleanup to fix folly/Portability.h file not found #39

Merged
merged 1 commit into from
May 10, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 14 additions & 4 deletions ios/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,17 @@ To install with CocoaPods, add the following to your `Podfile`:

# Mapbox
pod 'react-native-mapbox-gl', :path => '../node_modules/@react-native-mapbox/maps'

# Third party
pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'

post_install do |installer|
installer.pods_project.targets.each do |target|
if target.name == "React"
target.remove_from_project
end
end
end
```

Then run `pod install` and rebuild your project.
Expand All @@ -54,13 +65,12 @@ After adding Mapbox.framework it should be listed in your Embedded Binaries:

<!-- ![](https://cldup.com/s4U3JfS_-l.png) -->


### Add React Native Mapbox SDK Files

In Xcode's `Project navigator`, right click on the `Libraries` folder ➜ `Add Files to <...>`. Add `node_modules/@react-native-mapbox/maps/ios/RCTMGL.xcodeproj`.

![](https://s3.systemlevel.com/docs-public/addfilesto.png)


Then in Xcode navigate to `Build Phases` click on it and you should see `Link Binary with Libraries`, we need to add `libRCTMGL.a`.

![](https://s3.systemlevel.com/docs-public/buildphases.png)
Expand All @@ -69,9 +79,9 @@ After you add 'libRCTMGL.a' it should be listed as such:

![](https://s3.systemlevel.com/docs-public/buildphasesadd.png)


### Add Framework Header Search Paths
In the `Build Settings` of your application target search for `FRAMEWORK_SEARCH_PATHS`.

In the `Build Settings` of your application target search for `FRAMEWORK_SEARCH_PATHS`.

![](https://s3.systemlevel.com/docs-public/frameworksearch.png)

Expand Down