ionic-cli: Can't access app path ../ios/build/device/name.app : No such file or directory
Short description of the problem:
When creating a new project and then running it on an iPad I get a can’t access path error. When following the path, the device folder appears to be missing as though it was never built.
What behavior are you expecting?
The CLI to run the app on my iPad.
Steps to reproduce:
- Create a new blank project. ionic start TEST2 blank
- Build the blank project. ionic build ios
- Run the project. ionic run ios
2016-07-22 10:21:06.364 ios-deploy[3580:121214] [ !! ] Can't access app path '/Users/huntmj/documents/Test2/platforms/ios/build/device/TEST2.app' : No such file or directory
Error: Error code 253 for command: ios-deploy with args: --justlaunch,--no-wifi,-d,-b,/Users/huntmj/documents/Test2/platforms/ios/build/device/TEST2.app
Other information:
When I navigate to ios/build/ their is no device folder:
Which Ionic Version? 2.x
Run ionic info
from terminal/cmd prompt: (paste output below)
Your system information:
Cordova CLI: 6.3.0 Ionic Framework Version: 1.3.1 Ionic CLI Version: 2.0.0-beta.32 Ionic App Lib Version: 2.0.0-beta.18 ios-deploy version: 1.8.6 ios-sim version: 5.0.8 OS: Mac OS X El Capitan Node Version: v4.4.7 Xcode version: Xcode 7.3.1 Build version 7D1014
More detail terminal output
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Reactions: 8
- Comments: 57 (1 by maintainers)
Try it with the --device flag:
Son of a gun that worked. The --device flag added the device folder to the build folder. Thanks!!
I had one final error but all I had to do was run the project in xCode, add a provisioning profile, and ionic run ios --device ran the app on my iPad.
I still can’t run the app on device.
Here is what I get after adding the
--device
flag:like @patrickmcd has mentioned it, just add the --device after cordova/ionic run ios :
cordova run ios --device
and look in your platforms/ios/build/ directory if there’s a /device directory. Cordova should copy all the compiled stuff in it.
That is to say you might want to leave the issue open, because
ionic run ios
should work without the flag.I was seeing the same issue. Adding --device worked. Thanks!
Open your project under xcode, from there click the play button. Your project file will be under plaforms -> ios -> project_name.xcodeproj
Double check that your project has the developer account assigned.
I am getting the same error as @MasterProgrammer200
Also same error when I run with --device. No provisioning profile…
Any workarounds ? Thank you !!
Awesome! well at least you can move forward now 😉
still having this issue as well
ionic run ios --device doesn’t work for me
niether does
un install ios-deploy sudo npm install -g ios-deploy --unsafe-perm=true --allow-root
This issue still exists today:
Steps to reproduce:
ionic start demo blank --v2
ionic run ios
My Ionic info:
Also experiencing this issue, but only after I changed my app name and rm/add ios platform… before this it was working… --device flag helped 😃
10x
@MasterProgrammer200 the comment you mentioned is relative to provisioning profile. You need to create a test provisioning profile (XCode 7) allows you to create a test provisioning profile for development (without paying for Apple account). Let me know if you find it difficult to create provisioning profile.
But, yes, that
--device
flag should have documented or fixed as par @patrickmcd’s comment.