I am using a recently installed nativescript3. I am trying to run a simple app on the simulator (or anywhere I can view it). I have been running $ tns run ios. This has sometimes opened the app successfully in a simulator before, but now its not working.
Without changes in the code, it is now stalling. What can I do?
Here is the relevant output in the terminal:
Project successfully built.
Installing...
Successfully installed on device with identifier '[XXXXX-XXXX...]'.
Unable to apply changes on device: '[XXXXX-XXXX...]'. Error is: cp: dest is not a directory (too many sources).
Executing after-watch hook from /Users/.../expNSApp/hooks/after-watch/nativescript-dev-typescript.js
And it stalls there. No further action, and if I click on the app in the simulator it says "Unable to Install "[APP]". Please try again later."
Any suggestions?
In my case, it looks like the problem was some code in App_Resources/ios/info.plist. I had made some changes in there, and when I return it to its original state, the app is able to load. So I expect that the stalling issue happened because there is some fundamental code, somewhere, that is off--meaning the error arose more from the code base than from the CLI. There were no error messages pointing to that file.
I still have the issue that when I first start the app, I get an error: "Unable to find applicable devices to execute operation. Ensure connected devices are trusted and try again". The error goes away when I run $ tns run ios again, but that doesn't seem like an ideal solution.