xcode12 模拟器无法编译

标签:xcode12 模拟器无法编译
标签:Bugly.framework/Bugly(libBugly.a-arm64-master.o), building for iOS Simulator

第一步:
在主项目和pod项目的PROJECT的Build Settings中,搜索Excluded Architecture ,在debug下点击+添加 Any iOS Simulator SDK,value填入 arm64.
主项目和pod中必须同时配置,否则会导致无法索引到pod中的库

第二步:

防止pod update 之后,clear下,pod 中的配置丢失

在podfile中,尾部添加以下代码:

   post_install do |installer|
   installer.pods_project.build_configurations.each do |config|
        config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] ="arm64"
        end
  end
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。