关键词:Xcode14, arm64, simulator
报错信息
Could not find module 'xxx' for target 'x86_64-apple-ios-simulator'; found: arm64-apple-ios-simulator, at: /Users/username/Library/Developer/Xcode/DerivedData/...
解决方法
在Podfile
中,end
前增加这一段,在模拟器环境下,不编译arm64。
post_install do |installer|
installer.pods_project.build_configurations.each do |config|
config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"
end
end
PREVIOUS苹果M2安装CocoaPods
NEXT创建GeoJSON文件