从离子命令构建iOS失败

时间:2019-06-24 09:08:19

标签: ios cordova ionic-framework

我跑步时遇到此错误

 ionic cordova run ios --device 


 65%] PreflightingApplication
2019-06-24 14:28:21.032 ios-deploy[7890:179934] [ !! ] Error 0xe800007e: The device OS version is too low. AMDeviceSecureInstallApplication(0, device, url, options, install_callback, 0)
ios-deploy: Command failed with exit code 253
[ERROR] An error occurred while running subprocess cordova.

        cordova run ios --device exited with exit code 253.

我的

xcodebuild -showsdks的输出 我

OS SDKs:
    iOS 11.2                        -sdk iphoneos11.2

iOS Simulator SDKs:
    Simulator - iOS 11.2            -sdk iphonesimulator11.2

macOS SDKs:
    macOS 10.13                     -sdk macosx10.13

tvOS SDKs:
    tvOS 11.2                       -sdk appletvos11.2

tvOS Simulator SDKs:
    Simulator - tvOS 11.2           -sdk appletvsimulator11.2

watchOS SDKs:
    watchOS 4.2                     -sdk watchos4.2

watchOS Simulator SDKs:
    Simulator - watchOS 4.2         -sdk watchsimulator4.2

1 个答案:

答案 0 :(得分:0)

您是否尝试覆盖部署目标?尝试添加到您的config.xml

<platform name="ios">
    <preference name="deployment-target" value="11.2" />
</platform>