一直報(bào)錯(cuò)Could not find module 'xxxxxxx' for target 'arm64-apple-ios-simulator'; found: x86_64-apple-ios-simulator, x86_64
根據(jù)查找的資料所說(shuō) 要進(jìn)行下面概念重復(fù):
1.Architectures選項(xiàng)费封,設(shè)置他的值為Standard architectures - $(ARCHS_STANDARD)
2.xcode里面的Build Active Architectures Only選項(xiàng),debug為Yes功炮,release為No
3.xcode里面的Excluded Architectures選項(xiàng),保留為空(網(wǎng)上不斷在這里加arm64的,其實(shí)不用)
4.xcode里面的VALID_ARCHS選項(xiàng),設(shè)置他的值為arm64 arm64e x86_64
前三點(diǎn)是默認(rèn)設(shè)置的,但第四點(diǎn)已經(jīng)是廢除掉
目前我的解決方式 是因?yàn)閏ocoapod 版本的代碼庫(kù)做處理
post_install do |installer|
installer.pods_project.build_configurations.each do |config|
config.build_settings['VALID_ARCHS'] = 'arm64, arm64e, x86_64'
end
end