小编Khu*_*ikh的帖子

Cocoapod错误,尝试在M1上安装所有可能的方式

我收到这个错误

\n
Downloading template\n\xe2\x9c\x94 Copying template\n\xe2\x9c\x94 Processing template\n\xe2\x9c\x96 Installing CocoaPods dependencies (this may take a few minutes)\n\xe2\x9c\x96 Installing CocoaPods dependencies (this may take a few minutes)\nerror Error: Failed to install CocoaPods dependencies for iOS project, which is required by this template.\nPlease try again manually: "cd ./test/ios && pod install".\nCocoaPods documentation: https://cocoapods.org/\n
Run Code Online (Sandbox Code Playgroud)\n

当尝试手动安装时出现此错误,

\n
oadError - dlopen(/Library/Ruby/Gems/2.6.0/gems/ffi-1.15.4/lib/ffi_c.bundle, 9): no suitable image found.  Did find:\n    /Library/Ruby/Gems/2.6.0/gems/ffi-1.15.4/lib/ffi_c.bundle: mach-o, but wrong architecture\n    /Library/Ruby/Gems/2.6.0/gems/ffi-1.15.4/lib/ffi_c.bundle: mach-o, but wrong architecture - /Library/Ruby/Gems/2.6.0/gems/ffi-1.15.4/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/Library/Ruby/Gems/2.6.0/gems/ffi-1.15.4/lib/ffi.rb:5:in `rescue in …
Run Code Online (Sandbox Code Playgroud)

cocoapods react-native-ios apple-m1

9
推荐指数
1
解决办法
7612
查看次数

标签 统计

apple-m1 ×1

cocoapods ×1

react-native-ios ×1