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

Configure CocoaPods properly #174

Closed
2 tasks
alexsegura opened this issue Mar 31, 2019 · 0 comments · Fixed by #212
Closed
2 tasks

Configure CocoaPods properly #174

alexsegura opened this issue Mar 31, 2019 · 0 comments · Fixed by #212
Milestone

Comments

@alexsegura
Copy link
Member

alexsegura commented Mar 31, 2019

We are using CocoaPods because some libraries (like react-native-maps & tipsi-stripe) need it.
But, it is complicated because React Native doesn't support it really well.

From what I understand, the problem is that when using CocoaPods, some libraries are included twice. Because there is code which is included via the Pods project AND via the main project.

Capture d’écran 2019-03-31 à 12 53 42

Capture d’écran 2019-03-31 à 12 53 55

This is explained in cocoapods-fix-react-native

The code below in ios/Podfileshould fix the problem, this is explained on react-native-maps documentation

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

Related GitHub issues:

Related StackOverflow questions:

Some maybe helpful articles:


  • Configure the project properly
  • Document how to properly link libraries in the future

Linked with #173

@alexsegura alexsegura added this to the 0.18.x milestone Sep 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant