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

pod spec lint fails (Xcode 8 GM & Cocoapods 1.1.0.rc.1) #5846

Closed
ArtSabintsev opened this Issue Sep 12, 2016 · 21 comments

Comments

Projects
None yet
@ArtSabintsev

ArtSabintsev commented Sep 12, 2016

Report

Running pod spec lint Siren.podspec --verbose for https://github.com/ArtSabintsev/Siren throws an odd set of errors.

What did you do?

pod spec lint Siren.podspec --verbose

    Siren (1.0.0) - Analyzing on iOS 9.0 platform.
  Preparing

Analyzing dependencies

Inspecting targets to integrate
  Using `ARCHS` setting to build architectures of target `Pods-App`: (``)

Fetching external sources
-> Fetching podspec for `Siren` from `/Users/Arthur/Documents/oss/siren/Siren.podspec`

Resolving dependencies of 

Comparing resolved specification to the sandbox manifest
  A Siren

Downloading dependencies

-> Installing Siren (1.0.0)
  > Copying Siren from `/Users/Arthur/Library/Caches/CocoaPods/Pods/External/Siren/1780c36ddc343486beb94e7bea873fd7-86d0e` to
  `../../../../../private/var/folders/1_/dt39frhj0jsf9lb0df3pscf00000gn/T/CocoaPods/Lint/Pods/Siren`
  - Running pre install hooks

Generating Pods project
  - Creating Pods project
  - Adding source files to Pods project
  - Adding frameworks to Pods project
  - Adding libraries to Pods project
  - Adding resources to Pods project
  - Linking headers
  - Installing targets
    - Installing target `Siren` iOS 9.0
      - Generating Info.plist file at `../../../../../private/var/folders/1_/dt39frhj0jsf9lb0df3pscf00000gn/T/CocoaPods/Lint/Pods/Target Support Files/Siren/Info.plist`
      - Generating module map file at `../../../../../private/var/folders/1_/dt39frhj0jsf9lb0df3pscf00000gn/T/CocoaPods/Lint/Pods/Target Support Files/Siren/Siren.modulemap`
      - Generating umbrella header at `../../../../../private/var/folders/1_/dt39frhj0jsf9lb0df3pscf00000gn/T/CocoaPods/Lint/Pods/Target Support Files/Siren/Siren-umbrella.h`
    - Installing target `Pods-App` iOS 9.0
      - Generating Info.plist file at `../../../../../private/var/folders/1_/dt39frhj0jsf9lb0df3pscf00000gn/T/CocoaPods/Lint/Pods/Target Support Files/Pods-App/Info.plist`
      - Generating module map file at `../../../../../private/var/folders/1_/dt39frhj0jsf9lb0df3pscf00000gn/T/CocoaPods/Lint/Pods/Target Support Files/Pods-App/Pods-App.modulemap`
      - Generating umbrella header at `../../../../../private/var/folders/1_/dt39frhj0jsf9lb0df3pscf00000gn/T/CocoaPods/Lint/Pods/Target Support
      Files/Pods-App/Pods-App-umbrella.h`
  - Running post install hooks
  - Writing Xcode project file to `../../../../../private/var/folders/1_/dt39frhj0jsf9lb0df3pscf00000gn/T/CocoaPods/Lint/Pods/Pods.xcodeproj`
  - Writing Lockfile in `../../../../../var/folders/1_/dt39frhj0jsf9lb0df3pscf00000gn/T/CocoaPods/Lint/Podfile.lock`
  - Writing Manifest in `../../../../../private/var/folders/1_/dt39frhj0jsf9lb0df3pscf00000gn/T/CocoaPods/Lint/Pods/Manifest.lock`

Integrating client project

[!] Please close any current Xcode sessions and use `App.xcworkspace` for this project from now on.

Integrating target `Pods-App` (`../../../../../var/folders/1_/dt39frhj0jsf9lb0df3pscf00000gn/T/CocoaPods/Lint/App.xcodeproj` project)
  Adding Build Phase '[CP] Embed Pods Frameworks' to project.
  Adding Build Phase '[CP] Copy Pods Resources' to project.
  Adding Build Phase '[CP] Check Pods Manifest.lock' to project.
  - Running post install hooks
  Pod installation complete! There is 1 dependency from the Podfile and 1 total pod installed.
   Building with xcodebuild. 
xcodebuild clean build -workspace /var/folders/1_/dt39frhj0jsf9lb0df3pscf00000gn/T/CocoaPods/Lint/App.xcworkspace -scheme App -configuration Release CODE_SIGN_IDENTITY=- -sdk iphonesimulator -destination id=EAD94FAF-5FE5-4907-B274-4FE19BB50281
2016-09-11 23:55:26.606 xcodebuild[98132:1947324] [MT] PluginLoading: Required plug-in compatibility UUID 8A66E736-A720-4B3C-92F1-33D9962C69DF for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/Alcatraz.xcplugin' not present in DVTPlugInCompatibilityUUIDs
Build settings from command line:
    CODE_SIGN_IDENTITY = -
    SDKROOT = iphonesimulator10.0

=== CLEAN TARGET Siren 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.
“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 Siren 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.
“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)
 -> Siren (1.0.0)
    - ERROR | [iOS] xcodebuild: Returned an unsuccessful exit code.

Analyzed 1 podspec.

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

/Users/Arthur/.rvm/gems/ruby-2.3.0/gems/cocoapods-1.1.0.rc.1/lib/cocoapods/command/spec/lint.rb:77:in `run'
/Users/Arthur/.rvm/gems/ruby-2.3.0/gems/claide-1.0.0/lib/claide/command.rb:334:in `run'
/Users/Arthur/.rvm/gems/ruby-2.3.0/gems/cocoapods-1.1.0.rc.1/lib/cocoapods/command.rb:50:in `run'
/Users/Arthur/.rvm/gems/ruby-2.3.0/gems/cocoapods-1.1.0.rc.1/bin/pod:55:in `<top (required)>'
/Users/Arthur/.rvm/gems/ruby-2.3.0/bin/pod:23:in `load'
/Users/Arthur/.rvm/gems/ruby-2.3.0/bin/pod:23:in `<main>'
/Users/Arthur/.rvm/gems/ruby-2.3.0/bin/ruby_executable_hooks:15:in `eval'
/Users/Arthur/.rvm/gems/ruby-2.3.0/bin/ruby_executable_hooks:15:in `<main>'

What did you expect to happen?

No errors, especially related to swift-conversions, as I'm not linting a project/workspace, but a swift file and a bundle in my OSS repo.

What happened instead?

Threw the following error:

The following build commands failed:
    Check dependencies
(1 failure)
=== BUILD TARGET Siren 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.
“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)
 -> Siren (1.0.0)
    - ERROR | [iOS] xcodebuild: Returned an unsuccessful exit code.

CocoaPods Environment

Stack

   CocoaPods : 1.1.0.rc.1
        Ruby : ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-darwin15]
    RubyGems : 2.5.1
        Host : Mac OS X 10.11.6 (15G1004)
       Xcode : 8.0 (8A218a)
         Git : git version 2.8.4 (Apple Git-73)
Ruby lib dir : /Users/Arthur/.rvm/rubies/ruby-2.3.0/lib
Repositories : master - https://github.com/CocoaPods/Specs.git @ 81511452075352471b8867817bc336568e90f445

Installation Source

Executable Path: /Users/Arthur/.rvm/gems/ruby-2.3.0/bin/pod

Plugins

cocoapods-deintegrate : 1.0.1
cocoapods-plugins     : 1.0.0
cocoapods-search      : 1.0.0
cocoapods-stats       : 1.0.0
cocoapods-trunk       : 1.0.0
cocoapods-try         : 1.1.0
slather               : 2.3.0

Project that demonstrates the issue

https://github.com/ArtSabintsev/Siren

I'm trying to release the 1.0.0 branch. The 1.0.0 code is merged to master and tagged, but I can't push the change to Cocoapods.

@ArtSabintsev

This comment has been minimized.

ArtSabintsev commented Sep 12, 2016

Actually, it looks like the process (spec'ing) is creating a sample project/workspace, adding dependencies, and then failing with this issue:

“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.
@benasher44

This comment has been minimized.

Member

benasher44 commented Sep 12, 2016

This was fixed in #5841 and will be available in an upcoming release shortly.

@benasher44 benasher44 closed this Sep 12, 2016

@ArtSabintsev

This comment has been minimized.

ArtSabintsev commented Sep 12, 2016

Great! Thanks!

@malcommac

This comment has been minimized.

malcommac commented Sep 12, 2016

Any news?

@ArtSabintsev

This comment has been minimized.

ArtSabintsev commented Sep 12, 2016

I've subscribed to #5841 and #5825. That's how I'm staying up to date.

@ArtSabintsev

This comment has been minimized.

ArtSabintsev commented Sep 14, 2016

Still broken in RC 2. Now throwing a whole host of errors. Looks like it doesn't understand Swift 3 syntax. See below:

(master)$ pod spec lint --verbose

    Siren (1.0.0) - Analyzing on iOS 9.0 platform.
  Preparing

Analyzing dependencies

Inspecting targets to integrate
  Using `ARCHS` setting to build architectures of target `Pods-App`: (``)

Fetching external sources
-> Fetching podspec for `Siren` from `/Users/Arthur/Documents/oss/siren/Siren.podspec`

Resolving dependencies of 

Comparing resolved specification to the sandbox manifest
  A Siren

Downloading dependencies

-> Installing Siren (1.0.0)
  > Copying Siren from `/Users/Arthur/Library/Caches/CocoaPods/Pods/External/Siren/1780c36ddc343486beb94e7bea873fd7-86d0e` to
  `../../../../../private/var/folders/1_/dt39frhj0jsf9lb0df3pscf00000gn/T/CocoaPods/Lint/Pods/Siren`
  - Running pre install hooks

Generating Pods project
  - Creating Pods project
  - Adding source files to Pods project
  - Adding frameworks to Pods project
  - Adding libraries to Pods project
  - Adding resources to Pods project
  - Linking headers
  - Installing targets
    - Installing target `Siren` iOS 9.0
      - Generating Info.plist file at `../../../../../private/var/folders/1_/dt39frhj0jsf9lb0df3pscf00000gn/T/CocoaPods/Lint/Pods/Target Support Files/Siren/Info.plist`
      - Generating module map file at `../../../../../private/var/folders/1_/dt39frhj0jsf9lb0df3pscf00000gn/T/CocoaPods/Lint/Pods/Target Support Files/Siren/Siren.modulemap`
      - Generating umbrella header at `../../../../../private/var/folders/1_/dt39frhj0jsf9lb0df3pscf00000gn/T/CocoaPods/Lint/Pods/Target Support Files/Siren/Siren-umbrella.h`
    - Installing target `Pods-App` iOS 9.0
      - Generating Info.plist file at `../../../../../private/var/folders/1_/dt39frhj0jsf9lb0df3pscf00000gn/T/CocoaPods/Lint/Pods/Target Support Files/Pods-App/Info.plist`
      - Generating module map file at `../../../../../private/var/folders/1_/dt39frhj0jsf9lb0df3pscf00000gn/T/CocoaPods/Lint/Pods/Target Support Files/Pods-App/Pods-App.modulemap`
      - Generating umbrella header at `../../../../../private/var/folders/1_/dt39frhj0jsf9lb0df3pscf00000gn/T/CocoaPods/Lint/Pods/Target Support
      Files/Pods-App/Pods-App-umbrella.h`
  - Running post install hooks
  - Writing Xcode project file to `../../../../../private/var/folders/1_/dt39frhj0jsf9lb0df3pscf00000gn/T/CocoaPods/Lint/Pods/Pods.xcodeproj`
  - Writing Lockfile in `../../../../../var/folders/1_/dt39frhj0jsf9lb0df3pscf00000gn/T/CocoaPods/Lint/Podfile.lock`
  - Writing Manifest in `../../../../../private/var/folders/1_/dt39frhj0jsf9lb0df3pscf00000gn/T/CocoaPods/Lint/Pods/Manifest.lock`

Integrating client project

[!] Please close any current Xcode sessions and use `App.xcworkspace` for this project from now on.

Integrating target `Pods-App` (`../../../../../var/folders/1_/dt39frhj0jsf9lb0df3pscf00000gn/T/CocoaPods/Lint/App.xcodeproj` project)
  Adding Build Phase '[CP] Embed Pods Frameworks' to project.
  Adding Build Phase '[CP] Copy Pods Resources' to project.
  Adding Build Phase '[CP] Check Pods Manifest.lock' to project.
  - Running post install hooks
  Pod installation complete! There is 1 dependency from the Podfile and 1 total pod installed.
   Building with xcodebuild. 
xcodebuild clean build -workspace /var/folders/1_/dt39frhj0jsf9lb0df3pscf00000gn/T/CocoaPods/Lint/App.xcworkspace -scheme App -configuration Release CODE_SIGN_IDENTITY=- -sdk iphonesimulator -destination id=B1E2093D-E800-4E88-9801-0754285E7DDD
Build settings from command line:
    CODE_SIGN_IDENTITY = -
    SDKROOT = iphonesimulator10.0

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

Check dependencies

[...]

    - ERROR | [iOS] xcodebuild:  Siren/Siren/Siren.swift:541:83: error: use of unresolved identifier 'Date'
    - ERROR | [iOS] xcodebuild:  Siren/Siren/Siren.swift:553:29: error: type 'UIDevice' has no member 'current'
    - ERROR | [iOS] xcodebuild:  Siren/Siren/Siren.swift:571:80: error: type 'NSStringCompareOptions' has no member 'numeric'
    - ERROR | [iOS] xcodebuild:  Siren/Siren/Siren.swift:580:43: error: use of unresolved identifier 'Date'
    - ERROR | [iOS] xcodebuild:  Siren/Siren/Siren.swift:582:13: error: use of unresolved identifier 'UserDefaults'
    - ERROR | [iOS] xcodebuild:  Siren/Siren/Siren.swift:583:13: error: use of unresolved identifier 'UserDefaults'
    - ERROR | [iOS] xcodebuild:  Siren/Siren/Siren.swift:616:13: error: value of type 'UIWindow' has no member 'isHidden'
    - ERROR | [iOS] xcodebuild:  Siren/Siren/Siren.swift:627:25: error: use of unresolved identifier 'URL'
    - ERROR | [iOS] xcodebuild:  Siren/Siren/Siren.swift:629:9: error: use of unresolved identifier 'DispatchQueue'
    - ERROR | [iOS] xcodebuild:  Siren/Siren/Siren.swift:649:38: error: type 'UIScreen' has no member 'main'
    - ERROR | [iOS] xcodebuild:  Siren/Siren/Siren.swift:732:86: error: cannot convert value of type '[String : Any]' to expected argument type '[NSObject : AnyObject]?'
    - ERROR | [iOS] xcodebuild:  Siren/Siren/Siren.swift:442:70: error: cannot create a single-element tuple with an element label
    - ERROR | [iOS] xcodebuild:  Siren/Siren/Siren.swift:442:69: error: expected member name or constructor call after type name
    - NOTE  | [iOS] xcodebuild:  Siren/Siren/Siren.swift:442:90: note: add arguments after the type to construct a value of the type
    - NOTE  | [iOS] xcodebuild:  Siren/Siren/Siren.swift:442:90: note: use '.self' to reference the type object
    - ERROR | [iOS] xcodebuild:  Siren/Siren/Siren.swift:454:70: error: cannot create a single-element tuple with an element label
    - ERROR | [iOS] xcodebuild:  Siren/Siren/Siren.swift:454:69: error: expected member name or constructor call after type name
    - NOTE  | [iOS] xcodebuild:  Siren/Siren/Siren.swift:454:90: note: add arguments after the type to construct a value of the type
    - NOTE  | [iOS] xcodebuild:  Siren/Siren/Siren.swift:454:90: note: use '.self' to reference the type object
    - ERROR | [iOS] xcodebuild:  Siren/Siren/Siren.swift:465:70: error: cannot create a single-element tuple with an element label
    - ERROR | [iOS] xcodebuild:  Siren/Siren/Siren.swift:465:69: error: expected member name or constructor call after type name
    - NOTE  | [iOS] xcodebuild:  Siren/Siren/Siren.swift:465:90: note: add arguments after the type to construct a value of the type
    - NOTE  | [iOS] xcodebuild:  Siren/Siren/Siren.swift:465:90: note: use '.self' to reference the type object
    - ERROR | [iOS] xcodebuild:  Siren/Siren/Siren.swift:468:17: error: use of unresolved identifier 'UserDefaults'
    - ERROR | [iOS] xcodebuild:  Siren/Siren/Siren.swift:469:17: error: use of unresolved identifier 'UserDefaults'

Analyzed 1 podspec.

[!] The spec did not pass validation, due to 121 errors and 1 warning.

/Users/Arthur/.rvm/gems/ruby-2.3.1/gems/cocoapods-1.1.0.rc.2/lib/cocoapods/command/spec/lint.rb:77:in `run'
/Users/Arthur/.rvm/gems/ruby-2.3.1/gems/claide-1.0.0/lib/claide/command.rb:334:in `run'
/Users/Arthur/.rvm/gems/ruby-2.3.1/gems/cocoapods-1.1.0.rc.2/lib/cocoapods/command.rb:50:in `run'
/Users/Arthur/.rvm/gems/ruby-2.3.1/gems/cocoapods-1.1.0.rc.2/bin/pod:55:in `<top (required)>'
/Users/Arthur/.rvm/gems/ruby-2.3.1/bin/pod:23:in `load'
/Users/Arthur/.rvm/gems/ruby-2.3.1/bin/pod:23:in `<main>'
/Users/Arthur/.rvm/gems/ruby-2.3.1/bin/ruby_executable_hooks:15:in `eval'
/Users/Arthur/.rvm/gems/ruby-2.3.1/bin/ruby_executable_hooks:15:in `<main>'
@mergesort

This comment has been minimized.

mergesort commented Sep 14, 2016

I just tried it and got the same thing. It seems to have assumed that I wanted to use Swift 2.3.

@ArtSabintsev

This comment has been minimized.

ArtSabintsev commented Sep 14, 2016

Got it working using the .swift-version file mentioned in #5841.

For those who need help, make a .swift-version file and add it to your repo. In that file add one line of text: 3.0

That's it. CocoaPods will use that file to set the SWIFT_VERSION when linting your project.

#5841

@PhilippeBoisney

This comment has been minimized.

PhilippeBoisney commented Sep 19, 2016

Same problem here...

@cuddergambino

This comment has been minimized.

cuddergambino commented Sep 19, 2016

@ArtSabintsev solution worked for me!

Note: in #5841 the this .swift-version file is referenced where instead of just "3.0", "3.0-GM-CANDIDATE" is written. I tried both, and both work. There is no documentation yet for it so thought I'd make a note

@PhilippeBoisney

This comment has been minimized.

PhilippeBoisney commented Sep 19, 2016

@ArtSabintsev solution worked also for me ! ;)

@ArtSabintsev

This comment has been minimized.

ArtSabintsev commented Sep 19, 2016

Glad you guys got it working. I wrote a blog post a few days ago to help bring light to this undocumented change: https://blog.sabintsev.com/submitting-swift-3-libraries-to-the-cocoapods-trunk-1-1-0-rc-2-2d07c22c9754

@leonardo-hammer

This comment has been minimized.

leonardo-hammer commented Sep 20, 2016

Some issues for me. Thanks @ArtSabintsev
I created .swift-version file and wrote "3.0" in it. But error always exist.

I check my cocoapods version.

pod --version
1.1.0

So I update my Cocoapods by gem install cocoapods --pre.

It work for me !

@perk-nilesh

This comment has been minimized.

perk-nilesh commented Sep 20, 2016

  • ERROR | [iOS] xcodebuild: Returned an unsuccessful exit code.

Nilesh-3:perk-commercialbreak-ios Nilesh$ pod spec lint . --verbose

perk-commercialbreak-ios (1.4.0) - Analyzing on iOS 8.0 platform.

Preparing

Analyzing dependencies

Inspecting targets to integrate
Using ARCHS setting to build architectures of target Pods-App: (``)

Fetching external sources
-> Fetching podspec for perk-commercialbreak-ios from /Users/Nilesh/Downloads/temp/perk-commercialbreak-ios/perk-commercialbreak-ios.podspec

Resolving dependencies of

Comparing resolved specification to the sandbox manifest
A perk-commercialbreak-ios

Downloading dependencies

-> Installing perk-commercialbreak-ios (1.4.0)

Git download
Git download
$ /Applications/Xcode.app/Contents/Developer/usr/bin/git clone https://github.com/perk-nilesh/perk-commercialbreak-ios.git
/var/folders/q2/jscw54p907l3t99s5mmbmw9h0000gn/T/d20160920-65111-gvp5xu --template= --single-branch --depth 1 --branch 1.4.0
Cloning into '/var/folders/q2/jscw54p907l3t99s5mmbmw9h0000gn/T/d20160920-65111-gvp5xu'...
Downloading CommercialBreakSDK/libCommercialBreakSDK.a (205.73 MB)
Copying perk-commercialbreak-ios from /Users/Nilesh/Library/Caches/CocoaPods/Pods/External/perk-commercialbreak-ios/a2de63d3259da5d7d20fb9b5cff7901f-971f5 to
../../../../../private/var/folders/q2/jscw54p907l3t99s5mmbmw9h0000gn/T/CocoaPods/Lint/Pods/perk-commercialbreak-ios

  • Running pre install hooks

Generating Pods project

  • Creating Pods project
  • Adding source files to Pods project
  • Adding frameworks to Pods project
  • Adding libraries to Pods project
  • Adding resources to Pods project
  • Linking headers
  • Installing targets
    • Installing target perk-commercialbreak-ios iOS 8.0
      • Generating Info.plist file at ../../../../../private/var/folders/q2/jscw54p907l3t99s5mmbmw9h0000gn/T/CocoaPods/Lint/Pods/Target Support Files/perk-commercialbreak-ios/Info.plist
      • Generating module map file at ../../../../../private/var/folders/q2/jscw54p907l3t99s5mmbmw9h0000gn/T/CocoaPods/Lint/Pods/Target Support Files/perk-commercialbreak-ios/perk-commercialbreak-ios.modulemap
      • Generating umbrella header at ../../../../../private/var/folders/q2/jscw54p907l3t99s5mmbmw9h0000gn/T/CocoaPods/Lint/Pods/Target Support Files/perk-commercialbreak-ios/perk-commercialbreak-ios-umbrella.h
    • Installing target Pods-App iOS 8.0
      • Generating Info.plist file at ../../../../../private/var/folders/q2/jscw54p907l3t99s5mmbmw9h0000gn/T/CocoaPods/Lint/Pods/Target Support Files/Pods-App/Info.plist
      • Generating module map file at ../../../../../private/var/folders/q2/jscw54p907l3t99s5mmbmw9h0000gn/T/CocoaPods/Lint/Pods/Target Support Files/Pods-App/Pods-App.modulemap
      • Generating umbrella header at ../../../../../private/var/folders/q2/jscw54p907l3t99s5mmbmw9h0000gn/T/CocoaPods/Lint/Pods/Target Support Files/Pods-App/Pods-App-umbrella.h
  • Running post install hooks
  • Writing Xcode project file to ../../../../../private/var/folders/q2/jscw54p907l3t99s5mmbmw9h0000gn/T/CocoaPods/Lint/Pods/Pods.xcodeproj
  • Writing Lockfile in ../../../../../var/folders/q2/jscw54p907l3t99s5mmbmw9h0000gn/T/CocoaPods/Lint/Podfile.lock
  • Writing Manifest in ../../../../../private/var/folders/q2/jscw54p907l3t99s5mmbmw9h0000gn/T/CocoaPods/Lint/Pods/Manifest.lock

Integrating client project

[!] Please close any current Xcode sessions and use App.xcworkspace for this project from now on.

Integrating target Pods-App (../../../../../var/folders/q2/jscw54p907l3t99s5mmbmw9h0000gn/T/CocoaPods/Lint/App.xcodeproj project)
Adding Build Phase '[CP] Embed Pods Frameworks' to project.
Adding Build Phase '[CP] Copy Pods Resources' to project.
Adding Build Phase '[CP] Check Pods Manifest.lock' to project.

  • Running post install hooks
    Pod installation complete! There is 1 dependency from the Podfile and 1 total pod installed.
    Building with xcodebuild.
    xcodebuild clean build -workspace /var/folders/q2/jscw54p907l3t99s5mmbmw9h0000gn/T/CocoaPods/Lint/App.xcworkspace -scheme App -configuration Release CODE_SIGN_IDENTITY=- -sdk iphonesimulator -destination id=172A8106-2421-4D07-815D-79131664BCA7
    2016-09-20 16:15:12.191 xcodebuild[65141:2696388] [MT] PluginLoading: Required plug-in compatibility UUID 8A66E736-A720-4B3C-92F1-33D9962C69DF for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/Unity4XC.xcplugin' not present in DVTPlugInCompatibilityUUIDs

Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo.

-> perk-commercialbreak-ios (1.4.0)
- ERROR | [iOS] xcodebuild: Returned an unsuccessful exit code.

Analyzed 1 podspec.

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

/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.1.0.rc.2/lib/cocoapods/command/spec/lint.rb:77:in run' /Library/Ruby/Gems/2.0.0/gems/claide-1.0.0/lib/claide/command.rb:334:inrun'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.1.0.rc.2/lib/cocoapods/command.rb:50:in run' /Library/Ruby/Gems/2.0.0/gems/cocoapods-1.1.0.rc.2/bin/pod:55:in<top (required)>'
/usr/local/bin/pod:23:in load' /usr/local/bin/pod:23:in

'

[!] Unable to read the license file /private/var/folders/q2/jscw54p907l3t99s5mmbmw9h0000gn/T/CocoaPods/Lint/Pods/perk-commercialbreak-ios/LICENSE for the spec perk-commercialbreak-ios (1.4.0)

[!] Unable to read the license file /private/var/folders/q2/jscw54p907l3t99s5mmbmw9h0000gn/T/CocoaPods/Lint/Pods/perk-commercialbreak-ios/LICENSE for the spec perk-commercialbreak-ios (1.4.0)
Nilesh-3:perk-commercialbreak-ios Nilesh$ pod --version
1.1.0.rc.2
Nilesh-3:perk-commercialbreak-ios Nilesh$

@cuddergambino

This comment has been minimized.

cuddergambino commented Sep 21, 2016

It looks like you're missing your license file, does the file referenced in your podspec's spec.license exist? The issue looks different than the syntax errors above mentioned

@filipealva

This comment has been minimized.

filipealva commented Sep 27, 2016

Hey, just sharing the way it worked for me:

I added the .swift-version file and updated CocoaPods to 1.1.0.rc.2 but my problem was not solved. Then I discovered that, because I still had the Xcode 7 installed, CocoaPods were using it to build my Swift 3 project.

I solved it running the sudo xcode-select -switch /pathTo/Xcode8.app/ command. It switched to Xcode 8 as default and everything worked properly.

Hope it helps someone. I just wrote a small story about it in my medium, btw.

@cesar-oyarzun-m

This comment has been minimized.

cesar-oyarzun-m commented Nov 2, 2016

@filipealva I did try doing echo 3.0 and I also did the sudo xcode-select -switch /pathTo/Xcode8.app/ but for some reason when I do pod lib lint looks like is still trying to use Xcode 7 and swift 2.0, because I get this error

- ERROR | xcodebuild: Socket.IO-Client-Swift/Source/SocketAckManager.swift:38:31: error: unknown attribute 'escaping'

Do you know other way to force cocoapod to use the right xcode and compiler? . I'm using cocoapod version 1.1.0

@benasher44

This comment has been minimized.

Member

benasher44 commented Nov 2, 2016

First, make sure you're doing sudo xcode-select --switch (2 hyphens for the switch arg). Once that's done, run xcodebuild -version to confirm the version you're running. If that's not printing what you expect, then you should go back and try again or try to debug what went wrong.

For pod lib lint, you can also specify --swift-version if you're worried that the .swift-version file isn't working.

@cesar-oyarzun-m

This comment has been minimized.

cesar-oyarzun-m commented Nov 2, 2016

Yeah I did for some reason my pod env was usign Xcode 7 setting to Xcode 8 will work thanks!

@filipealva

This comment has been minimized.

filipealva commented Nov 4, 2016

@cesar-oyarzun-m the xcode-select --switch command was missing one hyphen, I just fixed it, sorry.

Following the @benasher44 tips everything should work fine.

@db42

This comment has been minimized.

db42 commented Sep 14, 2017

Update 2.3 -> 3.0 in .swift-version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment