nativescript-cli: Solution : Unable to apply changes on device .. Unable to get application path on device..
@saxdevweb commented on Sun Nov 04 2018
I have the same problem I solved it as I explain in the picture.
Describe the solution you’d like
4- Once you have crushed the state of emulation.
5- Exit and close the emulator.
6- Restart the command: $ tns run ios
Normally the phone will completely reset itself to reinstall the application.
Describe alternatives you’ve considered i’ havent alternative
About this issue
- Original URL
- State: open
- Created 6 years ago
- Reactions: 4
- Comments: 25 (4 by maintainers)
I was getting the same error, and the solution was very simple, there was missing Application folder in the data folder. So just created an Applications folder in the data folder and then
run tns run ios
It worked 👍Basically, I want to say, we are getting the error because there no Application folder at that location. So, just create that folder that’s all.
mkdir -p Users/username/Library/Developer/CoreSimulator/Devices/XXXXXXXXXX/data/Applications
Remove node_modules, hooks and platforms folder using this command rm -rf node_modules/ hooks/ platforms/ . Then yarn install/npm install and run the application. It will fix the issue.
This solution worked for me. I am using the same environment as you.
Basically @suraj-bharti is saying is when you get the error copy up to data dir and manually create the Applications folder e.g.
cd /Users/username/Library/Developer/CoreSimulator/Devices/XXXXXXXXXX/data; mkdir Applications;
and rerun. No idea if permissions for this are missing or what the deal is.
@Fatme Thank you for replying. I installed it today, worked for the first couple of builds, then it broke again and I got the same error as before. It works fine when I do not --bundle the app.