-
Notifications
You must be signed in to change notification settings - Fork 246
Description
看了你们的文章后,我非常喜欢你们的这个方案,但是我在尝试使用的时候出现了一些问题。
我所使用的是Apple M1芯片的电脑。
以下是我做的一些配置,在处理到pod bin auto --all-make 产生了以下的问题,相信也有一些小伙伴也遇到了这个问题:
zk_01@zk-01deMac-mini ZKModule_Demo %
zk_01@zk-01deMac-mini ZKModule_Demo % pod bin auto --all-make
/Users/zk_01/Desktop/Demo/组件化探究/组件库/ ZKModule_spec_dev/ZKModule_Demo/Podfile_local
/Users/zk_01/Desktop/Demo/组件化探究/组件库/ ZKModule_spec_dev/ZKModule_Demo/ZKModule_Demo.podspec
====== cocoapods-imy-bin 0.3.0.11 版本 ========
====== dev 环境 ========
====== dev 环境 ========
[pod gen] Running with pod gen
configuration {
podfile_path: /Users/zk_01/Desktop/Demo/组件化探究/组件库/ ZKModule_spec_dev/ZKModule_Demo/Podfile,
podfile: Podfile,
use_podfile: true,
use_podfile_plugins: true,
podfile_plugins: {"cocoapods-imy-bin"=>{}},
lockfile: #Pod::Lockfile,
use_lockfile: true,
use_lockfile_versions: true,
use_libraries: false,
generate_multiple_pod_projects: false,
incremental_installation: false,
gen_directory: /Users/zk_01/Desktop/Demo/组件化探究/组件库/ ZKModule_spec_dev/ZKModule_Demo-build-temp/bin-archive,
auto_open: false,
clean: true,
podspec_paths: [#<Pathname:/Users/zk_01/Desktop/Demo/组件化探究/组件库/ ZKModule_spec_dev/ZKModule_Demo/ZKModule_Demo.podspec>, #<Pathname:/Users/zk_01/Desktop/Demo/组件化探究/组件库/ ZKModule_spec_dev/ZKModule_Demo/ZKModule_Demo.podspec>],
podspecs: [#<Pod::Specification name="ZKModule_Demo">, #<Pod::Specification name="ZKModule_Demo">],
sources: ["https://gitee.com/DaviesH/zkmodule_spec_bin_dev.git", "https://gitee.com/DaviesH/lxtspecs.git", "https://gitee.com/DaviesH/zkmodule_spec_bin_dev.git", "https://gitee.com/DaviesH/lxtspecs.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
/Users/zk_01/.rvm/gems/ruby-3.0.0/bin/pod bin auto --all-make
Report
-
What did you do?
-
What did you expect to happen?
-
What happened instead?
Stack
CocoaPods : 1.11.3
Ruby : ruby 3.0.0p0 (2020-12-25 revision 95aff21468) [arm64-darwin20]
RubyGems : 3.2.3
Host : macOS 11.6 (20G165)
Xcode : 13.2.1 (13C100)
Git : git version 2.32.0 (Apple Git-132)
Ruby lib dir : /Users/zk_01/.rvm/rubies/ruby-3.0.0/lib
Repositories : cocoapods - git - https://github.com/CocoaPods/Specs.git @ 6bda3c3f4c3909456fc085084b5506d1f7535ad5
gitee-daviesh-zkmodule_spec_bin_dev - git - https://gitee.com/DaviesH/zkmodule_spec_bin_dev.git @ e57bb05a2bfa30bbfbba9cb722ffab2c241af77d
lxtspecs - git - https://gitee.com/DaviesH/lxtspecs.git @ 3d5325f141417fcc5bf2d84dccbdd8cdc87bb3f6
master - git - https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git @ c96e58acb571c7844eb113c18daf86c8bad57fbe
PQCategory - git - http://172.29.151.11/ios/PQCategory.git @ 04911277571c859e00c4fc7eecf5944c05ac1d75
PQSpecs - git - http://172.29.151.11/ios/pqspecs.git @ 6c6065a719192f2db272fb61069b946e50f2f1c3
seongbrave-twilightspecs - git - https://github.com/seongbrave/TwilightSpecs.git @ 388856d8b2913d264da7074fb1877e126e65b8fc
su350380433-example_spec_bin_dev - git - https://github.com/su350380433/example_spec_bin_dev.git @ 04a94cd20abe9ab0cf131b80ddbf35071ad044df
su350380433-example_spec_source - git - https://github.com/su350380433/example_spec_source.git @ 5a421ce7d5c61ff3cd761d44c751c72ccea3d3ff
trunk - CDN - https://cdn.cocoapods.org/
ZKModule_spec_dev - git - https://gitee.com/DaviesH/ZKModule_spec_dev.git @ 3c74a5a70a3c38d9980a98f0459743d28e877085
Plugins
cocoapods-deintegrate : 1.0.5
cocoapods-generate : 1.4.1
cocoapods-imy-bin : 0.3.0.11
cocoapods-plugins : 1.0.0
cocoapods-search : 1.0.1
cocoapods-stats : 1.1.0
cocoapods-trunk : 1.6.0
cocoapods-try : 1.2.0
Podfile
source 'https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git'
source 'https://gitee.com/DaviesH/lxtspecs.git'
#plugin 'cocoapods-imy-bin'
#use_binaries!
use_frameworks!
#platform :ios, '13.0'
target 'ZKModule_Demo' do
pod 'ModuleB' ,:git=>"https://gitee.com/DaviesH/module-b.git", :tag=>'0.0.3'
pod 'ModuleA' ,'~> 0.1.1'
end
Error
NoMethodError - undefined method `podfile_plugins' for #<Pod::Generate::PodfileGenerator:0x0000000139277358 @configuration=#<Pod::Generate::Configuration:0x000000013925e808 @pod_config=#<Pod::Config:0x00000001507023c0 @verbose=true, @silent=false, @skip_download_cache=false, @new_version_message=true, @cache_root=#<Pathname:/Users/zk_01/Library/Caches/CocoaPods>, @home_dir=#<Pathname:/Users/zk_01/.cocoapods>, @templates_dir=#<Pathname:/Users/zk_01/.cocoapods/templates>, @repos_dir=#<Pathname:/Users/zk_01/.cocoapods/repos>, @allow_root=nil, @sources_manager=#<Pod::Source::Manager:0x00000001507d0cc0 @repos_dir=#<Pathname:/Users/zk_01/.cocoapods/repos>, @sources_by_path={#<Pathname:/Users/zk_01/.cocoapods/repos/cocoapods>=>#<Pod::Source name:cocoapods type:git>, #<Pathname:/Users/zk_01/.cocoapods/repos/gitee-daviesh-zkmodule_spec_bin_dev>=>#<Pod::Source name:gitee-daviesh-zkmodule_spec_bin_dev type:git>, #<Pathname:/Users/zk_01/.cocoapods/repos/lxtspecs>=>#<Pod::Source name:lxtspecs type:git>, #<Pathname:/Users/zk_01/.cocoapods/repos/master>=>#<Pod::Source name:master type:git>, #<Pathname:/Users/zk_01/.cocoapods/repos/PQCategory>=>#<Pod::Source name:PQCategory type:git>, #<Pathname:/Users/zk_01/.cocoapods/repos/PQSpecs>=>#<Pod::Source name:PQSpecs type:git>, #<Pathname:/Users/zk_01/.cocoapods/repos/seongbrave-twilightspecs>=>#<Pod::Source name:seongbrave-twilightspecs type:git>, #<Pathname:/Users/zk_01/.cocoapods/repos/su350380433-example_spec_bin_dev>=>#<Pod::Source name:su350380433-example_spec_bin_dev type:git>, #<Pathname:/Users/zk_01/.cocoapods/repos/su350380433-example_spec_source>=>#<Pod::Source name:su350380433-example_spec_source type:git>, #<Pathname:/Users/zk_01/.cocoapods/repos/trunk>=>#<Pod::TrunkSource name:trunk type:CDN>, #<Pathname:/Users/zk_01/.cocoapods/repos/ZKModule_spec_dev>=>#<Pod::Source name:ZKModule_spec_dev type:git>}, @aggregates_by_repos={[#<Pathname:/Users/zk_01/.cocoapods/repos/cocoapods>, #<Pathname:/Users/zk_01/.cocoapods/repos/gitee-daviesh-zkmodule_spec_bin_dev>, #<Pathname:/Users/zk_01/.cocoapods/repos/lxtspecs>, #<Pathname:/Users/zk_01/.cocoapods/repos/master>, #<Pathname:/Users/zk_01/.cocoapods/repos/PQCategory>, #<Pathname:/Users/zk_01/.cocoapods/repos/PQSpecs>, #<Pathname:/Users/zk_01/.cocoapods/repos/seongbrave-twilightspecs>, #<Pathname:/Users/zk_01/.cocoapods/repos/su350380433-example_spec_bin_dev>, #<Pathname:/Users/zk_01/.cocoapods/repos/su350380433-example_spec_source>, #<Pathname:/Users/zk_01/.cocoapods/repos/trunk>, #<Pathname:/Users/zk_01/.cocoapods/repos/ZKModule_spec_dev>]=>#<Pod::Source::Aggregate:0x00000001391dcb00 @sources=[#<Pod::Source name:cocoapods type:git>, #<Pod::Source name:gitee-daviesh-zkmodule_spec_bin_dev type:git>, #<Pod::Source name:lxtspecs type:git>, #<Pod::Source name:master type:git>, #<Pod::Source name:PQCategory type:git>, #<Pod::Source name:PQSpecs type:git>, #<Pod::Source name:seongbrave-twilightspecs type:git>, #<Pod::Source name:su350380433-example_spec_bin_dev type:git>, #<Pod::Source name:su350380433-example_spec_source type:git>, #<Pod::TrunkSource name:trunk type:CDN>, #<Pod::Source name:ZKModule_spec_dev type:git>]>}>, @installation_root=#<Pathname:/Users/zk_01/Desktop/Demo/组件化探究/组件库/ ZKModule_spec_dev/ZKModule_Demo>, @podfile_path=#<Pathname:/Users/zk_01/Desktop/Demo/组件化探究/组件库/ ZKModule_spec_dev/ZKModule_Demo/Podfile>, @podfile=#<Pod::Podfile:0x000000013919b768 @defined_in_file=#<Pathname:/Users/zk_01/Desktop/Demo/组件化探究/组件库/ ZKModule_spec_dev/ZKModule_Demo/Podfile>, @internal_hash={"sources"=>["https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git", "https://gitee.com/DaviesH/lxtspecs.git"]}, @root_target_definitions=[#<Pod::Podfile::TargetDefinition label=Pods>], @current_target_definition=#<Pod::Podfile::TargetDefinition label=Pods>>, @lockfile_path=#<Pathname:/Users/zk_01/Desktop/Demo/组件化探究/组件库/ ZKModule_spec_dev/ZKModule_Demo/Podfile.lock>, @lockfile=#<Pod::Lockfile>>, @podfile_path=#<Pathname:/Users/zk_01/Desktop/Demo/组件化探究/组件库/ ZKModule_spec_dev/ZKModule_Demo/Podfile>, @podfile=#<Pod::Podfile:0x000000013925e588 @defined_in_file=#<Pathname:/Users/zk_01/Desktop/Demo/组件化探究/组件库/ ZKModule_spec_dev/ZKModule_Demo/Podfile>, @internal_hash={"sources"=>["https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git", "https://gitee.com/DaviesH/lxtspecs.git"]}, @root_target_definitions=[#<Pod::Podfile::TargetDefinition label=Pods>], @current_target_definition=#<Pod::Podfile::TargetDefinition label=Pods>>, @use_podfile=true, @use_podfile_plugins=true, @podfile_plugins={"cocoapods-imy-bin"=>{}}, @lockfile=#<Pod::Lockfile>, @use_lockfile=true, @use_lockfile_versions=true, @use_libraries=false, @generate_multiple_pod_projects=false, @incremental_installation=false, @gen_directory=#<Pathname:/Users/zk_01/Desktop/Demo/组件化探究/组件库/ ZKModule_spec_dev/ZKModule_Demo-build-temp/bin-archive>, @auto_open=false, @clean=true, @app_host_source_dir=nil, @podspec_paths=[#<Pathname:/Users/zk_01/Desktop/Demo/组件化探究/组件库/ ZKModule_spec_dev/ZKModule_Demo/ZKModule_Demo.podspec>, #<Pathname:/Users/zk_01/Desktop/Demo/组件化探究/组件库/ ZKModule_spec_dev/ZKModule_Demo/ZKModule_Demo.podspec>], @podspecs=[#<Pod::Specification name="ZKModule_Demo">, #<Pod::Specification name="ZKModule_Demo">], @sources=["https://gitee.com/DaviesH/zkmodule_spec_bin_dev.git", "https://gitee.com/DaviesH/lxtspecs.git", "https://gitee.com/DaviesH/zkmodule_spec_bin_dev.git", "https://gitee.com/DaviesH/lxtspecs.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>>
Did you mean? podfile_dependencies
/Users/zk_01/.rvm/rubies/ruby-3.0.0/lib/ruby/gems/3.0.0/gems/cocoapods-imy-bin-0.3.0.11/lib/cocoapods-imy-bin/native/podfile_generator.rb:34:in `block in podfile_for_spec'
/Users/zk_01/.rvm/rubies/ruby-3.0.0/lib/ruby/gems/3.0.0/gems/cocoapods-core-1.11.3/lib/cocoapods-core/podfile.rb:50:in `instance_eval'
/Users/zk_01/.rvm/rubies/ruby-3.0.0/lib/ruby/gems/3.0.0/gems/cocoapods-core-1.11.3/lib/cocoapods-core/podfile.rb:50:in `initialize'
/Users/zk_01/.rvm/rubies/ruby-3.0.0/lib/ruby/gems/3.0.0/gems/cocoapods-imy-bin-0.3.0.11/lib/cocoapods-imy-bin/native/podfile_generator.rb:26:in `new'
/Users/zk_01/.rvm/rubies/ruby-3.0.0/lib/ruby/gems/3.0.0/gems/cocoapods-imy-bin-0.3.0.11/lib/cocoapods-imy-bin/native/podfile_generator.rb:26:in `podfile_for_spec'
/Users/zk_01/.rvm/rubies/ruby-3.0.0/lib/ruby/gems/3.0.0/gems/cocoapods-generate-1.4.1/lib/cocoapods/generate/podfile_generator.rb:22:in `block in podfiles_by_spec'
/Users/zk_01/.rvm/rubies/ruby-3.0.0/lib/ruby/gems/3.0.0/gems/cocoapods-generate-1.4.1/lib/cocoapods/generate/podfile_generator.rb:21:in `map'
/Users/zk_01/.rvm/rubies/ruby-3.0.0/lib/ruby/gems/3.0.0/gems/cocoapods-generate-1.4.1/lib/cocoapods/generate/podfile_generator.rb:21:in `podfiles_by_spec'
/Users/zk_01/.rvm/rubies/ruby-3.0.0/lib/ruby/gems/3.0.0/gems/cocoapods-generate-1.4.1/lib/cocoapods/command/gen.rb:67:in `run'
/Users/zk_01/.rvm/rubies/ruby-3.0.0/lib/ruby/gems/3.0.0/gems/cocoapods-imy-bin-0.3.0.11/lib/cocoapods-imy-bin/command/bin/archive.rb:176:in `block (2 levels) in generate_project'
/Users/zk_01/.rvm/rubies/ruby-3.0.0/lib/ruby/gems/3.0.0/gems/cocoapods-imy-bin-0.3.0.11/lib/cocoapods-imy-bin/native/podfile_env.rb:29:in `execute_with_key'
/Users/zk_01/.rvm/rubies/ruby-3.0.0/lib/ruby/gems/3.0.0/gems/cocoapods-imy-bin-0.3.0.11/lib/cocoapods-imy-bin/native/podfile_env.rb:22:in `execute_with_use_binaries'
/Users/zk_01/.rvm/rubies/ruby-3.0.0/lib/ruby/gems/3.0.0/gems/cocoapods-imy-bin-0.3.0.11/lib/cocoapods-imy-bin/command/bin/archive.rb:155:in `block in generate_project'
/Users/zk_01/.rvm/rubies/ruby-3.0.0/lib/ruby/gems/3.0.0/gems/cocoapods-imy-bin-0.3.0.11/lib/cocoapods-imy-bin/native/podfile_env.rb:29:in `execute_with_key'
/Users/zk_01/.rvm/rubies/ruby-3.0.0/lib/ruby/gems/3.0.0/gems/cocoapods-imy-bin-0.3.0.11/lib/cocoapods-imy-bin/native/podfile_env.rb:14:in `execute_with_bin_plugin'
/Users/zk_01/.rvm/rubies/ruby-3.0.0/lib/ruby/gems/3.0.0/gems/cocoapods-imy-bin-0.3.0.11/lib/cocoapods-imy-bin/command/bin/archive.rb:154:in `generate_project'
/Users/zk_01/.rvm/rubies/ruby-3.0.0/lib/ruby/gems/3.0.0/gems/cocoapods-imy-bin-0.3.0.11/lib/cocoapods-imy-bin/command/bin/archive.rb:70:in `run'
/Users/zk_01/.rvm/rubies/ruby-3.0.0/lib/ruby/gems/3.0.0/gems/cocoapods-imy-bin-0.3.0.11/lib/cocoapods-imy-bin/command/bin/auto.rb:126:in `run_archive'
/Users/zk_01/.rvm/rubies/ruby-3.0.0/lib/ruby/gems/3.0.0/gems/cocoapods-imy-bin-0.3.0.11/lib/cocoapods-imy-bin/command/bin/auto.rb:54:in `run'
/Users/zk_01/.rvm/rubies/ruby-3.0.0/lib/ruby/gems/3.0.0/gems/claide-1.0.3/lib/claide/command.rb:334:in `run'
/Users/zk_01/.rvm/rubies/ruby-3.0.0/lib/ruby/gems/3.0.0/gems/cocoapods-1.11.3/lib/cocoapods/command.rb:52:in `run'
/Users/zk_01/.rvm/rubies/ruby-3.0.0/lib/ruby/gems/3.0.0/gems/cocoapods-1.11.3/bin/pod:55:in `<top (required)>'
/Users/zk_01/.rvm/gems/ruby-3.0.0/bin/pod:23:in `load'
/Users/zk_01/.rvm/gems/ruby-3.0.0/bin/pod:23:in `<main>'
/Users/zk_01/.rvm/gems/ruby-3.0.0/bin/ruby_executable_hooks:22:in `eval'
/Users/zk_01/.rvm/gems/ruby-3.0.0/bin/ruby_executable_hooks:22:in `<main>'
――― TEMPLATE END ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
[!] Oh no, an error occurred.
It appears to have originated from your Podfile at line 0.
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 环境 ========
zk_01@zk-01deMac-mini ZKModule_Demo %
zk_01@zk-01deMac-mini ZKModule_Demo %