简体   繁体   English

电容器 iOS 与离子同步失败

[英]Capacitor iOS sync fail with ionic

I'm trying to generate a bundle for iOS but pods throw me this error.我正在尝试为 iOS 生成一个包,但 pod 向我抛出了这个错误。 I'm 95% sure that it's a problem with plugins but I can't solve.我 95% 确定这是插件的问题,但我无法解决。

I tried to reinstall pods, recreate capacitor ios.我尝试重新安装吊舱,重新创建电容器 ios。 I'm doing it on mac, with new m1's我正在使用新的 m1 在 mac 上进行操作

✔ Updating Android plugins in 25.89ms ✔ 在 25.89 毫秒内更新 Android 插件

Found 2 Capacitor plugins for android: @capacitor-community/keep-awake (1.0.0) capacitor-keep-screen-on (1.0.0-alpha.6) Found 6 Cordova plugins for android cc.fovea.cordova.purchase (10.1.1) cordova-plugin-device (2.0.3) cordova-plugin-file (6.0.2) cordova-plugin-file-transfer (1.7.1) cordova-plugin-ionic (5.4.7) cordova-plugin-whitelist (1.3.4) enter code here Found 2 Capacitor plugins for android: @capacitor-community/keep-awake (1.0.0) capacitor-keep-screen-on (1.0.0-alpha.6) Found 6 Cordova plugins for android cc.fovea.cordova.purchase ( 10.1.1)cordova-plugin-device(2.0.3)cordova-plugin-file(6.0.2)cordova-plugin-file-transfer(1.7.1)cordova-plugin-ionic(5.4.7)cordova-plugin-白名单 (1.3.4) 在此处输入代码

✔ update android in 65.89ms ✔ 在 65.89 毫秒内更新 android

✔ Updating iOS plugins in 8.94ms Found 2 Capacitor plugins for ios: @capacitor-community/keep-awake (1.0.0) capacitor-keep-screen-on (1.0.0-alpha.6) Found 5 Cordova plugins for ios cc.fovea.cordova.purchase (10.1.1) cordova-plugin-device (2.0.3) cordova-plugin-file (6.0.2) cordova-plugin-file-transfer (1.7.1) cordova-plugin-ionic (5.4.7) ⠋ Updating iOS native dependencies with "pod i⠙ Updating iOS native dependencies with "pod i⠹ Updating iOS native dependencies with "pod i⠸ Updating iOS native dependencies with "pod i⠼ Updating iOS native dependencies with "pod i⠴ Updating iOS native dependencies with "pod i⠦ Updating iOS nativ ✔ Updating iOS plugins in 8.94ms Found 2 Capacitor plugins for ios: @capacitor-community/keep-awake (1.0.0) capacitor-keep-screen-on (1.0.0-alpha.6) Found 5 Cordova plugins for ios cc .fovea.cordova.purchase (10.1.1) cordova-plugin-device (2.0.3) cordova-plugin-file (6.0.2) cordova-plugin-file-transfer (1.7.1) cordova-plugin-ionic (5.4) .7) ⠋ Updating iOS native dependencies with "pod i⠙ Updating iOS native dependencies with "pod i⠹ Updating iOS native dependencies with "pod i⠸ Updating iOS native dependencies with "pod i⠼ Updating iOS native dependencies with "pod i⠴ Updating iOS 原生依赖,带有“pod i⠦ 更新 iOS 原生e dependencies with "pod i⠧ Updating iOS native dependencies with "pod i⠇ Updating iOS native dependencies with "pod i⠏ Updating iOS native dependencies with "pod i e 使用“pod i⠧ 更新 iOS 原生依赖关系”使用“pod i⠇ 使用“pod i⠏更新 iOS 原生依赖关系”使用“更新 iOS 原生依赖关系”

✖ Updating iOS native dependencies with "pod install" (may take several minutes): ✖ 使用“pod install”更新 iOS 本机依赖项(可能需要几分钟):

✖ update ios: [error] Analyzing dependencies ✖ 更新 ios:[错误] 分析依赖关系

――― MARKDOWN TEMPLATE ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― ―――― MARKDOWN 模板 ―――――――――――――――――――――――――――――――――――――――――――― ――――――――――――――

Command命令

/opt/homebrew/Cellar/cocoapods/1.10.0_2/libexec/bin/pod install

Report报告

  • What did you do?你做了什么?

  • What did you expect to happen?你期望会发生什么?

  • What happened instead?反而发生了什么?

Stack

   CocoaPods : 1.10.0
        Ruby : ruby 2.6.3p62 (2019-04-16 revision 67580) [universal.arm64e-darwin20]
    RubyGems : 3.0.3
        Host : macOS 11.0.1 (20B29)
       Xcode : 12.3 (12C33)
         Git : git version 2.24.3 (Apple Git-128)
Ruby lib dir : /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib
Repositories : 

Plugins插件

cocoapods-deintegrate : 1.0.4
cocoapods-plugins     : 1.0.0
cocoapods-search      : 1.0.0
cocoapods-trunk       : 1.5.0
cocoapods-try         : 1.2.0

Podfile播客文件

platform :ios, '11.0'
use_frameworks!

# workaround to avoid Xcode caching of Pods that requires
# Product -> Clean Build Folder after new Cordova plugins installed
# Requires CocoaPods 1.6 or newer
install! 'cocoapods', :disable_input_output_paths => true

def capacitor_pods
  # Automatic Capacitor Pod dependencies, do not delete
  pod 'Capacitor', :path => '../../node_modules/@capacitor/ios'
  pod 'CapacitorCordova', :path => '../../node_modules/@capacitor/ios'
  pod 'CapacitorCommunityKeepAwake', :path => '../../node_modules/@capacitor-community/keep-awake'
  pod 'CapacitorKeepScreenOn', :path => '../../node_modules/capacitor-keep-screen-on'
  pod 'CordovaPlugins', :path => '../capacitor-cordova-ios-plugins'
  # Do not delete
end

target 'App' do
  capacitor_pods
  # Add your Pods here
end

Error错误

LoadError - 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
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
/opt/homebrew/Cellar/cocoapods/1.10.0_2/libexec/gems/ffi-1.14.2/lib/ffi.rb:6:in `rescue in <top (required)>'
/opt/homebrew/Cellar/cocoapods/1.10.0_2/libexec/gems/ffi-1.14.2/lib/ffi.rb:3:in `<top (required)>'
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
/opt/homebrew/Cellar/cocoapods/1.10.0_2/libexec/gems/ethon-0.12.0/lib/ethon.rb:2:in `<top (required)>'
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
/opt/homebrew/Cellar/cocoapods/1.10.0_2/libexec/gems/typhoeus-1.4.0/lib/typhoeus.rb:2:in `<top (required)>'
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
/opt/homebrew/Cellar/cocoapods/1.10.0_2/libexec/gems/cocoapods-1.10.0/lib/cocoapods/sources_manager.rb:74:in `cdn_url?'
/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'
/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'
/opt/homebrew/Cellar/cocoapods/1.10.0_2/libexec/gems/cocoapods-1.10.0/lib/cocoapods/installer/analyzer.rb:178:in `block in sources'
/opt/homebrew/Cellar/cocoapods/1.10.0_2/libexec/gems/cocoapods-1.10.0/lib/cocoapods/installer/analyzer.rb:177:in `map'
/opt/homebrew/Cellar/cocoapods/1.10.0_2/libexec/gems/cocoapods-1.10.0/lib/cocoapods/installer/analyzer.rb:177:in `sources'
/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'
/opt/homebrew/Cellar/cocoapods/1.10.0_2/libexec/gems/cocoapods-1.10.0/lib/cocoapods/user_interface.rb:64:in `section'
/opt/homebrew/Cellar/cocoapods/1.10.0_2/libexec/gems/cocoapods-1.10.0/lib/cocoapods/installer/analyzer.rb:1072:in `resolve_dependencies'
/opt/homebrew/Cellar/cocoapods/1.10.0_2/libexec/gems/cocoapods-1.10.0/lib/cocoapods/installer/analyzer.rb:124:in `analyze'
/opt/homebrew/Cellar/cocoapods/1.10.0_2/libexec/gems/cocoapods-1.10.0/lib/cocoapods/installer.rb:414:in `analyze'
/opt/homebrew/Cellar/cocoapods/1.10.0_2/libexec/gems/cocoapods-1.10.0/lib/cocoapods/installer.rb:239:in `block in resolve_dependencies'
/opt/homebrew/Cellar/cocoapods/1.10.0_2/libexec/gems/cocoapods-1.10.0/lib/cocoapods/user_interface.rb:64:in `section'
/opt/homebrew/Cellar/cocoapods/1.10.0_2/libexec/gems/cocoapods-1.10.0/lib/cocoapods/installer.rb:238:in `resolve_dependencies'
/opt/homebrew/Cellar/cocoapods/1.10.0_2/libexec/gems/cocoapods-1.10.0/lib/cocoapods/installer.rb:160:in `install!'
/opt/homebrew/Cellar/cocoapods/1.10.0_2/libexec/gems/cocoapods-1.10.0/lib/cocoapods/command/install.rb:52:in `run'
/opt/homebrew/Cellar/cocoapods/1.10.0_2/libexec/gems/claide-1.0.3/lib/claide/command.rb:334:in `run'
/opt/homebrew/Cellar/cocoapods/1.10.0_2/libexec/gems/cocoapods-1.10.0/lib/cocoapods/command.rb:52:in `run'
/opt/homebrew/Cellar/cocoapods/1.10.0_2/libexec/gems/cocoapods-1.10.0/bin/pod:55:in `<top (required)>'
/opt/homebrew/Cellar/cocoapods/1.10.0_2/libexec/bin/pod:23:in `load'
/opt/homebrew/Cellar/cocoapods/1.10.0_2/libexec/bin/pod:23:in `<main>'

――― TEMPLATE END ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― ―――模板结束 ――――――――――――――――――――――――――――――――――――――――――― ――――――――――――――――――――

[,] Oh no. [,] 不好了。 an error occurred.发生错误。

Search for existing GitHub issues similar to yours: https://github.com/CocoaPods/CocoaPods/search?q=dlopen%28%2Fopt%2Fhomebrew%2FCellar%2Fcocoapods%2F1.10.0_2%2Flibexec%2Fgems%2Fffi-1.14.2%2Flib%2Fffi_c.bundle%2C+0x0009%29%3A+missing+compatible+arch+in+%2Fopt%2Fhomebrew%2FCellar%2Fcocoapods%2F1.10.0_2%2Flibexec%2Fgems%2Fffi-1.14.2%2Flib%2Fffi_c.bundle+-+%2Fopt%2Fhomebrew%2FCellar%2Fcocoapods%2F1.10.0_2%2Flibexec%2Fgems%2Fffi-1.14.2%2Flib%2Fffi_c.bundle&type=Issues Search for existing GitHub issues similar to yours: https://github.com/CocoaPods/CocoaPods/search?q=dlopen%28%2Fopt%2Fhomebrew%2FCellar%2Fcocoapods%2F1.10.0_2%2Flibexec%2Fgems%2Fffi-1.14. 2%2Flib%2Fffi_c.bundle%2C+0x0009%29%3A+缺失+兼容+arch+in+%2Fopt%2Fhomebrew%2FCellar%2Fcocoapods%2F1.10.0_2%2Flibexec%2Fgems%2Fffi-1.14.2%2Flib%2Fffi_c .bundle+-+%2Fopt%2Fhomebrew%2FCellar%2Fcocoapods%2F1.10.0_2%2Flibexec%2Fgems%2Fffi-1.14.2%2Flib%2Fffi_c.bundle&type=问题

If none exists, create a ticket, with the template displayed above, on: https://github.com/CocoaPods/CocoaPods/issues/new如果不存在,请使用上面显示的模板创建票证,在: 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请务必先阅读贡献指南,了解如何正确提交工单的详细信息: 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/cocoapods 的相关问题... 搜索检查失败:未定义方法 `map' for nil:NilClass

npm ERR! npm 错误! code 1 npm ERR!代码 1 npm 错误! path /Users/user/Desktop/Apps/test npm ERR!路径 /Users/user/Desktop/Apps/test npm ERR! command failed npm ERR!命令失败 npm ERR! command sh -c cap update命令 sh -c cap update

npm ERR: A complete log of this run can be found in. npm ERR. npm ERR:此运行的完整日志可在 npm ERR 中找到。 /Users/user/.npm/_logs/2021-01-04T16_37_26_175Z-debug.log /Users/user/.npm/_logs/2021-01-04T16_37_26_175Z-debug.log

The ffi gem doesnt seem to support the M1 chip yet. ffi gem 似乎还不支持 M1 芯片。

Uninstall cocoapods from brew and then try running the terminal in rosetta mode.从 brew 中卸载 cocoapods,然后尝试在 Rosetta 模式下运行终端。 Right click terminal, get info run in rosetta.右键单击终端,获取在 Rosetta 中运行的信息。 Then install the ffi gem from there by typing:然后通过键入以下命令从那里安装 ffi gem:

sudo gem install ffi

then go ahead and install cocoapods with然后 go 提前安装 cocoapods 与

sudo gem install cocoapods

and finally最后

pod install

After that you can return your terminal to native, or you can duplicate the application and keep one native and one in rosetta mode.之后,您可以将终端返回到本地,或者您可以复制应用程序并保持一个本地和一个在 Rosetta 模式。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM