iOS Build Environment Help Center

Cocoapods error when downloadinng depandancies

append delete MaroLFC

Windows:10
Builder:3.59
iOS: 16.2

this is the full output

%
========================== CocoaPods output BEGIN ===========================

[2023-10-31T10:30:50.206Z] Analyzing dependencies

[2023-10-31T10:30:50.206Z] Adding spec repo `trunk` with CDN `https://cdn.cocoapods.org/`

[2023-10-31T10:30:50.206Z] 

[2023-10-31T10:30:50.206Z] CocoaPods 1.14.2 is available.

[2023-10-31T10:30:50.206Z] To update use: `sudo gem install cocoapods`

[2023-10-31T10:30:50.206Z] 

[2023-10-31T10:30:50.206Z] For more information, see https://blog.cocoapods.org and the CHANGELOG for this version at https://github.com/CocoaPods/CocoaPods/releases/tag/1.14.2

[2023-10-31T10:30:50.206Z] 

[2023-10-31T10:30:50.206Z] 

[2023-10-31T10:30:50.206Z] ――― MARKDOWN TEMPLATE ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――

[2023-10-31T10:30:50.206Z] 

[2023-10-31T10:30:50.206Z] ### Command

[2023-10-31T10:30:50.206Z] 

[2023-10-31T10:30:50.206Z] ```

[2023-10-31T10:30:50.206Z] /usr/local/bin/pod install

[2023-10-31T10:30:50.206Z] ```

[2023-10-31T10:30:50.206Z] 

[2023-10-31T10:30:50.206Z] ### Report

[2023-10-31T10:30:50.206Z] 

[2023-10-31T10:30:50.206Z] * What did you do?

[2023-10-31T10:30:50.206Z] 

[2023-10-31T10:30:50.206Z] * What did you expect to happen?

[2023-10-31T10:30:50.206Z] 

[2023-10-31T10:30:50.206Z] * What happened instead?

[2023-10-31T10:30:50.206Z] 

[2023-10-31T10:30:50.206Z] 

[2023-10-31T10:30:50.206Z] ### Stack

[2023-10-31T10:30:50.206Z] 

[2023-10-31T10:30:50.206Z] ```

[2023-10-31T10:30:50.206Z]    CocoaPods : 1.12.1

[2023-10-31T10:30:50.206Z]         Ruby : ruby 2.6.5p114 (2019-10-01 revision 67812) [amd64-freebsd12]

[2023-10-31T10:30:50.206Z]     RubyGems : 3.0.6

[2023-10-31T10:30:50.206Z]         Host : Unable to find an executable (No such file or directory - sw_vers)  ()

[2023-10-31T10:30:50.206Z]        Xcode : xcodebuild) ()

[2023-10-31T10:30:50.206Z]          Git : git version 2.26.2

[2023-10-31T10:30:50.206Z] Ruby lib dir : /usr/local/lib

[2023-10-31T10:30:50.206Z] Repositories : trunk - CDN - https://cdn.cocoapods.org/

[2023-10-31T10:30:50.206Z] ```

[2023-10-31T10:30:50.206Z] 

[2023-10-31T10:30:50.206Z] ### Plugins

[2023-10-31T10:30:50.206Z] 

[2023-10-31T10:30:50.206Z] ```

[2023-10-31T10:30:50.206Z] cocoapods-deintegrate : 1.0.4

[2023-10-31T10:30:50.206Z] cocoapods-plugins     : 1.0.0

[2023-10-31T10:30:50.206Z] cocoapods-search      : 1.0.0

[2023-10-31T10:30:50.206Z] cocoapods-stats       : 1.1.0

[2023-10-31T10:30:50.206Z] cocoapods-trunk       : 1.6.0

[2023-10-31T10:30:50.206Z] cocoapods-try         : 1.2.0

[2023-10-31T10:30:50.206Z] ```

[2023-10-31T10:30:50.206Z] 

[2023-10-31T10:30:50.206Z] ### Podfile

[2023-10-31T10:30:50.206Z] 

[2023-10-31T10:30:50.206Z] ```ruby

[2023-10-31T10:30:50.206Z] source 'https://cdn.cocoapods.org/'

[2023-10-31T10:30:50.206Z] source 'https://cdn.cocoapods.org/'

[2023-10-31T10:30:50.206Z] 

[2023-10-31T10:30:50.206Z] platform :ios, '11.0'

[2023-10-31T10:30:50.206Z] 

[2023-10-31T10:30:50.206Z] target 'UnityFramework' do

[2023-10-31T10:30:50.206Z]   pod 'Firebase/Core', '10.15.0'

[2023-10-31T10:30:50.206Z]   pod 'Firebase/Messaging', '10.15.0'

[2023-10-31T10:30:50.206Z] end

[2023-10-31T10:30:50.206Z] target 'Unity-iPhone' do

[2023-10-31T10:30:50.206Z] end

[2023-10-31T10:30:50.206Z] use_frameworks! :linkage => :static

[2023-10-31T10:30:50.206Z] ```

[2023-10-31T10:30:50.206Z] 

[2023-10-31T10:30:50.206Z] ### Error

[2023-10-31T10:30:50.206Z] 

[2023-10-31T10:30:50.206Z] ```

[2023-10-31T10:30:50.206Z] JSON::ParserError - Failed to parse JSON at file: '/Users/cocoapods/.cocoapods/repos/trunk/Specs/0/b/5/PromisesObjC/2.3.1/PromisesObjC.podspec.json'.

[2023-10-31T10:30:50.206Z] 

[2023-10-31T10:30:50.206Z] 783: unexpected token at ''

[2023-10-31T10:30:50.206Z] /usr/local/lib/ruby/gems/2.6/gems/cocoapods-core-1.12.1/lib/cocoapods-core/specification/json.rb:66:in `rescue in from_json'

[2023-10-31T10:30:50.206Z] /usr/local/lib/ruby/gems/2.6/gems/cocoapods-core-1.12.1/lib/cocoapods-core/specification/json.rb:61:in `from_json'

[2023-10-31T10:30:50.206Z] /usr/local/lib/ruby/gems/2.6/gems/cocoapods-core-1.12.1/lib/cocoapods-core/specification.rb:752:in `from_string'

[2023-10-31T10:30:50.206Z] /usr/local/lib/ruby/gems/2.6/gems/cocoapods-core-1.12.1/lib/cocoapods-core/specification.rb:726:in `from_file'

[2023-10-31T10:30:50.206Z] /usr/local/lib/ruby/gems/2.6/gems/cocoapods-core-1.12.1/lib/cocoapods-core/source.rb:188:in `specification'

[2023-10-31T10:30:50.206Z] /usr/local/lib/ruby/gems/2.6/gems/cocoapods-core-1.12.1/lib/cocoapods-core/specification/set.rb:58:in `block in specification_name'

[2023-10-31T10:30:50.206Z] /usr/local/lib/ruby/gems/2.6/gems/cocoapods-core-1.12.1/lib/cocoapods-core/specification/set.rb:56:in `each'

[2023-10-31T10:30:50.206Z] /usr/local/lib/ruby/gems/2.6/gems/cocoapods-core-1.12.1/lib/cocoapods-core/specification/set.rb:56:in `specification_name'

[2023-10-31T10:30:50.206Z] /usr/local/lib/ruby/gems/2.6/gems/cocoapods-core-1.12.1/lib/cocoapods-core/cdn_source.rb:216:in `search'

[2023-10-31T10:30:50.206Z] /usr/local/lib/ruby/gems/2.6/gems/cocoapods-core-1.12.1/lib/cocoapods-core/source/aggregate.rb:83:in `block in search'

[2023-10-31T10:30:50.206Z] /usr/local/lib/ruby/gems/2.6/gems/cocoapods-core-1.12.1/lib/cocoapods-core/source/aggregate.rb:83:in `select'

[2023-10-31T10:30:50.206Z] /usr/local/lib/ruby/gems/2.6/gems/cocoapods-core-1.12.1/lib/cocoapods-core/source/aggregate.rb:83:in `search'

[2023-10-31T10:30:50.206Z] /usr/local/lib/ruby/gems/2.6/gems/cocoapods-1.12.1/lib/cocoapods/resolver.rb:416:in `create_set_from_sources'

[2023-10-31T10:30:50.206Z] /usr/local/lib/ruby/gems/2.6/gems/cocoapods-1.12.1/lib/cocoapods/resolver.rb:385:in `find_cached_set'

[2023-10-31T10:30:50.206Z] /usr/local/lib/ruby/gems/2.6/gems/cocoapods-1.12.1/lib/cocoapods/resolver.rb:360:in `specifications_for_dependency'

[2023-10-31T10:30:50.206Z] /usr/local/lib/ruby/gems/2.6/gems/cocoapods-1.12.1/lib/cocoapods/resolver.rb:165:in `search_for'

[2023-10-31T10:30:50.209Z] /usr/local/lib/ruby/gems/2.6/gems/cocoapods-1.12.1/lib/cocoapods/resolver.rb:274:in `block in sort_dependencies'

[2023-10-31T10:30:50.209Z] /usr/local/lib/ruby/gems/2.6/gems/cocoapods-1.12.1/lib/cocoapods/resolver.rb:267:in `each'

[2023-10-31T10:30:50.209Z] /usr/local/lib/ruby/gems/2.6/gems/cocoapods-1.12.1/lib/cocoapods/resolver.rb:267:in `sort_by'

[2023-10-31T10:30:50.209Z] /usr/local/lib/ruby/gems/2.6/gems/cocoapods-1.12.1/lib/cocoapods/resolver.rb:267:in `sort_by!'

[2023-10-31T10:30:50.209Z] /usr/local/lib/ruby/gems/2.6/gems/cocoapods-1.12.1/lib/cocoapods/resolver.rb:267:in `sort_dependencies'

[2023-10-31T10:30:50.209Z] /usr/local/lib/ruby/gems/2.6/gems/molinillo-0.8.0/lib/molinillo/delegates/specification_provider.rb:60:in `block in sort_dependencies'

[2023-10-31T10:30:50.209Z] /usr/local/lib/ruby/gems/2.6/gems/molinillo-0.8.0/lib/molinillo/delegates/specification_provider.rb:77:in `with_no_such_dependency_error_handling'

[2023-10-31T10:30:50.209Z] /usr/local/lib/ruby/gems/2.6/gems/molinillo-0.8.0/lib/molinillo/delegates/specification_provider.rb:59:in `sort_dependencies'

[2023-10-31T10:30:50.209Z] /usr/local/lib/ruby/gems/2.6/gems/molinillo-0.8.0/lib/molinillo/resolution.rb:754:in `push_state_for_requirements'

[2023-10-31T10:30:50.209Z] /usr/local/lib/ruby/gems/2.6/gems/molinillo-0.8.0/lib/molinillo/resolution.rb:744:in `require_nested_dependencies_for'

[2023-10-31T10:30:50.209Z] /usr/local/lib/ruby/gems/2.6/gems/molinillo-0.8.0/lib/molinillo/resolution.rb:727:in `activate_new_spec'

[2023-10-31T10:30:50.209Z] /usr/local/lib/ruby/gems/2.6/gems/molinillo-0.8.0/lib/molinillo/resolution.rb:684:in `attempt_to_activate'

[2023-10-31T10:30:50.209Z] /usr/local/lib/ruby/gems/2.6/gems/molinillo-0.8.0/lib/molinillo/resolution.rb:254:in `process_topmost_state'

[2023-10-31T10:30:50.209Z] /usr/local/lib/ruby/gems/2.6/gems/molinillo-0.8.0/lib/molinillo/resolution.rb:182:in `resolve'

[2023-10-31T10:30:50.209Z] /usr/local/lib/ruby/gems/2.6/gems/molinillo-0.8.0/lib/molinillo/resolver.rb:43:in `resolve'

[2023-10-31T10:30:50.209Z] /usr/local/lib/ruby/gems/2.6/gems/cocoapods-1.12.1/lib/cocoapods/resolver.rb:94:in `resolve'

[2023-10-31T10:30:50.209Z] /usr/local/lib/ruby/gems/2.6/gems/cocoapods-1.12.1/lib/cocoapods/installer/analyzer.rb:1082:in `block in resolve_dependencies'

[2023-10-31T10:30:50.209Z] /usr/local/lib/ruby/gems/2.6/gems/cocoapods-1.12.1/lib/cocoapods/user_interface.rb:64:in `section'

[2023-10-31T10:30:50.209Z] /usr/local/lib/ruby/gems/2.6/gems/cocoapods-1.12.1/lib/cocoapods/installer/analyzer.rb:1080:in `resolve_dependencies'

[2023-10-31T10:30:50.209Z] /usr/local/lib/ruby/gems/2.6/gems/cocoapods-1.12.1/lib/cocoapods/installer/analyzer.rb:125:in `analyze'

[2023-10-31T10:30:50.209Z] /usr/local/lib/ruby/gems/2.6/gems/cocoapods-1.12.1/lib/cocoapods/installer.rb:422:in `analyze'

[2023-10-31T10:30:50.209Z] /usr/local/lib/ruby/gems/2.6/gems/cocoapods-1.12.1/lib/cocoapods/installer.rb:244:in `block in resolve_dependencies'

[2023-10-31T10:30:50.209Z] /usr/local/lib/ruby/gems/2.6/gems/cocoapods-1.12.1/lib/cocoapods/user_interface.rb:64:in `section'

[2023-10-31T10:30:50.209Z] /usr/local/lib/ruby/gems/2.6/gems/cocoapods-1.12.1/lib/cocoapods/installer.rb:243:in `resolve_dependencies'

[2023-10-31T10:30:50.209Z] /usr/local/lib/ruby/gems/2.6/gems/cocoapods-1.12.1/lib/cocoapods/installer.rb:162:in `install!'

[2023-10-31T10:30:50.209Z] /usr/local/lib/ruby/gems/2.6/gems/cocoapods-1.12.1/lib/cocoapods/command/install.rb:52:in `run'

[2023-10-31T10:30:50.209Z] /usr/local/lib/ruby/gems/2.6/gems/claide-1.0.3/lib/claide/command.rb:334:in `run'

[2023-10-31T10:30:50.209Z] /usr/local/lib/ruby/gems/2.6/gems/cocoapods-1.12.1/lib/cocoapods/command.rb:52:in `run'

[2023-10-31T10:30:50.209Z] /usr/local/lib/ruby/gems/2.6/gems/cocoapods-1.12.1/bin/pod:55:in `<top (required)>'

[2023-10-31T10:30:50.209Z] /usr/local/bin/pod:23:in `load'

[2023-10-31T10:30:50.209Z] /usr/local/bin/pod:23:in `<main>'

[2023-10-31T10:30:50.209Z] ```

[2023-10-31T10:30:50.209Z] 

[2023-10-31T10:30:50.209Z] ――― TEMPLATE END ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――

[2023-10-31T10:30:50.209Z] 

[2023-10-31T10:30:50.209Z] [!] Oh no, an error occurred.

[2023-10-31T10:30:50.209Z] 

[2023-10-31T10:30:50.209Z] Search for existing GitHub issues similar to yours:

[2023-10-31T10:30:50.209Z] https://github.com/CocoaPods/CocoaPods/search?q=Failed+to+parse+JSON+at+file%3A+%27%2FUsers%2Fcocoapods%2F.cocoapods%2Frepos%2Ftrunk%2FSpecs%2F0%2Fb%2F5%2FPromisesObjC%2F2.3.1%2FPromisesObjC.podspec.json%27.%0A%0A783%3A+unexpected+token+at+%27%27&type=Issues

[2023-10-31T10:30:50.209Z] 

[2023-10-31T10:30:50.209Z] If none exists, create a ticket, with the template displayed above, on:

[2023-10-31T10:30:50.209Z] https://github.com/CocoaPods/CocoaPods/issues/new

[2023-10-31T10:30:50.209Z] 

[2023-10-31T10:30:50.209Z] Be sure to first read the contributing guide for details on how to properly submit a ticket:

[2023-10-31T10:30:50.209Z] https://github.com/CocoaPods/CocoaPods/blob/master/CONTRIBUTING.md

[2023-10-31T10:30:50.209Z] 

[2023-10-31T10:30:50.209Z] Don't forget to anonymize any private data!

[2023-10-31T10:30:50.209Z] 

[2023-10-31T10:30:50.209Z] Looking for related issues on cocoapods/cocoapods...

[2023-10-31T10:30:50.209Z]  - Support fonts directly in a podspec

[2023-10-31T10:30:50.209Z]    https://github.com/CocoaPods/CocoaPods/issues/3176 [closed] [4 comments]

[2023-10-31T10:30:50.209Z]    24 Feb 2015

[2023-10-31T10:30:50.209Z] 

[2023-10-31T10:30:50.209Z]  - Location of compiled binary files location

[2023-10-31T10:30:50.209Z]    https://github.com/CocoaPods/CocoaPods/issues/3175 [closed] [1 comment]

[2023-10-31T10:30:50.209Z]    23 Feb 2015

[2023-10-31T10:30:50.209Z] 

[2023-10-31T10:30:50.209Z]  - Adding and referencing images in Swift Embedded Framework

[2023-10-31T10:30:50.209Z]    https://github.com/CocoaPods/CocoaPods/issues/3174 [closed] [4 comments]

[2023-10-31T10:30:50.209Z]    23 Feb 2015

[2023-10-31T10:30:50.209Z] 

[2023-10-31T10:30:50.209Z] and 11949 more at:

[2023-10-31T10:30:50.209Z] https://github.com/cocoapods/cocoapods/search?q=Failed%20to%20parse%20JSON%20at%20file%3A%20%27%2FUsers%2Fcocoapods%2F.cocoapods%2Frepos%2Ftrunk%2FSpecs%2F0%2Fb%2F5%2FPromisesObjC%2F2.3.1%2FPromisesObjC.podspec.json%27.%0A%0A783%3A%20unexpected%20token%20at%20%27%27&type=Issues&utf8=✓

=========================== CocoaPods output END ============================
%

Reply RSS

Replies

append delete #1. Pierre-Marie Baty

Hello

I'm redoing the CocoaPods VM and upgrading it to the latest version of Ruby and CocoaPods. The next version of the builder is likely to fix your problem. I couldn't pack it with version 3.60 because of lack of time for testing.

Reply

(Leave this as-is, it’s a trap!)

There is no need to “register”, just enter the same name + password of your choice every time.

Pro tip: Use markup to add links, quotes and more.

Moderators: Pierre-Marie Baty