Xcode 13 Could not find module ‘xxxxxxx‘ for target ‘arm64-apple-ios-simulator‘;...

Xcode 13 编译一直报错:Could not find module 'xxxxxxx' for target 'arm64-apple-ios-simulator'; found: x86_64-apple-ios-simulator, x86_64

根据查找的资料所说 要进行下面概念重复:

1.Architectures选项,设置他的值为Standard architectures - $(ARCHS_STANDARD)

2.xcode里面的Build Active Architectures Only选项,debug为Yes,release为No

3.xcode里面的Excluded Architectures选项,保留为空(网上不断在这里加arm64的,其实不用)

4.xcode里面的VALID_ARCHS选项,设置他的值为arm64 arm64e x86_64

前三点是默认设置的,但第四点已经是废除掉:

目前我的解决方式 是因为cocoapod 版本的代码库做处理

post_install do |installer|
   installer.pods_project.build_configurations.each do |config|
     config.build_settings['VALID_ARCHS'] = 'arm64, arm64e, x86_64'
   end
 end


转载于:https://www.jianshu.com/p/8c0ca6011378

猜你喜欢

转载自blog.csdn.net/weixin_42602900/article/details/126162256