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
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容