Skip to content

[iOS] [!] Invalid Podfile file: The target Pods-projectName already has a platform set.. #4134

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

Closed
farfromrefug opened this issue Nov 14, 2018 · 2 comments

Comments

@farfromrefug
Copy link
Contributor

Environment
Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):

  • CLI: whatever version
  • Cross-platform modules: depends
  • Android Runtime: not used
  • iOS Runtime: 5.0.0 (but happens with all)
  • Plugin(s): examples are nativescript-mapbox and nativescript-plugin-firebase

Describe the bug
Some plugins define platform :ios, '9.0' or whatever other version in their PodFile.
As soon as you 2 plugins doing so your app wont build. You will get the error Invalid `Podfile` file: The target `Pods-projectName` already has a platform set..

I think this comes from nativescript-cli merging Podfiles. Consequently there will be multiple calls to platform :ios and pod will report an error.
This should be handled by the cli.

@Fatme
Copy link
Contributor

Fatme commented Nov 14, 2018

@farfromrefug,

I'm closing this issue as duplicate to #3604. You can track the progress in the original thread.

@Fatme Fatme closed this as completed Nov 14, 2018
@farfromrefug
Copy link
Contributor Author

@Fatme sorry my bad!

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

No branches or pull requests

2 participants