【问题标题】:NativeScript cannot launch iOS emulatorNativeScript 无法启动 iOS 模拟器
【发布时间】:2021-07-14 03:18:23
【问题描述】:

模拟器在我运行ns run ios时启动但是,无法部署应用程序并出现以下错误:

Unable to apply changes on device: D2B97EAA-B6DB-4920-8974-4F615FEB4E82. Error is: Command xcrun with arguments simctl install D2B97EAA-B6DB-4920-8974-4F615FEB4E82 /Users/cupidchan/Documents/GitHub/pistevo-health/NativeScript/platforms/ios/build/Debug-iphonesimulator/NativeScript.app failed with exit code 1. Error output:
 An error was encountered processing the command (domain=IXUserPresentableErrorDomain, code=1):
Unable To Install “NativeScript”
Please try again later.
The parent bundle has the same identifier (org.nativescript.NativeScript) as sub-bundle at /Users/cupidchan/Library/Developer/CoreSimulator/Devices/D2B97EAA-B6DB-4920-8974-4F615FEB4E82/data/Library/Caches/com.apple.mobile.installd.staging/temp.ammMqk/extracted/NativeScript.app/Frameworks/NativeScript.framework
Underlying error (domain=MIInstallerErrorDomain, code=57):
        The parent bundle has the same identifier (org.nativescript.NativeScript) as sub-bundle at /Users/cupidchan/Library/Developer/CoreSimulator/Devices/D2B97EAA-B6DB-4920-8974-4F615FEB4E82/data/Library/Caches/com.apple.mobile.installd.staging/temp.ammMqk/extracted/NativeScript.app/Frameworks/NativeScript.framework

环境 NativeScript:8.0.1, Xcode:12.4, iOS 14.4

【问题讨论】:

标签: nativescript angular2-nativescript nativescript-angular nativescript-plugin nativescript-telerik-ui


【解决方案1】:

我发现这是因为 NativeScript 的 appid。当我使用ns create myapp 创建应用程序时,我没有指定--appid 参数。因此 NativeScript 为我创建了一个。但是,您可以在./nativescript.config.ts 中更改此id,然后使用您的应用程序独有的名称命名,它可以正确启动模拟器。

【讨论】:

    猜你喜欢
    • 2017-02-27
    • 2016-07-19
    • 1970-01-01
    • 1970-01-01
    • 2015-11-10
    • 2014-09-17
    • 2014-11-17
    • 1970-01-01
    相关资源
    最近更新 更多