question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Should this library be included using Pods?

See original GitHub issue

Hi there,

Had a bunch of problems because react-native link added a line to ios/Podfile automatically. So I tried to make it work with it in the Podfile, but then the React pod was installed as a dependency and it was a mess.

Is that the expected behaviour? Or should users not use that method?

In the end, coming back to the readme, I removed the line from the Podfile and followed the manual installation steps for iOS and everything seems to work out.

My question is: Should we add to the readme that you should NOT use it with Pods, or add instructions on How to make it work with Pods?

I can do a PR to add a warning, but I wouldn’t how to make instructions properly to make it work with Pods. I feel that you would need to go through all the steps in https://facebook.github.io/react-native/docs/integration-with-existing-apps.html#3-install-cocoapods but I’m not 100% comfortable with that kind of setup.

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:3
  • Comments:8

github_iconTop GitHub Comments

5reactions
fabioh8010commented, May 4, 2018

To prevent React pod to be installed as dependency just add those lines at the end of Podfile:

target 'YourApp' do
  # YOUR PODS
end

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

It’s not a problem with this library 😄

0reactions
jodavagacommented, Aug 26, 2020

same here please

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using Pod Lib Create - CocoaPods Guides
The first question you're asked is what language you want to build a pod in. For both choices CocoaPods will set up your...
Read more >
Cocoapods part 1: Using pods | icapps blog
First of all we need a way to search for available libraries called “pods”. You can search the public pod repository using the...
Read more >
what is the difference between pods and modules
Pods can slow down your build time if there are a lot of dependencies. I noticed this when using Firebase in my project....
Read more >
Create and Distribute Private Libraries with Cocoapods
The most important thing you should keep in mind while creating a private pod is that it requires the creation of two repositories....
Read more >
How To Manage Dependencies With CocoaPods - Cocoacasts
It's time to find out how CocoaPods can help us with Cocoa development. ... that we have access to the Alamofire library we...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found