添加ios时离子电容器出错:找不到符号-/Library/Ruby/Gems/2.6.0/Gems/bigdecimal



我是ios新手。(我使用的是带有M1芯片的macmini(。

我在windows上构建了一个离子项目(带电容器(,并创建了android应用程序,没有任何错误。

但当我切换到mac并运行命令npx cap add ios时,我会出现错误symbol not found - /Library/Ruby/Gems/2.6.0/gems/bigdecimal-3.0.0/lib/bigdecimal.bundle

以下是运行命令npx cap add ios:的结果

% npx cap add ios
ℹ Installing iOS dependencies – Skipping: already installed
✔ Adding native xcode project in: /Users/username/Documents/AppName/ios in 15.44ms
✔ add in 16.67ms
✔ Copying web assets from www to ios/App/public in 248.71ms
✔ Copying native bridge in 3.05ms
✔ Copying capacitor.config.json in 2.60ms
✔ copy in 262.60ms
✔ Updating iOS plugins in 3.08ms
Found 0 Capacitor plugins for ios:
✖ Updating iOS native dependencies with "pod install" (may take several minutes): 
✖ update ios: 
[error] /Library/Ruby/Site/2.6.0/rubygems/core_ext/kernel_require.rb:85:in `require': dlsym(0x7fd7c441b9b0, Init_bigdecimal): symbol not found - /Library/Ruby/Gems/2.6.0/gems/bigdecimal-3.0.0/lib/bigdecimal.bundle (LoadError)
from /Library/Ruby/Site/2.6.0/rubygems/core_ext/kernel_require.rb:85:in `require'
from /Library/Ruby/Gems/2.6.0/gems/bigdecimal-3.0.0/lib/bigdecimal.rb:1:in `<top (required)>'
from /Library/Ruby/Site/2.6.0/rubygems/core_ext/kernel_require.rb:85:in `require'
from /Library/Ruby/Site/2.6.0/rubygems/core_ext/kernel_require.rb:85:in `require'
from /Library/Ruby/Gems/2.6.0/gems/activesupport-5.2.4.5/lib/active_support/xml_mini.rb:5:in `<top (required)>'
from /Library/Ruby/Site/2.6.0/rubygems/core_ext/kernel_require.rb:85:in `require'
from /Library/Ruby/Site/2.6.0/rubygems/core_ext/kernel_require.rb:85:in `require'
from /Library/Ruby/Gems/2.6.0/gems/activesupport-5.2.4.5/lib/active_support/core_ext/array/conversions.rb:3:in `<top (required)>'
from /Library/Ruby/Site/2.6.0/rubygems/core_ext/kernel_require.rb:85:in `require'
from /Library/Ruby/Site/2.6.0/rubygems/core_ext/kernel_require.rb:85:in `require'
from /Users/anastamimi/.gem/ruby/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods.rb:9:in `<top (required)>'
from /Library/Ruby/Site/2.6.0/rubygems/core_ext/kernel_require.rb:85:in `require'
from /Library/Ruby/Site/2.6.0/rubygems/core_ext/kernel_require.rb:85:in `require'
from /Users/anastamimi/.gem/ruby/2.6.0/gems/cocoapods-1.10.1/bin/pod:36:in `<top (required)>'
from /usr/local/bin/pod:23:in `load'
from /usr/local/bin/pod:23:in `<main>'

以下链接帮助我解决了类似的问题(LoadError-dlsym(0x7fe291e235f0,Init_fi_c(:找不到symbol-/Library/Ruby/Gems/2.6.0/Gems/ffin-1.13.1/lib/ffi_c.bundle(:

请参阅中底部的解决方案https://github.com/ionic-team/capacitor/issues/3897

右键单击Finder中的终端显示简介使用罗塞塔打开

sudo gem安装ffi(在我的案例中,ffi是缺失的组件(

相关内容

  • 没有找到相关文章

最新更新