簡體   English   中英

電容器 iOS 與離子同步失敗

[英]Capacitor iOS sync fail with ionic

我正在嘗試為 iOS 生成一個包,但 pod 向我拋出了這個錯誤。 我 95% 確定這是插件的問題,但我無法解決。

我嘗試重新安裝吊艙,重新創建電容器 ios。 我正在使用新的 m1 在 mac 上進行操作

✔ 在 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-白名單 (1.3.4) 在此處輸入代碼

✔ 在 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 原生依賴,帶有“pod i⠦ 更新 iOS 原生 e 使用“pod i⠧ 更新 iOS 原生依賴關系”使用“pod i⠇ 使用“pod i⠏更新 iOS 原生依賴關系”使用“更新 iOS 原生依賴關系”

✖ 使用“pod install”更新 iOS 本機依賴項(可能需要幾分鍾):

✖ 更新 ios:[錯誤] 分析依賴關系

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

命令

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

報告

  • 你做了什么?

  • 你期望會發生什么?

  • 反而發生了什么?

   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 : 

插件

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

播客文件

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

錯誤

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>'

―――模板結束 ――――――――――――――――――――――――――――――――――――――――――― ――――――――――――――――――――

[,] 不好了。 發生錯誤。

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=問題

如果不存在,請使用上面顯示的模板創建票證,在: https://github.com/CocoaPods/CocoaPods/issues/new

請務必先閱讀貢獻指南,了解如何正確提交工單的詳細信息: https://github.com/CocoaPods/CocoaPods/blob/master/CONTRIBUTING.md

不要忘記匿名任何私人數據!

正在尋找有關 cocoapods/cocoapods 的相關問題... 搜索檢查失敗:未定義方法 `map' for nil:NilClass

npm 錯誤! 代碼 1 npm 錯誤! 路徑 /Users/user/Desktop/Apps/test npm ERR! 命令失敗 npm ERR! 命令 sh -c cap update

npm ERR:此運行的完整日志可在 npm ERR 中找到。 /Users/user/.npm/_logs/2021-01-04T16_37_26_175Z-debug.log

ffi gem 似乎還不支持 M1 芯片。

從 brew 中卸載 cocoapods,然后嘗試在 Rosetta 模式下運行終端。 右鍵單擊終端,獲取在 Rosetta 中運行的信息。 然后通過鍵入以下命令從那里安裝 ffi gem:

sudo gem install ffi

然后 go 提前安裝 cocoapods 與

sudo gem install cocoapods

最后

pod install

之后,您可以將終端返回到本地,或者您可以復制應用程序並保持一個本地和一個在 Rosetta 模式。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM