NPM IOS模拟器无法获取应用程序路径

时间:2018-03-19 09:13:46

标签: angular nativescript

我正忙于一个angular / nativescript项目,但我无法在iOS模拟器上运行应用程序。构建本身是成功的,但部署失败。

Unable to apply changes on device: B1F01CA0-AEC5-452A-9D85-957B8BC398E3. Error is: Unable to get application path on device..

每当我想将构建发送到模拟器时,就会出现上述错误。

我无法找到此错误的任何相关错误。 堆栈跟踪如下(我遗漏了一些不需要的路径部分)

=== BUILD TARGET nativescript OF PROJECT nativescript WITH CONFIGURATION Debug ===
while processing while processing /nativescript/platforms/ios/internal/TKLiveSync/TKLiveSync(TKLiveSync.o):
/nativescript/platforms/ios/internal/TKLiveSync/TKLiveSync(TKLiveSync.o):
warning: /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache/28BJBFDGVGZZ3/UIKit-1V5UHAPTOD24G.pcm: No such file or directory
warning: /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache/2DKXPQ92SAISO/UIKit-1V5UHAPTOD24G.pcm: No such file or directory
note: Linking a static library that was built with -gmodules, but the module cache was not found.  Redistributable static libraries should never be built with module debugging enabled.  The debug experience will be degraded due to incomplete debug information.
note: Linking a static library that was built with -gmodules, but the module cache was not found.  Redistributable static libraries should never be built with module debugging enabled.  The debug experience will be degraded due to incomplete debug information.
while processing /nativescript/platforms/ios/internal/TKLiveSync/TKLiveSync(TKLiveSync.o):
warning: /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache/28BJBFDGVGZZ3/Darwin-38I6DLZ5IH61J.pcm: No such file or directory
while processing /nativescript/platforms/ios/internal/TKLiveSync/TKLiveSync(TKLiveSync.o):
warning: while processing /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache/2DKXPQ92SAISO/Darwin-38I6DLZ5IH61J.pcm /nativescript/platforms/ios/internal/TKLiveSync/TKLiveSync(TKLiveSync.o): :
No such file or directorywarning:
/Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache/28BJBFDGVGZZ3/Foundation-3DFYNEBRQSXST.pcm: No such file or directory
while processing /nativescript/platforms/ios/internal/TKLiveSync/TKLiveSync(TKLiveSync.o)while processing /nativescript/platforms/ios/internal/TKLiveSync/TKLiveSync(TKLiveSync.o):
:
warning: /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache/2DKXPQ92SAISO/Foundation-3DFYNEBRQSXST.pcm: No such file or directorywarning:
/Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache/28BJBFDGVGZZ3/Dispatch-2LX9MWM6UEPQW.pcm: No such file or directory
while processing /nativescript/platforms/ios/internal/TKLiveSync/TKLiveSync(TKLiveSync.o):
warning: while processing /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache/2DKXPQ92SAISO/Dispatch-2LX9MWM6UEPQW.pcm /nativescript/platforms/ios/internal/TKLiveSync/TKLiveSync(TKLiveSync.o): :
No such file or directorywarning:
/Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache/28BJBFDGVGZZ3/ObjectiveC-1RQA2RIXJIE19.pcm: No such file or directory
while processing /nativescript/platforms/ios/internal/TKLiveSync/TKLiveSync(TKLiveSync.o):
warning: /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache/2DKXPQ92SAISO/ObjectiveC-1RQA2RIXJIE19.pcm: No such file or directory
Project successfully built.

我需要查看哪些设置/配置?我不能发现变量与我第一次设置它并使其工作时有任何不同。

2 个答案:

答案 0 :(得分:3)

我解决了问题,解决方案最有可能如下:

启动模拟器 - >在状态栏中转到硬件 - > “删除所有内容和设置...” - >按下仿真器外观上的电源按钮以重新启动

答案 1 :(得分:-1)

我遇到了与图片中解释的问题相同的问题。

我不确定它是否适用于所有iOS版本。在我的应用中,我的iOS是V5.0.0(iPhone 5),而我的NativeScript是版本5v。

在图片中显示前三个步骤:

enter image description here

  1. 一旦您粉碎了仿真状态。
  2. 退出并关闭模拟器。
  3. 重新启动命令:$ tns运行ios

通常情况下,手机会完全重置自身,以重新安装应用程序。