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

CocoaPods instruction for Swift 3.0 in README doesn't work #44

Closed
dennisweissmann opened this issue Sep 10, 2016 · 9 comments
Closed

CocoaPods instruction for Swift 3.0 in README doesn't work #44

dennisweissmann opened this issue Sep 10, 2016 · 9 comments

Comments

@dennisweissmann
Copy link
Collaborator

The CocoaPods instruction

pod 'DeviceKit', '~> 1.0'

doesn't work.

This is due to a bug in CocoaPods ... I currently cannot submit any new versions to the CocoaPods trunk because it doesn't lint. The error I get is:

=== CLEAN TARGET DeviceKit OF PROJECT Pods WITH CONFIGURATION Release ===

Check dependencies
“Use Legacy Swift Language Version” (SWIFT_VERSION) is required to be configured correctly for >targets which use Swift. Use the [Edit > Convert > To Current Swift Syntax…] menu to choose a Swift version or use the Build Settings editor to configure the build setting directly.

** CLEAN FAILED **

The following build commands failed:
Check dependencies
(1 failure)
=== BUILD TARGET DeviceKit OF PROJECT Pods WITH CONFIGURATION Release ===

Check dependencies
“Use Legacy Swift Language Version” (SWIFT_VERSION) is required to be configured correctly for targets which use Swift. Use the [Edit > Convert > To Current Swift Syntax…] menu to choose a Swift version or use the Build Settings editor to configure the build setting directly.

** BUILD FAILED **

The following build commands failed:
Check dependencies
(1 failure)
-> DeviceKit (1.0.0)
- ERROR | xcodebuild: Returned an unsuccessful exit code.

Analyzed 1 podspec.

[!] The spec did not pass validation, due to 1 error.

/Users/dennis/.rvm/gems/ruby-2.3.1/gems/cocoapods-1.1.0.rc.1/lib/cocoapods/command/spec/lint.rb:77:in run' /Users/dennis/.rvm/gems/ruby-2.3.1@global/gems/claide-1.0.0/lib/claide/command.rb:334:inrun'
/Users/dennis/.rvm/gems/ruby-2.3.1/gems/cocoapods-1.1.0.rc.1/lib/cocoapods/command.rb:50:in run' /Users/dennis/.rvm/gems/ruby-2.3.1/gems/cocoapods-1.1.0.rc.1/bin/pod:55:in<top (required)>'
/Users/dennis/.rvm/gems/ruby-2.3.1/bin/pod:23:in load' /Users/dennis/.rvm/gems/ruby-2.3.1/bin/pod:23:in

'
/Users/dennis/.rvm/gems/ruby-2.3.1/bin/ruby_executable_hooks:15:in eval' /Users/dennis/.rvm/gems/ruby-2.3.1/bin/ruby_executable_hooks:15:in'

SWIFT_VERSION is set to 3.0.

If anyone has any insights on this and knows how to work around please let me know! Thanks! 🙏

@nyssance
Copy link

nyssance commented Sep 14, 2016

update cocoapods, try add this line to DeviceKit.podspec

s.pod_target_xcconfig = { 'SWIFT_VERSION' => '3.0' }

@francocorreasosa
Copy link

Same here:

Analyzing dependencies
[!] Unable to satisfy the following requirements:

- `DeviceKit (~> 1.0)` required by `Podfile`

None of your spec sources contain a spec satisfying the dependency: `DeviceKit (~> 1.0)`.

You have either:
 * out-of-date source repos which you can update with `pod repo update`.
 * mistyped the name or version.
 * not added the source repo that hosts the Podspec to your Podfile.

Note: as of CocoaPods 1.0, `pod repo update` does not happen on `pod install` by default.

@phiren
Copy link
Contributor

phiren commented Sep 15, 2016

Not working in Xcode GM seed,
[!] Unable to satisfy the following requirements:

  • DeviceKit (~> 1.0) required by Podfile

@pxrne
Copy link

pxrne commented Sep 15, 2016

same issue as @phiren, any suggestions on how to fix?

@dickyj
Copy link

dickyj commented Sep 16, 2016

Yep, same issue as @phiren too, hopefully there is a fix soon...

@dennisweissmann
Copy link
Collaborator Author

Sorry for joining so late, somehow I didn't get mail notifications ...

There is a fix! CocoaPods/CocoaPods#5864 (comment)

I've just published 1.0 via CocoaPods, it should work now :)

@francocorreasosa
Copy link

It's working now, thanks! 📱

@dennisweissmann
Copy link
Collaborator Author

Perfect! 🎉 Thank you all for your patience! 🙏

@francocorreasosa
Copy link

Thank you too. DeviceKit is awesome!

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

6 participants