-
-
Notifications
You must be signed in to change notification settings - Fork 196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CLI( tns ) Only can deploy first time to Real IPhone device, please help :( #1398
Comments
Hi @wisonye, Can you try to restart your device and run the command again? |
@Fatme I found a tips, after restart my MacOSX, then plugin the IPhone, and the default "Photos" app will open( automatic ), IF I DON'T CLOSE Photos app, "tns run ios" works for more times, if I close it, just fail, I just found this, not sure it's the real reason, still confusing on this :) |
It's a really strange. Can you check if |
I have a similar problem. Where I get the same error message:
After unplugging the phone Edit |
It's curious, but I got rid of the error by stopping a ton of apps (mostly games) my son started while I was away. Got to the springboard-only state and it started installing everything smoothly. |
I frequently get this issue: Successfully deployed on device 204ea16234def71a7e7813d9e7490e54b0037b73 Nothing mentioned here works a 100% of the time. |
Same problem with iPad4,1. No solution mentioned works. I start my ios app my xcode. |
@rleclair65 Yep, you're right, when "tns" sometime happy, sometime is not happy, the finally helper is XCode, 100% can install and run on IOS Device :) And XCode also fixed the "Black launch screen" issue as well :) |
I found that in my terminal if I list the processes and kill the forked server process it helps. For example run: PID TTY TIME CMD Then kill fork-server like this: |
@aylesm How |
Has there been any further updates on this? |
Hey @spstratis what is your CLI version? |
Someone care to explain why this is closed and no permanent solution provided? I have this issue on CLI 2.0.1 |
It's a verry odd issue. I had an ipad in the other room that had sync over wifi enabled. So it appeared in the device list all the time, even after I disabled the sync. |
@manijak we had several issues when deploy/run/debug on real device when --device option is specified. Those issues should be resolved in 2.1.0 (it will be available at the end of this month). If you still experience some issues with 2.1.0, please reopen or report new issue. |
I just got this error with |
Got this error on 2.3.0 (released today 15 sep 2016) executed command: tns deploy ios --device 1 here is the log trace: https://gist.github.com/avatsaev/fdb34ca396a47de2ff65e8bfcb6ca4a5 |
Had the same problem with 2.3.0 too. Seems it is not yet solved. |
I can confirm the problem still exists (for a long time now ;-( ). But this is far from a solution, one can't reboot the phone for every deploy!
I'm currently in the process from changing from Ionic to NativeScript, but this issue definitively stops me being productive. And knowing that this issue exists since nearly a year makes me scared. If there is anything i could help with, let me (us) know. |
Closing Itunes worked once. It hasn't really worked since. I use ipa-deploy on the side but even that is a a little inconvenient. Is there a way to force disconnect devices in the command line? |
Closing iTunes makes no difference. I have to reboot the iPhone everytime i would like to run or deploy the app again. That makes the development cycle terrible. Is there no help in sight? Do we know if the NativeScript people at least work on this issue? |
Wait, try ejecting you iPhone from iTunes and closing the app on the device On Wed, 28 Sep 2016 at 12:38 PM andreasotto notifications@github.com
|
I just created a completely new app with the create command. That app is not running on the phone and doesn't need to be stopped. I disconnect the phone from iTunes and closed iTunes. Because i already had run another app before, i run into the error again:
It's everytime the same. The only solution is to completely switch off the phone (reboot), what isn't a "solution" at all. I don't know how to to keep on developing. In bought an android phone to go on with developing, but thats not a solution, too - because now i'm in debugging iOS and i'm rebooting the phone like 20 times a day. |
Hi All, In {N} 3.0.0 we changed communication with iOS devices and I can not reproduce the issue. Can you please try {N} 3.0.0 RC and let us know if you still experience the issue.
|
@davek1979 @odubuc @demetrio812 @Roar1827 {N} 3.0.0 is now live, so you can test directly with official version. |
I've just updated to {N} 3.0.0 and am still seeing this issue.
|
Hey, @vultix , |
@pkoleva I too am having this issue and it is becoming a real pain to deal with. I ran the command you mentioned to @vultix. Here is my log output. Sometimes I can fix it by unplugging and restarting my phone then running
|
@pkoleva Sorry for taking so long to respond. Coming back the next day to try to reproduce the error I have been unable to. I will let you know if it resurfaces. When it happens it is very difficult to manage. |
Hey, @tylerdoll, Thank you for the detailed report, but just to make sure we are on the same page - you use nativescript 3.0.0 (3.0.1 is the latest if you haven't tried it you can give it a go) and your steps to reproduce are:
It will be very helpful if you can send us this app's package.json and also if you verify that the same app can be deployed to the device from XCode (in app/platforms/ios there is a xcodeproj file you can use to do so) Thanks! |
@tylerdoll, I've consulted with our developers and searched the closed issues and it seems like the problem you are facing is actually with iTunes. The solution is to disable Wi-fi Sync in iTunes for this device, judging from the error code it seems to not support it. Another way to try this is to stop the Wi-fi on this device and try again. |
I can confirm that I also encounter this problem with {N} 3.0.1 and XCode 8.3.2. The problem started after LiveSync caused the app to encounter an error on launch. After that error, any attempt to re-run the app has failed. The target iPad does not have WiFi sync in iTunes enabled, and I also disabled Wifi on the device. To resolve, I had to unplug and then reconnect the USB connection to the iPad. After doing that, I was able to redeploy and run the app. I'll attempt to create an smaller demo project that can recreate this error condition. Hopefully we can find a way to further minimize this edge case error... |
After reboot device, 'Error is: InstallationLookupFailed.' |
Error is: Could not start service com.apple.mobile.installation_proxy. Now suddenly it works. |
I've also been encountering this problem on nativescript v3.2.1 (Xcode 9):
|
I've also been encountering this problem since the beginning of December while deploying to simulator and deploying through XCode9.2 works. Error message on
My environment:
|
My problem solved. It seems "Enterprise Distribution" is a cause of this issue. Enterprise app needed to be "trusted" from control panel before use. However, What I did to fix (just for anyone who is facing same kind of issue):
|
I had this problem with the simulator. I solved this by checking out my initial commit, running |
Current behaviour: Sometimes devices connected by wifi are reported as found. This leads to some unpredictable behaviour when livesync is executed. New behaviour: Only devices connected by usb are reported as found. NativeScript/nativescript-cli#1398
Current behaviour: Sometimes devices connected by wifi are reported as found. This leads to some unpredictable behaviour when livesync is executed. New behaviour: Only devices connected by usb are reported as found. NativeScript/nativescript-cli#1398
Wifi devices not longer detected by tns. |
I've skimmed through the above comments and didn't see my solution but sorry if it's a repeat. I found this problem was caused by a non original iPhone cable. As soon as I switched to an original cable the error stopped. The error I was getting was...
|
Hi ! I'm having this issue.
The error is
I disabled wi fi sync for the device on iTunes but nothing changed. Any ideas on how to solve this? Thanks! |
From @wisonye on January 15, 2016 7:22
When developing, I use the this command to run in Emulator, everything is fine:
But after I want to test on real IPhone device, I run
It ONLY CAN WORKS for the first time, after that, it always DEPLOY FAIL with this error:
I really have no idea on this, and the weird thing is keep going: After I unplug the IPHONE, the "tns device" command still can LIST my iphone( how could that possible ):
Anybody can help on this ??? :)
Copied from original issue: NativeScript/NativeScript#1379
The text was updated successfully, but these errors were encountered: