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.

Problem live syncing on iOS

See original GitHub issue

#Using NS 4.0 with iOS 4.0.1

Livesyncing doesn’t seem to work.

This is on iOS 11.3 device.

Sometimes Safari opens and the url is set to 127.0.0.1

Sometimes tns run iOS does a successful build and then goes to the command prompt - sometimes it works. Seems to be a timing issue.

`Searching for devices… Skipping prepare. Refreshing application… Error while trying to start application dev.asrock.test on device 6c2738837caf832490dc687df75b326c20de142b. Error is: Could not start service com.apple.debugserver Unable to start application dev.asrock.test on device 6c2738837caf832490dc687df75b336c20de142b. Try starting it manually. Successfully synced application dev.asrock.test on device 6c2738837caf832490dc687df75b326c20de142b. Executing before-watchPatterns hook from /Users/asrock/Documents/subs_test/hooks/before-watchPatterns/nativescript-dev-typescript.js Executing before-watch hook from /Users/asrock/Documents/subs_test/hooks/before-watch/nativescript-dev-typescript.js Found peer TypeScript 2.7.2 6:17:03 PM - Starting compilation in watch mode…

6:17:05 PM - Compilation complete. Watching for file changes.

Unzipping LiveSync folder. This could take a while… Unzipped 385 entries in 3030.322909ms. Retrieving resting unlock: 0 Retrieving resting unlock: 0 `

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Fatmecommented, Apr 27, 2018

Hi @erjdriver,

Thank you for sending the logs.

Unable to mount developer disk image

In case when {N} CLI is not able to mount developer disk image on device, application cannot be started automatically on device. This is the reason to see this error:

Unable to start application dev.asrock.com on device 6c2738837caf832490dc687df75b336c20de142b. Try starting it manually.

From the provided log I noticed you’re using xcodeVer: '9.2.0' but your device is iOS 11.3.1. You need to update your xcode version to 9.3.0 in order to fix the problem.

NOTE: {N} CLI gets the most compatible developer disk image on your machine. These images come from xcode itself. The most compatible developer disk image is selected based on version of your xcode and the iOS version of your device.

0reactions
erjdrivercommented, Apr 28, 2018

I’ve attached the trace file.

I also got this on console

Project successfully created. mac:subs_test asrock$ tns run ios --log trace >temp.txt 2018-04-26 19:18:22.730 xcodebuild[4764:214405] iPhoneConnect: ## Unable to mount developer disk image, (Error Domain=com.apple.dtdevicekit Code=601 "Could not locate device support files." UserInfo={NSLocalizedRecoverySuggestion=This iPhone 6 is running iOS 11.3.1 (15E302), which may not be supported by this version of Xcode., DeviceType=iPhone7,2, NSLocalizedDescription=Could not locate device support files.}) { DeviceType = "iPhone7,2"; NSLocalizedDescription = "Could not locate device support files."; NSLocalizedRecoverySuggestion = "This iPhone 6 is running iOS 11.3.1 (15E302), which may not be supported by this version of Xcode."; } 2018-04-26 19:18:36.305 xcodebuild[4881:215109] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path '/var/folders/3k/l203s_9s60778q7jd3qj533w0000gn/T/substest_2018-04-26_19-18-36.304.xcdistributionlogs'.

Read more comments on GitHub >

github_iconTop Results From Across the Web

10 Tips to Fix iPhone Not Syncing Problems Quickly - Dr.Fone
10 Tips to Fix iPhone Not Syncing Issue · 1. Update the iTunes version · 2. Reauthorize iTunes · 3. Restart the computer...
Read more >
Fixing Sync Issues with Apple Watch (including Live Sync)
Issues and stability problems with Apple Watch can be caused by multiple reasons, which can be difficult to track down.
Read more >
Live Photos not Syncing to iPhone - Apple Community
The problem I'm having is only HDR Live Photos do not sync back to my phone. The live photo will work on my...
Read more >
How to Fix iPhone Won't Sync on iOS 16 with 11 Useful Tips
The first thing to check when the iPhone won't sync to iTunes is the iTunes pending update. If there is a pending software...
Read more >
iPad Not Syncing with iPhone? Fixes and Alternative
5. Wait for Apple Service to fix ... iPhone and iPad syncing relies on iCloud online sevices. When there's an issue with iCloud...
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