Could not find module 'ImagePicker' for target 'x86_64-apple-ios-simulator'; found: arm64, arm64-apple-ios-simulator
解决方案一
添加 arm64。 搜索 Excluded Architectures ,添加
arm64
解决方案二
在Podfild中,添加佐料。在文件的最下方添加如下内容:
post_install do |installer|
installer.pods_project.build_configurations.each do |config|
config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"
end
installer.generated_projects.each do |project|
project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '13.0'
end
end
end
end
解决方案三
M1电脑Xcode15模拟器使用Rosetta运行解决