question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItΒ collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CLI( tns ) Only can deploy first time to Real IPhone device, please help :(

See original GitHub issue

From @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:closed
  • Created 8 years ago
  • Reactions:2
  • Comments:66 (16 by maintainers)

github_iconTop GitHub Comments

2reactions
stevegardnersacommented, May 22, 2018

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.

2reactions
hosikiticommented, Dec 15, 2017

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 that tns run cannot launch newly installed app.

What I did to fix (just for anyone who is facing same kind of issue):

  1. Create iOS development certificate, app id, and provisioning profile.
  2. Install the certificate and the provisioning profile to my local machine.
  3. Run tns build ios --provision to know the provision ID of newly installed provisoning profile.
  4. Run tns device ios to know my iPhone’s device ID.
  5. Run `tns run ios --device <device ID> --provision <provision ID>
  6. Done!
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found