x86_64-apple-ios-simulator 错误

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运行解决

相关推荐
布莱克60510 小时前
Swift 类详解:从定义、继承到内存管理的完整指南
服务器·开发语言·ios·ssh·swift·类
布莱克60513 小时前
Swift 方法详解:实例方法、类型方法与 mutating 机制
服务器·开发语言·ios·ssh·swift·方法
茶底世界之下1 天前
旧电影院的红座椅:用 Awaking 留住放映前的光
ios·app·产品
茶底世界之下2 天前
洗衣房的午后斜光:用 Awaking 把光和影分开
ios·app·产品
我是谁的程序员3 天前
iOS 性能分析在 Windows 上怎么做,用 KXBuild 的 kxdevice 替代 Instruments
后端·ios
开心就好20253 天前
通配符 Bundle ID 和精确 Bundle ID 怎么选,推送、iCloud 能不能用通配符
后端·ios
布莱克6053 天前
Swift 枚举详解:从基础语法到关联值与模式匹配
开发语言·ios·swift·枚举
茶底世界之下3 天前
冬日窗边的早餐:用 Awaking 留住冷光里的暖意
ios·app·产品
布莱克6053 天前
Swift 闭包详解:从语法到实战的完整指南
服务器·开发语言·ios·ssh·swift·闭包
茶底世界之下4 天前
雨后的黄电车:用 Awaking 给灰色街景定一个主角
ios·app·产品