【发布时间】:2019-08-18 06:47:49
【问题描述】:
升级到 xcode 10.2 后,我的 ionic for ios 项目停止使用以下命令构建
ionic cordova build ios -- --buildFlag="-UseModernBuildSystem=0"
我尝试升级 cordova-ios@5.0.0 并删除并读取 ios 平台但没有运气。
The “Swift Language Version” (SWIFT_VERSION) build setting must be set to a supported value for targets which use Swift. Supported values are: 4.0, 4.2, 5.0. This setting can be set in the build settings editor.
Code Signing Error: Code signing is required for product type 'Application' in SDK 'iOS 12.2'
** ARCHIVE FAILED **
The following build commands failed:
Check dependencies
(1 failure)
xcodebuild: Command failed with exit code 65
[ERROR] An error occurred while running subprocess cordova.
cordova build ios --buildFlag=-UseModernBuildSystem=0 exited with exit code 65.
Re-running this command with the --verbose flag may provide more information.
【问题讨论】:
-
所以我尝试使用 Xcode 10.1 将项目从 Swift 3 转换为 Swift 4.2。但是,一些插件坏了。然后我试图修复,但结果是一团糟。所以我现在只是最终使用 Xcode 10.1 进行开发。你可以下载Xcode 10.1
https://developer.apple.com/download/more/ -
Xcode 10.1 无法在装有 iOS 12.2 的 iPhone 上运行应用程序。所以这是一个大问题,现在我们只能在模拟器上运行应用程序。如果有合适的解决方案就好了。
-
@BaoPham 是的 - 但在我的情况下,当用户在他们的 iPad 上升级到 iOS 12.2 时,应用程序仍然无法运行。
-
@P.Brian.Mackey 我认为 ionic 团队已经更新了他们的 Swift 代码。再次检查。
-
@P.Brian.Mackey 你试过安装这个吗?
https://www.npmjs.com/package/cordova-plugin-add-swift-support并将<preference name="UseSwiftLanguageVersion" value="5" />添加到config.js?
标签: ios ionic-framework ionic4