Mus*_*shi 6 ios node-modules ionic-framework
我正在尝试为 iOS 生成捆绑包,但 pod 向我抛出此错误。\n我 95% 确定这是插件问题,但我无法解决。
\n我尝试重新安装 pod,重新创建电容器 ios。\n我正在 mac 上使用新的 m1 进行操作
\n\xe2\x9c\x94 在 25.89 毫秒内更新 Android 插件
\n找到 2 个适用于 android 的 Capacitor 插件:\n@capacitor-community/keep-awake (1.0.0)\ncapacitor-keep-screen-on (1.0.0-alpha.6)\n找到 6 个适用于 android 的 Cordova 插件\ncc.fovea .cordova.purchase (10.1.1)\ncordova-plugin-device (2.0.3)\ncordova-plugin-file (6.0.2)\ncordova-plugin-file-transfer (1.7.1)\ncordova-plugin-ionic (5.4.7)\ncordova-plugin-whitelist (1.3.4)\n在此处输入代码
\n\xe2\x9c\x94 在 65.89ms 内更新 android
\n\xe2\x9c\x94 在 8.94ms 内更新 iOS 插件\n发现 2 个适用于 ios 的 Capacitor 插件:\n@capacitor-community/keep-awake (1.0.0)\ncapacitor-keep-screen-on (1.0.0-alpha. 6)\n找到 5 个适用于 ios 的 Cordova 插件\ncc.fovea.cordova.purchase (10.1.1)\ncordova-plugin-device (2.0.3)\ncordova-plugin-file (6.0.2)\ncordova-plugin-file -transfer (1.7.1)\ncordova-plugin-ionic (5.4.7)\n\xe2\xa0\x8b 使用“pod i\xe2\xa0\x99”更新 iOS 本机依赖项 使用“pod i\xe2”更新 iOS 本机依赖项\xa0\xb9 使用“pod i\xe2\xa0\xb8”更新 iOS 本机依赖项 使用“pod i\xe2\xa0\xbc”更新 iOS 本机依赖项 使用“pod i\xe2\xa0\xb4”更新 iOS 本机依赖项使用“pod i\xe2\xa0\xa6” 使用“pod i\xe2\xa0\xa7”更新 iOS 本机依赖项 使用“pod i\xe2\xa0\x87”更新 iOS 本机依赖项 使用“pod i\xe2\xa0”更新 iOS 本机依赖项\x8f 使用“pod i 更新 iOS 本机依赖项
\n\xe2\x9c\x96 使用“pod install”更新 iOS 本机依赖项(可能需要几分钟):
\n\xe2\x9c\x96 更新 ios:\n[错误] 正在分析依赖项
\n\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95 降价模板 \xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95 \xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2 \x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80 \x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95 \xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2 \x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80 \x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95 \xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95
\n/opt/homebrew/Cellar/cocoapods/1.10.0_2/libexec/bin/pod install\nRun Code Online (Sandbox Code Playgroud)\n你做了什么?
\n您预计会发生什么?
\n相反发生了什么?
\n CocoaPods : 1.10.0\n Ruby : ruby 2.6.3p62 (2019-04-16 revision 67580) [universal.arm64e-darwin20]\n RubyGems : 3.0.3\n Host : macOS 11.0.1 (20B29)\n Xcode : 12.3 (12C33)\n Git : git version 2.24.3 (Apple Git-128)\nRuby lib dir : /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib\nRepositories : \nRun Code Online (Sandbox Code Playgroud)\ncocoapods-deintegrate : 1.0.4\ncocoapods-plugins : 1.0.0\ncocoapods-search : 1.0.0\ncocoapods-trunk : 1.5.0\ncocoapods-try : 1.2.0\nRun Code Online (Sandbox Code Playgroud)\n/opt/homebrew/Cellar/cocoapods/1.10.0_2/libexec/bin/pod install\nRun Code Online (Sandbox Code Playgroud)\nLoadError - dlopen(/opt/homebrew/Cellar/cocoapods/1.10.0_2/libexec/gems/ffi-1.14.2/lib/ffi_c.bundle, 0x0009): missing compatible arch in /opt/homebrew/Cellar/cocoapods/1.10.0_2/libexec/gems/ffi-1.14.2/lib/ffi_c.bundle - /opt/homebrew/Cellar/cocoapods/1.10.0_2/libexec/gems/ffi-1.14.2/lib/ffi_c.bundle\n/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require\'\n/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require\'\n/opt/homebrew/Cellar/cocoapods/1.10.0_2/libexec/gems/ffi-1.14.2/lib/ffi.rb:6:in `rescue in <top (required)>\'\n/opt/homebrew/Cellar/cocoapods/1.10.0_2/libexec/gems/ffi-1.14.2/lib/ffi.rb:3:in `<top (required)>\'\n/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require\'\n/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require\'\n/opt/homebrew/Cellar/cocoapods/1.10.0_2/libexec/gems/ethon-0.12.0/lib/ethon.rb:2:in `<top (required)>\'\n/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require\'\n/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require\'\n/opt/homebrew/Cellar/cocoapods/1.10.0_2/libexec/gems/typhoeus-1.4.0/lib/typhoeus.rb:2:in `<top (required)>\'\n/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require\'\n/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require\'\n/opt/homebrew/Cellar/cocoapods/1.10.0_2/libexec/gems/cocoapods-1.10.0/lib/cocoapods/sources_manager.rb:74:in `cdn_url?\'\n/opt/homebrew/Cellar/cocoapods/1.10.0_2/libexec/gems/cocoapods-1.10.0/lib/cocoapods/sources_manager.rb:36:in `create_source_with_url\'\n/opt/homebrew/Cellar/cocoapods/1.10.0_2/libexec/gems/cocoapods-1.10.0/lib/cocoapods/sources_manager.rb:21:in `find_or_create_source_with_url\'\n/opt/homebrew/Cellar/cocoapods/1.10.0_2/libexec/gems/cocoapods-1.10.0/lib/cocoapods/installer/analyzer.rb:178:in `block in sources\'\n/opt/homebrew/Cellar/cocoapods/1.10.0_2/libexec/gems/cocoapods-1.10.0/lib/cocoapods/installer/analyzer.rb:177:in `map\'\n/opt/homebrew/Cellar/cocoapods/1.10.0_2/libexec/gems/cocoapods-1.10.0/lib/cocoapods/installer/analyzer.rb:177:in `sources\'\n/opt/homebrew/Cellar/cocoapods/1.10.0_2/libexec/gems/cocoapods-1.10.0/lib/cocoapods/installer/analyzer.rb:1073:in `block in resolve_dependencies\'\n/opt/homebrew/Cellar/cocoapods/1.10.0_2/libexec/gems/cocoapods-1.10.0/lib/cocoapods/user_interface.rb:64:in `section\'\n/opt/homebrew/Cellar/cocoapods/1.10.0_2/libexec/gems/cocoapods-1.10.0/lib/cocoapods/installer/analyzer.rb:1072:in `resolve_dependencies\'\n/opt/homebrew/Cellar/cocoapods/1.10.0_2/libexec/gems/cocoapods-1.10.0/lib/cocoapods/installer/analyzer.rb:124:in `analyze\'\n/opt/homebrew/Cellar/cocoapods/1.10.0_2/libexec/gems/cocoapods-1.10.0/lib/cocoapods/installer.rb:414:in `analyze\'\n/opt/homebrew/Cellar/cocoapods/1.10.0_2/libexec/gems/cocoapods-1.10.0/lib/cocoapods/installer.rb:239:in `block in resolve_dependencies\'\n/opt/homebrew/Cellar/cocoapods/1.10.0_2/libexec/gems/cocoapods-1.10.0/lib/cocoapods/user_interface.rb:64:in `section\'\n/opt/homebrew/Cellar/cocoapods/1.10.0_2/libexec/gems/cocoapods-1.10.0/lib/cocoapods/installer.rb:238:in `resolve_dependencies\'\n/opt/homebrew/Cellar/cocoapods/1.10.0_2/libexec/gems/cocoapods-1.10.0/lib/cocoapods/installer.rb:160:in `install!\'\n/opt/homebrew/Cellar/cocoapods/1.10.0_2/libexec/gems/cocoapods-1.10.0/lib/cocoapods/command/install.rb:52:in `run\'\n/opt/homebrew/Cellar/cocoapods/1.10.0_2/libexec/gems/claide-1.0.3/lib/claide/command.rb:334:in `run\'\n/opt/homebrew/Cellar/cocoapods/1.10.0_2/libexec/gems/cocoapods-1.10.0/lib/cocoapods/command.rb:52:in `run\'\n/opt/homebrew/Cellar/cocoapods/1.10.0_2/libexec/gems/cocoapods-1.10.0/bin/pod:55:in `<top (required)>\'\n/opt/homebrew/Cellar/cocoapods/1.10.0_2/libexec/bin/pod:23:in `load\'\n/opt/homebrew/Cellar/cocoapods/1.10.0_2/libexec/bin/pod:23:in `<main>\'\nRun Code Online (Sandbox Code Playgroud)\n\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95 模板结束 \xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95 \xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2 \x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80 \x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95 \xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2 \x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80 \x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95 \xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2\x80\x95\xe2 \x80\x95
\n[!]哦不,发生了错误。
\n\n如果不存在,请使用上面显示的模板在以下位置创建一个票证:\n https://github.com/CocoaPods/CocoaPods/issues/new
\n请务必首先阅读贡献指南,了解有关如何正确提交票证的详细信息:\n https://github.com/CocoaPods/CocoaPods/blob/master/CONTRIBUTING.md
\n不要忘记对任何私人数据进行匿名化!
\n寻找 cocoapods/cocoapods 上的相关问题...\n搜索检查失败:nil:NilClass 的未定义方法“map\”
\nnpm 错误!代码 1\nnpm 错误!路径 /Users/user/Desktop/Apps/test\nnpm 错误!命令失败\nnpm 错误!命令 sh -c cap 更新
\nnpm 错误!可以在以下位置找到此运行的完整日志:\nnpm ERR!/Users/user/.npm/_logs/2021-01-04T16_37_26_175Z-debug.log
\n\n
Dim*_*nis 10
ffi gem 似乎还不支持 M1 芯片。
从brew 中卸载cocoapods,然后尝试在rosetta 模式下运行终端。右键单击终端,获取在 Rosetta 中运行的信息。然后输入以下命令从那里安装 ffi gem:
sudo gem install ffi
Run Code Online (Sandbox Code Playgroud)
然后继续安装 cocoapods
sudo gem install cocoapods
Run Code Online (Sandbox Code Playgroud)
最后
pod install
Run Code Online (Sandbox Code Playgroud)
之后,您可以将终端返回到本机,或者您可以复制应用程序并保留一个本机和一个处于 Rosetta 模式。
| 归档时间: |
|
| 查看次数: |
11925 次 |
| 最近记录: |