我的项目在 Xcode 14.2 中完美运行,但相同的代码未在 Xcode 15.3 中运行。但为了让它运行,我根据错误建议尝试了 Xcode 15.3 中的以下更改。
最初我删除了所有 pod,然后再次添加并安装 pod,但随后出现了很多无法修复的错误——这在第二个过程中不起作用
我制作了所有豆荚和目标
1)
Minimum Deployments: increased from 8.0 to 12.0
2)
Buildsettings > Excluded Architectures > Debug > iOSSimulatorSDK > arm64
现在我遇到错误:请指导我在 xcode 15.3 中运行我的代码
/Users/test/Desktop/app-ios/folder/MVC/Modal/ComposeMsgModal/MatchmultifacesModal.swift:10:8 没有这样的模块“ObjectMapper”
我在 pod 文件中完成了这个
# Enable DEBUG flag in Swift for SwiftTweaks
post_install do |installer|
installer.pods_project.targets.each do |target|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '12.0'
if target.name == 'EZSwiftExtensions'
target.build_configurations.each do |config|
config.build_settings['SWIFT_VERSION'] = '4.0'
end
end
if target.name == 'AlamofireImage' || target.name == 'NVActivityIndicatorView' || target.name == 'SwiftMessages' || target.name == 'Charts'
target.build_configurations.each do |config|
config.build_settings['SWIFT_VERSION'] = '4.1'
end
end
end
end
end
我有以下豆荚
当我在更改 xcode 版本时遇到问题并且看不到 pod 时,我会这样做:
此外,如果您使用不同的模块为所有模块提供不同的导入,则导入此模块的目标可能不会与 ObjectMapper 交互。如果有更多信息并且 pod 命令不起作用,请告诉我;)