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

pod install failure on new project #7803

Closed
1 task done
rokasgg opened this issue Oct 31, 2023 · 1 comment
Closed
1 task done

pod install failure on new project #7803

rokasgg opened this issue Oct 31, 2023 · 1 comment

Comments

@rokasgg
Copy link

rokasgg commented Oct 31, 2023

What happened?

Greetings people,
Maybe somebody encountered similar error.

Had same issue on main project but was able to replicate it on completely new project...
How I ended up here, was updating React-Native version for my project and once all dependencies were with latest versions this is what I've encountered after trying to run pod install in ~/ios folder. Similar error is encountered with Facebook sdk dependency. Im suspecting maybe it is my Mac's setup 🤔 even though I tried to wipe out my Mac and install all new.

Here is the error:
`### Error

JSON::ParserError - Failed to parse JSON at file: '/Users/rokasgegzna/.cocoapods/repos/trunk/Specs/d/7/e/HMSegmentedControl/1.5.6/HMSegmentedControl.podspec.json'.

unexpected token at ''
/usr/local/lib/ruby/gems/3.2.0/gems/cocoapods-core-1.14.2/lib/cocoapods-core/specification/json.rb:66:in `rescue in from_json'
/usr/local/lib/ruby/gems/3.2.0/gems/cocoapods-core-1.14.2/lib/cocoapods-core/specification/json.rb:61:in `from_json'
/usr/local/lib/ruby/gems/3.2.0/gems/cocoapods-core-1.14.2/lib/cocoapods-core/specification.rb:752:in `from_string'
/usr/local/lib/ruby/gems/3.2.0/gems/cocoapods-core-1.14.2/lib/cocoapods-core/specification.rb:726:in `from_file'
/usr/local/lib/ruby/gems/3.2.0/gems/cocoapods-core-1.14.2/lib/cocoapods-core/source.rb:188:in `specification'
/usr/local/lib/ruby/gems/3.2.0/gems/cocoapods-core-1.14.2/lib/cocoapods-core/specification/set.rb:58:in `block in specification_name'
/usr/local/lib/ruby/gems/3.2.0/gems/cocoapods-core-1.14.2/lib/cocoapods-core/specification/set.rb:56:in `each'
/usr/local/lib/ruby/gems/3.2.0/gems/cocoapods-core-1.14.2/lib/cocoapods-core/specification/set.rb:56:in `specification_name'
/usr/local/lib/ruby/gems/3.2.0/gems/cocoapods-core-1.14.2/lib/cocoapods-core/cdn_source.rb:216:in `search'
/usr/local/lib/ruby/gems/3.2.0/gems/cocoapods-core-1.14.2/lib/cocoapods-core/source/aggregate.rb:83:in `block in search'
/usr/local/lib/ruby/gems/3.2.0/gems/cocoapods-core-1.14.2/lib/cocoapods-core/source/aggregate.rb:83:in `select'
/usr/local/lib/ruby/gems/3.2.0/gems/cocoapods-core-1.14.2/lib/cocoapods-core/source/aggregate.rb:83:in `search'
/usr/local/lib/ruby/gems/3.2.0/gems/cocoapods-1.14.2/lib/cocoapods/resolver.rb:416:in `create_set_from_sources'
/usr/local/lib/ruby/gems/3.2.0/gems/cocoapods-1.14.2/lib/cocoapods/resolver.rb:385:in `find_cached_set'
/usr/local/lib/ruby/gems/3.2.0/gems/cocoapods-1.14.2/lib/cocoapods/resolver.rb:360:in `specifications_for_dependency'
/usr/local/lib/ruby/gems/3.2.0/gems/cocoapods-1.14.2/lib/cocoapods/resolver.rb:165:in `search_for'
/usr/local/lib/ruby/gems/3.2.0/gems/cocoapods-1.14.2/lib/cocoapods/resolver.rb:274:in `block in sort_dependencies'
/usr/local/lib/ruby/gems/3.2.0/gems/cocoapods-1.14.2/lib/cocoapods/resolver.rb:267:in `each'
/usr/local/lib/ruby/gems/3.2.0/gems/cocoapods-1.14.2/lib/cocoapods/resolver.rb:267:in `sort_by'
/usr/local/lib/ruby/gems/3.2.0/gems/cocoapods-1.14.2/lib/cocoapods/resolver.rb:267:in `sort_by!'
/usr/local/lib/ruby/gems/3.2.0/gems/cocoapods-1.14.2/lib/cocoapods/resolver.rb:267:in `sort_dependencies'
/usr/local/lib/ruby/gems/3.2.0/gems/molinillo-0.8.0/lib/molinillo/delegates/specification_provider.rb:60:in `block in sort_dependencies'
/usr/local/lib/ruby/gems/3.2.0/gems/molinillo-0.8.0/lib/molinillo/delegates/specification_provider.rb:77:in `with_no_such_dependency_error_handling'
/usr/local/lib/ruby/gems/3.2.0/gems/molinillo-0.8.0/lib/molinillo/delegates/specification_provider.rb:59:in `sort_dependencies'
/usr/local/lib/ruby/gems/3.2.0/gems/molinillo-0.8.0/lib/molinillo/resolution.rb:754:in `push_state_for_requirements'
/usr/local/lib/ruby/gems/3.2.0/gems/molinillo-0.8.0/lib/molinillo/resolution.rb:744:in `require_nested_dependencies_for'
/usr/local/lib/ruby/gems/3.2.0/gems/molinillo-0.8.0/lib/molinillo/resolution.rb:727:in `activate_new_spec'
/usr/local/lib/ruby/gems/3.2.0/gems/molinillo-0.8.0/lib/molinillo/resolution.rb:684:in `attempt_to_activate'
/usr/local/lib/ruby/gems/3.2.0/gems/molinillo-0.8.0/lib/molinillo/resolution.rb:254:in `process_topmost_state'
/usr/local/lib/ruby/gems/3.2.0/gems/molinillo-0.8.0/lib/molinillo/resolution.rb:182:in `resolve'
/usr/local/lib/ruby/gems/3.2.0/gems/molinillo-0.8.0/lib/molinillo/resolver.rb:43:in `resolve'
/usr/local/lib/ruby/gems/3.2.0/gems/cocoapods-1.14.2/lib/cocoapods/resolver.rb:94:in `resolve'
/usr/local/lib/ruby/gems/3.2.0/gems/cocoapods-1.14.2/lib/cocoapods/installer/analyzer.rb:1082:in `block in resolve_dependencies'
/usr/local/lib/ruby/gems/3.2.0/gems/cocoapods-1.14.2/lib/cocoapods/user_interface.rb:64:in `section'
/usr/local/lib/ruby/gems/3.2.0/gems/cocoapods-1.14.2/lib/cocoapods/installer/analyzer.rb:1080:in `resolve_dependencies'
/usr/local/lib/ruby/gems/3.2.0/gems/cocoapods-1.14.2/lib/cocoapods/installer/analyzer.rb:125:in `analyze'
/usr/local/lib/ruby/gems/3.2.0/gems/cocoapods-1.14.2/lib/cocoapods/installer.rb:422:in `analyze'
/usr/local/lib/ruby/gems/3.2.0/gems/cocoapods-1.14.2/lib/cocoapods/installer.rb:244:in `block in resolve_dependencies'
/usr/local/lib/ruby/gems/3.2.0/gems/cocoapods-1.14.2/lib/cocoapods/user_interface.rb:64:in `section'
/usr/local/lib/ruby/gems/3.2.0/gems/cocoapods-1.14.2/lib/cocoapods/installer.rb:243:in `resolve_dependencies'
/usr/local/lib/ruby/gems/3.2.0/gems/cocoapods-1.14.2/lib/cocoapods/installer.rb:162:in `install!'
/usr/local/lib/ruby/gems/3.2.0/gems/cocoapods-1.14.2/lib/cocoapods/command/install.rb:52:in `run'
/usr/local/lib/ruby/gems/3.2.0/gems/claide-1.1.0/lib/claide/command.rb:334:in `run'
/usr/local/lib/ruby/gems/3.2.0/gems/cocoapods-1.14.2/lib/cocoapods/command.rb:52:in `run'
/usr/local/lib/ruby/gems/3.2.0/gems/cocoapods-1.14.2/bin/pod:55:in `<top (required)>'
/usr/local/lib/ruby/gems/3.2.0/bin/pod:25:in `load'
/usr/local/lib/ruby/gems/3.2.0/bin/pod:25:in `<main>'

――― TEMPLATE END ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――

[!] Oh no, an error occurred.

Search for existing GitHub issues similar to yours:
https://github.com/CocoaPods/CocoaPods/search?q=Failed+to+parse+JSON+at+file%3A+%27%2FUsers%2Frokasgegzna%2F.cocoapods%2Frepos%2Ftrunk%2FSpecs%2Fd%2F7%2Fe%2FHMSegmentedControl%2F1.5.6%2FHMSegmentedControl.podspec.json%27.%0A%0Aunexpected+token+at+%27%27&type=Issues

If none exists, create a ticket, with the template displayed above, on:
https://github.com/CocoaPods/CocoaPods/issues/new

Be sure to first read the contributing guide for details on how to properly submit a ticket:
https://github.com/CocoaPods/CocoaPods/blob/master/CONTRIBUTING.md

Don't forget to anonymize any private data!

Looking for related issues on cocoapods/cocoapods...

and 11950 more at:
https://github.com/cocoapods/cocoapods/search?q=Failed%20to%20parse%20JSON%20at%20file%3A%20%27%2FUsers%2Frokasgegzna%2F.cocoapods%2Frepos%2Ftrunk%2FSpecs%2Fd%2F7%2Fe%2FHMSegmentedControl%2F1.5.6%2FHMSegmentedControl.podspec.json%27.%0A%0Aunexpected%20token%20at%20%27%27&type=Issues&utf8=✓
`

What was the expected behaviour?

pod install to go smoothly on new project

Was it tested on latest react-native-navigation?

  • I have tested this issue on the latest react-native-navigation release and it still reproduces.

Help us reproduce this issue!

No response

In what environment did this happen?

React Native Navigation version: ^7.37.1
React Native version: 0.72.6
Has Fabric (React Native's new rendering system) enabled: (yes/no) no?
Node version: v21.1.0
Device model: iPhone 14 Pro
iOS version: 17
ruby -v: ruby 3.2.2 (2023-03-30 revision e51014f9c0) [x86_64-darwin23]
pod --version: 1.14.2
macOS: 14.0 Intel
Xcode: Version 15.0.1 (15A507)

@rokasgg
Copy link
Author

rokasgg commented Nov 2, 2023

Nothing related to dependancies, did clean install of all RN ecosystem.

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

1 participant