gpt4 book ai didi

ios - Xcode 12 : Compiling for iOS 10. 0,但模块 'RxSwift' 的最低部署目标为 iOS 12.0

转载 作者:行者123 更新时间:2023-12-03 18:18:50 31 4
gpt4 key购买 nike

我刚刚将 Xcode 更新到最新版本,项目不再编译。我删除了所有内容并尝试重建 pod,但最终在这个问题上遇到了同样的问题:

[x]/Users/alouanemed/Projects/App-iOS/Pods/_Prebuild/Moya/Sources/RxMoya/MoyaProvider+Rx.swift:2:8:compiling for iOS 10.0, but module 'RxSwift' has a minimum deploymenttarget of iOS 12.0:/Users/alouanemed/Projects/App-iOS/Pods/build/Release-iphoneos/RxSwift/RxSwift.framework/Modules/RxSwift.swiftmodule/arm64-apple-ios.swiftmodule

import RxSwift^

最佳答案

使用 cocoapods 和 Xcode 12,您当前需要在所谓的“安装后 Hook ”中设置 Pod 的部署目标。
尝试将其添加到 Podfile 的末尾:


deployment_target = '12.0'

post_install do |installer|
installer.generated_projects.each do |project|
project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = deployment_target
end
end
project.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = deployment_target
end
end
end

关于ios - Xcode 12 : Compiling for iOS 10. 0,但模块 'RxSwift' 的最低部署目标为 iOS 12.0,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63967156/

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com