xcode M1模拟器 报错

xcode M1模拟器 报错

运行报错:

1.building for iOS Simulator, but linking in object file built for iOS, for architecture arm64
2.The linked framework ‘Pods.framework’ is missing one or more architectures required by this target: arm64

解决:
1.Build Settings更改:
xcode M1模拟器 报错_第1张图片
2.podfile添加:

 post_install do |installer|
   installer.pods_project.build_configurations.each do |config|
     config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"
   end
 end

3.xcode clean;
4.pod install

pod install报错运行:

sudo arch -x86_64 gem install ffi
gem install ffi --version 1.13.1 --user-install
arch -x86_64 pod install

方法2

你可能感兴趣的:(ios,xcode,ios,objective-c)