Open wyngyj opened 1 year ago
I am having the same problem and been stuck on a project for a while have you figured it out ?
添加 source 'https://github.com/CocoaPods/Specs.git',然后重新执行pod install,这样在我这边解决了。
@Ayansa-Alemu @wyngyj This error occurred due to cocapods caches, in some case our pods are caches with our previous projects. So clear the caches of cocapods and reinstall it. It will worked.
to clear the cocapods, this article will help you Clear CocoaPods cache, re-download and re-install all pods
during clear cocapods, if you get permission denied issue then follow this article cocoapods-pod-install-permission-denied
pod install /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/universal-darwin22/rbconfig.rb:21: warning: Insecure world writable dir /opt/homebrew in PATH, mode 040777 [!] No `Podfile' found in the project directory. wuyanan@bogon manors-client-ios % cd Manor wuyanan@bogon Manor % pod install /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/universal-darwin22/rbconfig.rb:21: warning: Insecure world writable dir /opt/homebrew in PATH, mode 040777 Analyzing dependencies
――― MARKDOWN TEMPLATE ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
Command
Report
What did you do?
What did you expect to happen?
What happened instead?
Stack
Plugins
Podfile
Error
――― 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%2Fwuyanan%2F.cocoapods%2Frepos%2Ftrunk%2FSpecs%2F1%2F1%2F7%2FSDWebImage%2F5.12.0%2FSDWebImage.podspec.json%27.%0A%0A416%3A+unexpected+token+at+%27%7B%0A++++++%22name%22%3A+%22MapKit%22%2C%0A++++++%22platforms%22%3A+%7B%0A++++++++%22osx%22%3A+%2210.11%22%2C%0A++++++++%22ios%22%3A+%229.0%22%2C%0A++++++++%22tvos%22%3A+%229.0%22%0A++++++%7D%2C%0A++++++%22source_files%22%3A+%22SDWebImageMapKit%2FMapKit%2F%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... Searching for inspections failed: undefined method `map' for nil:NilClass wuyanan@bogon Manor %