標(biāo)簽:xcode12 模擬器無法編譯
標(biāo)簽:Bugly.framework/Bugly(libBugly.a-arm64-master.o), building for iOS Simulator
第一步:
在主項(xiàng)目和pod項(xiàng)目的PROJECT的Build Settings中豁生,搜索Excluded Architecture ,在debug下點(diǎn)擊+添加 Any iOS Simulator SDK供嚎,value填入 arm64.
主項(xiàng)目和pod中必須同時(shí)配置,否則會(huì)導(dǎo)致無法索引到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