我希望我的iOS App的主模块可以编译Swift 4.0,而CocoaPods模块可以编译swift 3。
PS:使用Xcode 9 beta 2。
最终,我开始工作了:我所要做的就是将此脚本放在Podfile的末尾:
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['SWIFT_VERSION'] = '3.2'
end
end
end
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句