Looking for related issues on cocoapods/cocoapods... Searching for inspections failed: undefined ...

Last login: Wed Sep 18 11:07:41 on ttys000
king@kingdeMac-mini ~ % cd /Users/king/Desktop/QianXunDemo
king@kingdeMac-mini QianXunDemo % pod install
Analyzing dependencies
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

――― MARKDOWN TEMPLATE ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――

Command

/Users/king/.rubies/ruby-3.3.5/bin/pod install

Report

  • What did you do?

  • What did you expect to happen?

  • What happened instead?

Stack

   CocoaPods : 1.15.2
        Ruby : ruby 3.3.5 (2024-09-03 revision ef084cc8f4) [arm64-darwin23]
    RubyGems : 3.5.16
        Host : macOS 14.4 (23E214)
       Xcode :  ()
         Git : git version 2.39.3 (Apple Git-146)
Ruby lib dir : /Users/king/.rubies/ruby-3.3.5/lib
Repositories : trunk - CDN - https://cdn.cocoapods.org/

Plugins

cocoapods-deintegrate : 1.0.5
cocoapods-plugins     : 1.0.0
cocoapods-search      : 1.0.1
cocoapods-trunk       : 1.6.0
cocoapods-try         : 1.2.0

Podfile

# Uncomment the next line to define a global platform for your project
platform :ios, '12.0'
target 'QianXunDemo' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!

pod 'KRProgressHUD'
pod 'SnapKit'
pod 'Toast-Swift', '~> 5.0.1'
pod 'PullToRefreshKit'
pod 'HandyJSON'
pod 'Alamofire'
pod 'RxSwift'
pod 'RxCocoa'
pod 'IQKeyboardManagerSwift'
pod 'lottie-ios'
pod 'Kingfisher'
pod 'Google-Mobile-Ads-SDK'
pod 'FirebaseRemoteConfig'
pod 'FBSDKCoreKit'

target 'QianXunDemoTests' do
  inherit! :search_paths
  # Pods for testing
end
target 'QianXunDemoUITests' do
  # Pods for testing
end
end

Error

JSON::ParserError - Failed to parse JSON at file: '/Users/king/.cocoapods/repos/trunk/Specs/9/b/5/FBSDKCoreKit/13.1.0/FBSDKCoreKit.podspec.json'.

unexpected token at '{
  "name": "FBSDKCoreKit",
  "version": "13.1.0",
  "summary": "Official Facebook SDK for iOS to access Facebook Platform core features",
  "description": "The Facebook SDK for iOS CoreKit framework provides:\n* App Events (for App Analytics)\n* Graph API Access and Error Recovery\n* Working with Access Tokens and User Profiles",
  "homepage": "https://developers.facebook.com/docs/ios/",
  "license": {
    "type": "Facebook Platform License",
    "text": "    Copyright (c) Meta Platforms, Inc. and affiliates. All rights reserved.\n\n    You are hereby granted a non-exclusive, worldwide, royalty-free license to use,\n    copy, modify, and distribute this software in source code or binary form for use\n    in connection with the web services and APIs provided by Facebook.\n\n    As with any software that integrates with the Facebook platform, your use of\n    this software is subject to the Facebook Platform Policy\n    [http://developers.facebook.com/policy/]. This copyright notice shall be\n    included in all copies or substantial portions of the software.\n\n    THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\n    FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\n    COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\n    IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\n    CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n"
  },
  "authors": "Facebook'
/Users/king/.rubies/ruby-3.3.5/lib/ruby/gems/3.3.0/gems/cocoapods-core-1.15.2/lib/cocoapods-core/specification/json.rb:66:in `rescue in from_json'
/Users/king/.rubies/ruby-3.3.5/lib/ruby/gems/3.3.0/gems/cocoapods-core-1.15.2/lib/cocoapods-core/specification/json.rb:61:in `from_json'
/Users/king/.rubies/ruby-3.3.5/lib/ruby/gems/3.3.0/gems/cocoapods-core-1.15.2/lib/cocoapods-core/specification.rb:759:in `from_string'
/Users/king/.rubies/ruby-3.3.5/lib/ruby/gems/3.3.0/gems/cocoapods-core-1.15.2/lib/cocoapods-core/specification.rb:733:in `from_file'
/Users/king/.rubies/ruby-3.3.5/lib/ruby/gems/3.3.0/gems/cocoapods-core-1.15.2/lib/cocoapods-core/source.rb:188:in `specification'
/Users/king/.rubies/ruby-3.3.5/lib/ruby/gems/3.3.0/gems/cocoapods-1.15.2/lib/cocoapods/resolver/lazy_specification.rb:37:in `specification'
/Users/king/.rubies/ruby-3.3.5/lib/ruby/3.3.0/delegate.rb:348:in `block in delegating_block'
/Users/king/.rubies/ruby-3.3.5/lib/ruby/3.3.0/delegate.rb:349:in `block in delegating_block'
/Users/king/.rubies/ruby-3.3.5/lib/ruby/gems/3.3.0/gems/cocoapods-1.15.2/lib/cocoapods/resolver.rb:178:in `dependencies_for'
/Users/king/.rubies/ruby-3.3.5/lib/ruby/gems/3.3.0/gems/molinillo-0.8.0/lib/molinillo/delegates/specification_provider.rb:18:in `block in dependencies_for'
/Users/king/.rubies/ruby-3.3.5/lib/ruby/gems/3.3.0/gems/molinillo-0.8.0/lib/molinillo/delegates/specification_provider.rb:77:in `with_no_such_dependency_error_handling'
/Users/king/.rubies/ruby-3.3.5/lib/ruby/gems/3.3.0/gems/molinillo-0.8.0/lib/molinillo/delegates/specification_provider.rb:17:in `dependencies_for'
/Users/king/.rubies/ruby-3.3.5/lib/ruby/gems/3.3.0/gems/molinillo-0.8.0/lib/molinillo/resolution.rb:809:in `block in group_possibilities'
/Users/king/.rubies/ruby-3.3.5/lib/ruby/gems/3.3.0/gems/molinillo-0.8.0/lib/molinillo/resolution.rb:808:in `reverse_each'
/Users/king/.rubies/ruby-3.3.5/lib/ruby/gems/3.3.0/gems/molinillo-0.8.0/lib/molinillo/resolution.rb:808:in `group_possibilities'
/Users/king/.rubies/ruby-3.3.5/lib/ruby/gems/3.3.0/gems/molinillo-0.8.0/lib/molinillo/resolution.rb:779:in `possibilities_for_requirement'
/Users/king/.rubies/ruby-3.3.5/lib/ruby/gems/3.3.0/gems/molinillo-0.8.0/lib/molinillo/resolution.rb:761:in `push_state_for_requirements'
/Users/king/.rubies/ruby-3.3.5/lib/ruby/gems/3.3.0/gems/molinillo-0.8.0/lib/molinillo/resolution.rb:696:in `attempt_to_filter_existing_spec'
/Users/king/.rubies/ruby-3.3.5/lib/ruby/gems/3.3.0/gems/molinillo-0.8.0/lib/molinillo/resolution.rb:672:in `attempt_to_activate'
/Users/king/.rubies/ruby-3.3.5/lib/ruby/gems/3.3.0/gems/molinillo-0.8.0/lib/molinillo/resolution.rb:254:in `process_topmost_state'
/Users/king/.rubies/ruby-3.3.5/lib/ruby/gems/3.3.0/gems/molinillo-0.8.0/lib/molinillo/resolution.rb:182:in `resolve'
/Users/king/.rubies/ruby-3.3.5/lib/ruby/gems/3.3.0/gems/molinillo-0.8.0/lib/molinillo/resolver.rb:43:in `resolve'
/Users/king/.rubies/ruby-3.3.5/lib/ruby/gems/3.3.0/gems/cocoapods-1.15.2/lib/cocoapods/resolver.rb:94:in `resolve'
/Users/king/.rubies/ruby-3.3.5/lib/ruby/gems/3.3.0/gems/cocoapods-1.15.2/lib/cocoapods/installer/analyzer.rb:1082:in `block in resolve_dependencies'
/Users/king/.rubies/ruby-3.3.5/lib/ruby/gems/3.3.0/gems/cocoapods-1.15.2/lib/cocoapods/user_interface.rb:64:in `section'
/Users/king/.rubies/ruby-3.3.5/lib/ruby/gems/3.3.0/gems/cocoapods-1.15.2/lib/cocoapods/installer/analyzer.rb:1080:in `resolve_dependencies'
/Users/king/.rubies/ruby-3.3.5/lib/ruby/gems/3.3.0/gems/cocoapods-1.15.2/lib/cocoapods/installer/analyzer.rb:125:in `analyze'
/Users/king/.rubies/ruby-3.3.5/lib/ruby/gems/3.3.0/gems/cocoapods-1.15.2/lib/cocoapods/installer.rb:422:in `analyze'
/Users/king/.rubies/ruby-3.3.5/lib/ruby/gems/3.3.0/gems/cocoapods-1.15.2/lib/cocoapods/installer.rb:244:in `block in resolve_dependencies'
/Users/king/.rubies/ruby-3.3.5/lib/ruby/gems/3.3.0/gems/cocoapods-1.15.2/lib/cocoapods/user_interface.rb:64:in `section'
/Users/king/.rubies/ruby-3.3.5/lib/ruby/gems/3.3.0/gems/cocoapods-1.15.2/lib/cocoapods/installer.rb:243:in `resolve_dependencies'
/Users/king/.rubies/ruby-3.3.5/lib/ruby/gems/3.3.0/gems/cocoapods-1.15.2/lib/cocoapods/installer.rb:162:in `install!'
/Users/king/.rubies/ruby-3.3.5/lib/ruby/gems/3.3.0/gems/cocoapods-1.15.2/lib/cocoapods/command/install.rb:52:in `run'
/Users/king/.rubies/ruby-3.3.5/lib/ruby/gems/3.3.0/gems/claide-1.1.0/lib/claide/command.rb:334:in `run'
/Users/king/.rubies/ruby-3.3.5/lib/ruby/gems/3.3.0/gems/cocoapods-1.15.2/lib/cocoapods/command.rb:52:in `run'
/Users/king/.rubies/ruby-3.3.5/lib/ruby/gems/3.3.0/gems/cocoapods-1.15.2/bin/pod:55:in `<top (required)>'
/Users/king/.rubies/ruby-3.3.5/bin/pod:25:in `load'
/Users/king/.rubies/ruby-3.3.5/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%2Fking%2F.cocoapods%2Frepos%2Ftrunk%2FSpecs%2F9%2Fb%2F5%2FFBSDKCoreKit%2F13.1.0%2FFBSDKCoreKit.podspec.json%27.%0A%0Aunexpected+token+at+%27%7B%0A++%22name%22%3A+%22FBSDKCoreKit%22%2C%0A++%22version%22%3A+%2213.1.0%22%2C%0A++%22summary%22%3A+%22Official+Facebook+SDK+for+iOS+to+access+Facebook+Platform+core+features%22%2C%0A++%22description%22%3A+%22The+Facebook+SDK+for+iOS+CoreKit+framework+provides%3A%5Cn%2A+App+Events+%28for+App+Analytics%29%5Cn%2A+Graph+API+Access+and+Error+Recovery%5Cn%2A+Working+with+Access+Tokens+and+User+Profiles%22%2C%0A++%22homepage%22%3A+%22https%3A%2F%2Fdevelopers.facebook.com%2Fdocs%2Fios%2F%22%2C%0A++%22license%22%3A+%7B%0A++++%22type%22%3A+%22Facebook+Platform+License%22%2C%0A++++%22text%22%3A+%22++++Copyright+%28c%29+Meta+Platforms%2C+Inc.+and+affiliates.+All+rights+reserved.%5Cn%5Cn++++You+are+hereby+granted+a+non-exclusive%2C+worldwide%2C+royalty-free+license+to+use%2C%5Cn++++copy%2C+modify%2C+and+distribute+this+software+in+source+code+or+binary+form+for+use%5Cn++++in+connection+with+the+web+services+and+APIs+provided+by+Facebook.%5Cn%5Cn++++As+with+any+software+that+integrates+with+the+Facebook+platform%2C+your+use+of%5Cn++++this+software+is+subject+to+the+Facebook+Platform+Policy%5Cn++++%5Bhttp%3A%2F%2Fdevelopers.facebook.com%2Fpolicy%2F%5D.+This+copyright+notice+shall+be%5Cn++++included+in+all+copies+or+substantial+portions+of+the+software.%5Cn%5Cn++++THE+SOFTWARE+IS+PROVIDED+%5C%22AS+IS%5C%22%2C+WITHOUT+WARRANTY+OF+ANY+KIND%2C+EXPRESS+OR%5Cn++++IMPLIED%2C+INCLUDING+BUT+NOT+LIMITED+TO+THE+WARRANTIES+OF+MERCHANTABILITY%2C+FITNESS%5Cn++++FOR+A+PARTICULAR+PURPOSE+AND+NONINFRINGEMENT.+IN+NO+EVENT+SHALL+THE+AUTHORS+OR%5Cn++++COPYRIGHT+HOLDERS+BE+LIABLE+FOR+ANY+CLAIM%2C+DAMAGES+OR+OTHER+LIABILITY%2C+WHETHER%5Cn++++IN+AN+ACTION+OF+CONTRACT%2C+TORT+OR+OTHERWISE%2C+ARISING+FROM%2C+OUT+OF+OR+IN%5Cn++++CONNECTION+WITH+THE+SOFTWARE+OR+THE+USE+OR+OTHER+DEALINGS+IN+THE+SOFTWARE.%5Cn%22%0A++%7D%2C%0A++%22authors%22%3A+%22Facebook%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
king@kingdeMac-mini QianXunDemo %

解决方法:可能是某些第三方sdk库需要指定的xcode版本才能pod,
可以先把podfile文件中的第三方库注释起来,然后逐个解开注释去pod,当你你发现pod报错时就可以找到是哪个第三方库指定了xcode或者macos或者pods版本要求,在cocoapods官网找到这个第三方库,查看限定pod条件,
所以
要么更新xcode版本,更新cocoapods版本,或者指定第三方库的pod版本

©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 206,126评论 6 481
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 88,254评论 2 382
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 152,445评论 0 341
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 55,185评论 1 278
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 64,178评论 5 371
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 48,970评论 1 284
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 38,276评论 3 399
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 36,927评论 0 259
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 43,400评论 1 300
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 35,883评论 2 323
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 37,997评论 1 333
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 33,646评论 4 322
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 39,213评论 3 307
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 30,204评论 0 19
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 31,423评论 1 260
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 45,423评论 2 352
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 42,722评论 2 345

推荐阅读更多精彩内容