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

相关推荐
00后程序员张3 小时前
接口调试从入门到精通,Fiddler抓包工具、代理配置与HTTPS抓包实战技巧
前端·ios·小程序·https·fiddler·uni-app·webview
游戏开发爱好者818 小时前
iOS IPA 上传工具全面解析,从 Transporter 到开心上架(Appuploader)命令行的高效上架实践
android·ios·小程序·https·uni-app·iphone·webview
ajassi20001 天前
开源 Objective-C IOS 应用开发(十四)传感器--陀螺仪和gps
ios·开源·objective-c
二流小码农1 天前
鸿蒙开发:支持自定义组件的跑马灯
android·ios·harmonyos
2501_915106321 天前
iOS 抓包全流程指南,HTTPS 抓包、TCP 数据流分析与多工具协同的方法论
android·tcp/ip·ios·小程序·https·uni-app·iphone
3***49962 天前
Swift Experience
开发语言·ios·swift
疯笔码良2 天前
【IOS开发】Objective-C 与 Swift 的对比
ios
阿斌_bingyu7092 天前
uniapp实现android/IOS消息推送
android·ios·uni-app
QuantumLeap丶2 天前
《Flutter全栈开发实战指南:从零到高级》- 15 -本地数据存储
flutter·ios·dart