CLI( tns ) Only can deploy first time to Real IPhone device, please help :(
See original GitHub issueFrom @wisonye on January 15, 2016 7:22
When developing, I use the this command to run in Emulator, everything is fine:
tns livesync ios --emulator --device "iPhone 5" --watch
But after I want to test on real IPhone device, I run
tns run ios
It ONLY CAN WORKS for the first time, after that, it always DEPLOY FAIL with this error:
Results at '/Users/wison/NativeScriptProject/DemoMobileApp/platforms/ios/build/device/DemoMobileApp.ipa'
Project successfully built
Using /Users/wison/NativeScriptProject/DemoMobileApp/platforms/ios/build/device/DemoMobileApp.ipa
Unable to start service com.apple.mobile.installation_proxy. Result code is: 3892314239
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 ):
Wisons-MacBook-Pro:DemoMobileApp wison$ tns device
βββββ¬ββββββββββββββ¬βββββββββββ¬βββββββββββββββββββββββββββββββββββββββββββ
β # β Device Name β Platform β Device Identifier β
β 1 β iPhone5,2 β iOS β 4fcae2e62d5bd99d901647c84b78a3259f71f9ed β
βββββ΄ββββββββββββββ΄βββββββββββ΄βββββββββββββββββββββββββββββββββββββββββββ
Anybody can help on this ??? π
Copied from original issue: NativeScript/NativeScript#1379
Issue Analytics
- State:
- Created 8 years ago
- Reactions:2
- Comments:66 (16 by maintainers)
Top Results From Across the Web
CLI( tns ) Only can deploy first time to Real IPhone device, please ...
From @wisonye on January 15, 2016 7:22. When developing, I use the this command to run in Emulator, everything is fine: tns livesync...
Read more >Can't deploy to iPhone (not available, please reconnect the ...
I'm trying to deploy a simple HelloWorld app to my iPhone 6s Plus running iOS 13.5 from Xcode 11.4.1 but I keep getting...
Read more >tns build ios - NativeScript Docs
Builds the project for iOS and produces an APP or IPA that you can manually deploy in the iOS Simulator or on a...
Read more >NativeScript app won't run on IOS - Stack Overflow
startLookingForDevices; platform is iOS Found device with identifier 'c28457499xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' Exec ps cax | grep launchd_sim stdout:Β ...
Read more >Tenable.sc 5.23.x User Guide
The following guidelines can help you install Tenable.sc in an Amazon ... When you log in to Tenable.sc for the first time, Tenable.scΒ ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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β¦
Unable to apply changes on device: XXXXXXXXXXXXXXXXXX. Error is: Could not start service com.apple.mobile.installation_proxy.
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,
tns run
command deletes an installed old app every time before installing new one, and βtrustedβ information is always reset. Because of thattns run
cannot launch newly installed app.What I did to fix (just for anyone who is facing same kind of issue):
tns build ios --provision
to know the provision ID of newly installed provisoning profile.tns device ios
to know my iPhoneβs device ID.