Open chengyinglpl opened 2 years ago
你的ruby版本太高了,换成2.7.2应该可以
TypeError - no implicit conversion of nil into String
/Users/shuai/.rvm/gems/ruby-2.7.2/gems/cocoapods-core-1.11.2/lib/cocoapods-core/specification.rb:711:in `initialize'
/Users/shuai/.rvm/gems/ruby-2.7.2/gems/cocoapods-core-1.11.2/lib/cocoapods-core/specification.rb:711:in `new'
/Users/shuai/.rvm/gems/ruby-2.7.2/gems/cocoapods-core-1.11.2/lib/cocoapods-core/specification.rb:711:in `from_file'
/Users/shuai/.rvm/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/cocoapods-imy-bin-0.3.1.3/lib/cocoapods-imy-bin/command/bin/auto.rb:33:in `initialize'
/Users/shuai/.rvm/gems/ruby-2.7.2/gems/claide-1.0.3/lib/claide/command.rb:356:in `new'
/Users/shuai/.rvm/gems/ruby-2.7.2/gems/claide-1.0.3/lib/claide/command.rb:356:in `parse'
/Users/shuai/.rvm/gems/ruby-2.7.2/gems/claide-1.0.3/lib/claide/command.rb:352:in `parse'
/Users/shuai/.rvm/gems/ruby-2.7.2/gems/claide-1.0.3/lib/claide/command.rb:352:in `parse'
/Users/shuai/.rvm/gems/ruby-2.7.2/gems/claide-1.0.3/lib/claide/command.rb:330:in `run'
/Users/shuai/.rvm/gems/ruby-2.7.2/gems/cocoapods-1.11.2/lib/cocoapods/command.rb:52:in `run'
/Users/shuai/.rvm/gems/ruby-2.7.2/gems/cocoapods-1.11.2/bin/pod:55:in `<top (required)>'
/Users/shuai/.rvm/gems/ruby-2.7.2/bin/pod:23:in `load'
/Users/shuai/.rvm/gems/ruby-2.7.2/bin/pod:23:in `<main>'
/Users/shuai/.rvm/gems/ruby-2.7.2/bin/ruby_executable_hooks:22:in `eval'
/Users/shuai/.rvm/gems/ruby-2.7.2/bin/ruby_executable_hooks:22:in `<main>'
2.7.2也不行
TypeError - no implicit conversion of nil into String /Users/shuai/.rvm/gems/ruby-2.7.2/gems/cocoapods-core-1.11.2/lib/cocoapods-core/specification.rb:711:in `initialize' /Users/shuai/.rvm/gems/ruby-2.7.2/gems/cocoapods-core-1.11.2/lib/cocoapods-core/specification.rb:711:in `new' /Users/shuai/.rvm/gems/ruby-2.7.2/gems/cocoapods-core-1.11.2/lib/cocoapods-core/specification.rb:711:in `from_file' /Users/shuai/.rvm/rubies/ruby-2.7.2/lib/ruby/gems/2.7.0/gems/cocoapods-imy-bin-0.3.1.3/lib/cocoapods-imy-bin/command/bin/auto.rb:33:in `initialize' /Users/shuai/.rvm/gems/ruby-2.7.2/gems/claide-1.0.3/lib/claide/command.rb:356:in `new' /Users/shuai/.rvm/gems/ruby-2.7.2/gems/claide-1.0.3/lib/claide/command.rb:356:in `parse' /Users/shuai/.rvm/gems/ruby-2.7.2/gems/claide-1.0.3/lib/claide/command.rb:352:in `parse' /Users/shuai/.rvm/gems/ruby-2.7.2/gems/claide-1.0.3/lib/claide/command.rb:352:in `parse' /Users/shuai/.rvm/gems/ruby-2.7.2/gems/claide-1.0.3/lib/claide/command.rb:330:in `run' /Users/shuai/.rvm/gems/ruby-2.7.2/gems/cocoapods-1.11.2/lib/cocoapods/command.rb:52:in `run' /Users/shuai/.rvm/gems/ruby-2.7.2/gems/cocoapods-1.11.2/bin/pod:55:in `<top (required)>' /Users/shuai/.rvm/gems/ruby-2.7.2/bin/pod:23:in `load' /Users/shuai/.rvm/gems/ruby-2.7.2/bin/pod:23:in `<main>' /Users/shuai/.rvm/gems/ruby-2.7.2/bin/ruby_executable_hooks:22:in `eval' /Users/shuai/.rvm/gems/ruby-2.7.2/bin/ruby_executable_hooks:22:in `<main>'
2.7.2也不行
那我就不清楚了,感觉这个工具坑很多
这个插件学习成本太高,即使你解决了这个问题,后面还会有一大推问题等着你去解决,总之这个工具使用困难、不具备普适性,demo何其简单单向问题还如此之多,可想运用到真实项目中,解决各种问题的时间远比省下的那些编译时间多的多,而且还消磨耐心~,不建议运用到线上项目中
admin@MacBook-Pro Swift-OC-Demo-master % pod bin auto --all-make /Users/admin/Downloads/Swift-OC-Demo-master/Swift_OC-Swift.h /Users/admin/Downloads/Swift-OC-Demo-master/Swift-OCTests /Users/admin/Downloads/Swift-OC-Demo-master/.DS_Store /Users/admin/Downloads/Swift-OC-Demo-master/Swift-OC.xcworkspace /Users/admin/Downloads/Swift-OC-Demo-master/Swift-OC.xcodeproj /Users/admin/Downloads/Swift-OC-Demo-master/Swift-OCUITests /Users/admin/Downloads/Swift-OC-Demo-master/README.md /Users/admin/Downloads/Swift-OC-Demo-master/Pods /Users/admin/Downloads/Swift-OC-Demo-master/Swift-OC /Users/admin/Downloads/Swift-OC-Demo-master/Podfile /Users/admin/Downloads/Swift-OC-Demo-master/Swift-OC.podspec ====== cocoapods-imy-bin 0.3.0.11 版本 ========
====== dev 环境 ========
====== dev 环境 ======== [pod gen] Running with,, #],
pod gen
configuration {podfile_path: /Users/admin/Downloads/Swift-OC-Demo-master/Podfile,
podfile: Podfile,
use_podfile: true,
use_podfile_plugins: true,
podfile_plugins: {"cocoapods-imy-bin"=>{}},
lockfile: #
use_lockfile: true,
use_lockfile_versions: true,
use_libraries: false,
generate_multiple_pod_projects: false,
incremental_installation: false,
gen_directory: /Users/admin/Downloads/Swift-OC-Demo-master-build-temp/bin-archive,
auto_open: false,
clean: true,
podspec_paths: [#<Pathname:/Users/admin/Downloads/Swift-OC-Demo-master/Swift-OC.podspec>, #<Pathname:/Users/admin/Downloads/Swift-OC-Demo-master/Swift-OC.podspec>],
podspecs: [#
sources: ["git@github.com:chengyinglpl/spec_bin_dev.git", "git@github.com:chengyinglpl/Swift-OC-Demo.git", "git@github.com:chengyinglpl/spec_bin_dev.git", "git@github.com:chengyinglpl/Swift-OC-Demo.git", "https://cdn.cocoapods.org"],
repo_update: false,
use_default_plugins: false,
deterministic_uuids: false,
share_schemes_for_development_pods: true,
warn_for_multiple_pod_sources: false,
use_modular_headers: false }
――― 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.
It appears to have originated from your Podfile at line 0.
Search for existing GitHub issues similar to yours: https://github.com/CocoaPods/CocoaPods/search?q=undefined+method+%60podfile_plugins%27+for+%23%3CPod%3A%3AGenerate%3A%3APodfileGenerator%3A0x00007f84441e4978+%40configuration%3D%23%3CPod%3A%3AGenerate%3A%3AConfiguration%3A0x00007f844894ea70+%40pod_config%3D%23%3CPod%3A%3AConfig%3A0x00007f84440f4810+%40verbose%3Dtrue%2C+%40silent%3Dfalse%2C+%40skip_download_cache%3Dfalse%2C+%40new_version_message%3Dtrue%2C+%40cache_root%3D%23%3CPathname%3A%2FUsers%2Fadmin%2FLibrary%2FCaches%2FCocoaPods%3E%2C+%40home_dir%3D%23%3CPathname%3A%2FUsers%2Fadmin%2F.cocoapods%3E%2C+%40templates_dir%3D%23%3CPathname%3A%2FUsers%2Fadmin%2F.cocoapods%2Ftemplates%3E%2C+%40repos_dir%3D%23%3CPathname%3A%2FUsers%2Fadmin%2F.cocoapods%2Frepos%3E%2C+%40allow_root%3Dnil%2C+%40sources_manager%3D%23%3CPod%3A%3ASource%3A%3AManager%3A0x00007f844792fab8+%40repos_dir%3D%23%3CPathname%3A%2FUsers%2Fadmin%2F.cocoapods%2Frepos%3E%2C+%40sources_by_path%3D%7B%23%3CPathname%3A%2FUsers%2Fadmin%2F.cocoapods%2Frepos%2Fchengyinglpl%3E%3D%3E%23%3CPod%3A%3ASource+name%3Achengyinglpl+type%3Agit%3E%2C+%23%3CPathname%3A%2FUsers%2Fadmin%2F.cocoapods%2Frepos%2Fchengyinglpl-1%3E%3D%3E%23%3CPod%3A%3ASource+name%3Achengyinglpl-1+type%3Agit%3E%2C+%23%3CPathname%3A%2FUsers%2Fadmin%2F.cocoapods%2Frepos%2Fchengyinglpl-2%3E%3D%3E%23%3CPod%3A%3ASource+name%3Achengyinglpl-2+type%3Agit%3E%2C+%23%3CPathname%3A%2FUsers%2Fadmin%2F.cocoapods%2Frepos%2Fmaster%3E%3D%3E%23%3CPod%3A%3ASource+name%3Amaster+type%3Agit%3E%2C+%23%3CPathname%3A%2FUsers%2Fadmin%2F.cocoapods%2Frepos%2Fpoizon-dupublicspecs%3E%3D%3E%23%3CPod%3A%3ASource+name%3Apoizon-dupublicspecs+type%3Agit%3E%2C+%23%3CPathname%3A%2FUsers%2Fadmin%2F.cocoapods%2Frepos%2FPrivatePods%3E%3D%3E%23%3CPod%3A%3ASource+name%3APrivatePods+type%3Agit%3E%2C+%23%3CPathname%3A%2FUsers%2Fadmin%2F.cocoapods%2Frepos%2Fshihuo-95fen-ios%3E%3D%3E%23%3CPod%3A%3ASource+name%3Ashihuo-95fen-ios+type%3Agit%3E%2C+%23%3CPathname%3A%2FUsers%2Fadmin%2F.cocoapods%2Frepos%2Fshihuo-nfspecs%3E%3D%3E%23%3CPod%3A%3ASource+name%3Ashihuo-nfspecs+type%3Agit%3E%2C+%23%3CPathname%3A%2FUsers%2Fadmin%2F.cocoapods%2Frepos%2Fshizhuang-inc-dupublicspecs%3E%3D%3E%23%3CPod%3A%3ASource+name%3Ashizhuang-inc-dupublicspecs+type%3Agit%3E%2C+%23%3CPathname%3A%2FUsers%2Fadmin%2F.cocoapods%2Frepos%2Fspec_bin_dev%3E%3D%3E%23%3CPod%3A%3ASource+name%3Aspec_bin_dev+type%3Agit%3E%2C+%23%3CPathname%3A%2FUsers%2Fadmin%2F.cocoapods%2Frepos%2Ftrunk%3E%3D%3E%23%3CPod%3A%3ATrunkSource+name%3Atrunk+type%3ACDN%3E%7D%2C+%40aggregates_by_repos%3D%7B%5B%23%3CPathname%3A%2FUsers%2Fadmin%2F.cocoapods%2Frepos%2Fchengyinglpl%3E%2C+%23%3CPathname%3A%2FUsers%2Fadmin%2F.cocoapods%2Frepos%2Fchengyinglpl-1%3E%2C+%23%3CPathname%3A%2FUsers%2Fadmin%2F.cocoapods%2Frepos%2Fchengyinglpl-2%3E%2C+%23%3CPathname%3A%2FUsers%2Fadmin%2F.cocoapods%2Frepos%2Fmaster%3E%2C+%23%3CPathname%3A%2FUsers%2Fadmin%2F.cocoapods%2Frepos%2Fpoizon-dupublicspecs%3E%2C+%23%3CPathname%3A%2FUsers%2Fadmin%2F.cocoapods%2Frepos%2FPrivatePods%3E%2C+%23%3CPathname%3A%2FUsers%2Fadmin%2F.cocoapods%2Frepos%2Fshihuo-95fen-ios%3E%2C+%23%3CPathname%3A%2FUsers%2Fadmin%2F.cocoapods%2Frepos%2Fshihuo-nfspecs%3E%2C+%23%3CPathname%3A%2FUsers%2Fadmin%2F.cocoapods%2Frepos%2Fshizhuang-inc-dupublicspecs%3E%2C+%23%3CPathname%3A%2FUsers%2Fadmin%2F.cocoapods%2Frepos%2Fspec_bin_dev%3E%2C+%23%3CPathname%3A%2FUsers%2Fadmin%2F.cocoapods%2Frepos%2Ftrunk%3E%5D%3D%3E%23%3CPod%3A%3ASource%3A%3AAggregate%3A0x00007f84480f4d70+%40sources%3D%5B%23%3CPod%3A%3ASource+name%3Achengyinglpl+type%3Agit%3E%2C+%23%3CPod%3A%3ASource+name%3Achengyinglpl-1+type%3Agit%3E%2C+%23%3CPod%3A%3ASource+name%3Achengyinglpl-2+type%3Agit%3E%2C+%23%3CPod%3A%3ASource+name%3Amaster+type%3Agit%3E%2C+%23%3CPod%3A%3ASource+name%3Apoizon-dupublicspecs+type%3Agit%3E%2C+%23%3CPod%3A%3ASource+name%3APrivatePods+type%3Agit%3E%2C+%23%3CPod%3A%3ASource+name%3Ashihuo-95fen-ios+type%3Agit%3E%2C+%23%3CPod%3A%3ASource+name%3Ashihuo-nfspecs+type%3Agit%3E%2C+%23%3CPod%3A%3ASource+name%3Ashizhuang-inc-dupublicspecs+type%3Agit%3E%2C+%23%3CPod%3A%3ASource+name%3Aspec_bin_dev+type%3Agit%3E%2C+%23%3CPod%3A%3ATrunkSource+name%3Atrunk+type%3ACDN%3E%5D%3E%7D%3E%2C+%40installation_root%3D%23%3CPathname%3A%2FUsers%2Fadmin%2FDownloads%2FSwift-OC-Demo-master%3E%2C+%40podfile_path%3D%23%3CPathname%3A%2FUsers%2Fadmin%2FDownloads%2FSwift-OC-Demo-master%2FPodfile%3E%2C+%40podfile%3D%23%3CPod%3A%3APodfile%3A0x00007f844291a1e0+%40defined_in_file%3D%23%3CPathname%3A%2FUsers%2Fadmin%2FDownloads%2FSwift-OC-Demo-master%2FPodfile%3E%2C+%40internal_hash%3D%7B%22sources%22%3D%3E%5B%22https%3A%2F%2Fcdn.cocoapods.org%2F%22%5D%7D%2C+%40root_target_definitions%3D%5B%23%3CPod%3A%3APodfile%3A%3ATargetDefinition+label%3DPods%3E%5D%2C+%40current_target_definition%3D%23%3CPod%3A%3APodfile%3A%3ATargetDefinition+label%3DPods%3E%3E%2C+%40lockfile_path%3D%23%3CPathname%3A%2FUsers%2Fadmin%2FDownloads%2FSwift-OC-Demo-master%2FPodfile.lock%3E%2C+%40lockfile%3D%23%3CPod%3A%3ALockfile%3E%3E%2C+%40podfile_path%3D%23%3CPathname%3A%2FUsers%2Fadmin%2FDownloads%2FSwift-OC-Demo-master%2FPodfile%3E%2C+%40podfile%3D%23%3CPod%3A%3APodfile%3A0x00007f844894e7c8+%40defined_in_file%3D%23%3CPathname%3A%2FUsers%2Fadmin%2FDownloads%2FSwift-OC-Demo-master%2FPodfile%3E%2C+%40internal_hash%3D%7B%22sources%22%3D%3E%5B%22https%3A%2F%2Fcdn.cocoapods.org%2F%22%5D%7D%2C+%40root_target_definitions%3D%5B%23%3CPod%3A%3APodfile%3A%3ATargetDefinition+label%3DPods%3E%5D%2C+%40current_target_definition%3D%23%3CPod%3A%3APodfile%3A%3ATargetDefinition+label%3DPods%3E%3E%2C+%40use_podfile%3Dtrue%2C+%40use_podfile_plugins%3Dtrue%2C+%40podfile_plugins%3D%7B%22cocoapods-imy-bin%22%3D%3E%7B%7D%7D%2C+%40lockfile%3D%23%3CPod%3A%3ALockfile%3E%2C+%40use_lockfile%3Dtrue%2C+%40use_lockfile_versions%3Dtrue%2C+%40use_libraries%3Dfalse%2C+%40generate_multiple_pod_projects%3Dfalse%2C+%40incremental_installation%3Dfalse%2C+%40gen_directory%3D%23%3CPathname%3A%2FUsers%2Fadmin%2FDownloads%2FSwift-OC-Demo-master-build-temp%2Fbin-archive%3E%2C+%40auto_open%3Dfalse%2C+%40clean%3Dtrue%2C+%40app_host_source_dir%3Dnil%2C+%40podspec_paths%3D%5B%23%3CPathname%3A%2FUsers%2Fadmin%2FDownloads%2FSwift-OC-Demo-master%2FSwift-OC.podspec%3E%2C+%23%3CPathname%3A%2FUsers%2Fadmin%2FDownloads%2FSwift-OC-Demo-master%2FSwift-OC.podspec%3E%5D%2C+%40podspecs%3D%5B%23%3CPod%3A%3ASpecification+name%3D%22Swift-OC%22%3E%2C+%23%3CPod%3A%3ASpecification+name%3D%22Swift-OC%22%3E%5D%2C+%40sources%3D%5B%22git%40github.com%3Achengyinglpl%2Fspec_bin_dev.git%22%2C+%22git%40github.com%3Achengyinglpl%2FSwift-OC-Demo.git%22%2C+%22git%40github.com%3Achengyinglpl%2Fspec_bin_dev.git%22%2C+%22git%40github.com%3Achengyinglpl%2FSwift-OC-Demo.git%22%2C+%22https%3A%2F%2Fcdn.cocoapods.org%22%5D%2C+%40repo_update%3Dfalse%2C+%40use_default_plugins%3Dfalse%2C+%40deterministic_uuids%3Dfalse%2C+%40share_schemes_for_development_pods%3Dtrue%2C+%40warn_for_multiple_pod_sources%3Dfalse%2C+%40use_modular_headers%3Dfalse%3E%3E%0ADid+you+mean%3F++podfile_dependencies&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
[!] cocoapods-generate requires CocoaPods >= 1.5.0
[!] ====== cocoapods-imy-bin 0.3.0.11 版本 ========
[!] ====== dev 环境 ========