[!] Invalid `Podfile` file: The target `Pods-projectName` already has a platform set..
See original GitHub issueWhen I install the nativescript-mapbox plugin then run (tns run ios) my project I get this error:
[!] Invalid Podfile file: The target Pods-projectName already has a platform set…
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
[!] Invalid `Podfile` file: The target `Pods-projectName` already ...
When I install the nativescript-mapbox plugin then run (tns run ios) my project I get this error: [!] Invalid Podfile file: The target...
Read more >[!] Invalid Podfile file: The target Pods-MyApp already has a ...
Now I want to integrate CitrusPay using CocoaPod but when i have execute pod install command on terminal then i am getting error...
Read more >Xcode, Pods ProjectName.debug.xcco… - Apple Developer
When I build project, I see build error: ProjectName.debug.xcconfig unable to open file . I couldn't understand my problem for a long time,...
Read more >The Podfile - CocoaPods Guides
The Podfile is a specification that describes the dependencies of the targets of one or more Xcode projects. The file should simply be...
Read more >How To Manage Dependencies With CocoaPods - Cocoacasts
Notice how CocoaPods has already created a target block for the Notes target of the Xcode project. By using a target block, we...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

update the
Podfilein platforms/ios folder. thenpod installfrom that dir.or go into the node_modules folder and remove the
platform :ios, '9.0'line inPodfileof the mapbox plugin.You probably have the same code twice…
For example:
platform :ios, ‘9.0’ target :‘ScreenColorChange’ do use_frameworks! pod ‘AWSCore’, ‘~> 2.9.0’
end
platform :ios, ‘9.0’ target :‘YOUR-APP-NAME’ do use_frameworks! pod ‘AWSAppSync’, ‘~> 2.10.0’
end
Solution: Remove the duplicate code: platform :ios, ‘9.0’ target :‘YOUR-APP-NAME’ do use_frameworks!
and just add the last line to the previous code pod ‘AWSAppSync’, ‘~> 2.10.0’
So it should look like this: platform :ios, ‘9.0’ target :‘YOUR-APP-NAME’ do use_frameworks!
pod ‘AWSCore’, ‘~> 2.9.0’ pod ‘AWSAppSync’, ‘~> 2.10.0’
end end