Skip to content

Platform specified in Podfile conflicts #186

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
hosikiti opened this issue May 12, 2018 · 2 comments
Closed

Platform specified in Podfile conflicts #186

hosikiti opened this issue May 12, 2018 · 2 comments

Comments

@hosikiti
Copy link

hosikiti commented May 12, 2018

Since this plugin specifies platform :ios, '8.0' in Podfile and my plugin specifies platform :ios, '9.0', pod install fails on tns prepare, saying following:

[!] Invalid `Podfile` file: The target `Pods-myapp` already has a platform set..

My Podfile(excerpt) in platform/ios:

use_frameworks!

target "myapp" do

	# Begin Podfile - /Users/***/projects/myapp/node_modules/nativescript-imagepicker/platforms/ios/Podfile
		platform :ios, '8.0'
		pod 'QBImagePickerController', '~> 3.4.0'
	# End Podfile
	
	# Begin Podfile - /Users/***/projects/myapp/node_modules/nativescript-xz-twitter-sdk/platforms/ios/Podfile
		pod 'TwitterKit', '>= 3.3.0'
		platform :ios, '9.0'
	# End Podfile

end

nativescript-xz-twitter-sdk is my original plugin to use TwitterKit and it requires platform :ios, '9.0'.
Is it possible to change platform version of this plugin from 8.0 to 9.0? So I can remove platform specification from my plugin. Otherwise, it would be nice if there'd be any way to resolve this conflicts.

Which platform(s) does your issue occur on?

  • iOS

Please, provide the following version numbers that your issue occurs with:

  • CLI: 4.0.0

Thanks.

@ramoncardena
Copy link

Same problem here with kinvey and imagepicker plugins:

# Begin Podfile - /Users/.../node_modules/kinvey-nativescript-sdk/platforms/ios/Podfile 
 platform :ios, '9.0'
pod 'SAMKeychain', '~> 1.5.2'
 
 # End Podfile 
# Begin Podfile - /Users/.../node_modules/nativescript-imagepicker/platforms/ios/Podfile 
 platform :ios, '8.0'

pod 'QBImagePickerController', '~> 3.4.0' 
 # End Podfile 

end

Which platform(s) does your issue occur on?

iOS

Please, provide the following version numbers that your issue occurs with:

CLI: 4.0.1

@DimitarTodorov
Copy link
Contributor

Fixed with https://github.com/NativeScript/nativescript-imagepicker/releases/tag/v6.0.2

@ghost ghost removed the bug label May 21, 2018
@radeva radeva removed this from the 4.2 milestone May 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants