nativescript-cli: tns run ios cannot start app on iPhone and does not sync changes
Environment
Provide version numbers for the following components (information can be retrieved by running tns info
in your project folder or by inspecting the package.json
of the project):
- CLI: 6.1.2 and 6.2.2
- Cross-platform modules: 6.1.2
- Android Runtime: 6.1.2
- iOS Runtime: 6.1.1
- Plugin(s): unrelated
Describe the bug tns run ios command can install, restart and sync the app on iOS emulator, but cannot on real iPhone device. I see that app is installed on the device. Consol log shows that Nativescript is trying to “Restarting the app” but it stays there. I have to manually tap the app icon to start the app. If I make changes on the code, changes aren’t synced too. I see that webpack build is done but nothing else happens. It just stays there. I have to kill the command and rerun it every time I make a change.
To Reproduce Create a project. Connect iPhone. Run tns run ios. It shows “Restarting application on device 8ad303e2f6bf07f0329fb6a43329e99d14d98604…” at the end, but nothing happens.
Expected behavior It should restart the app and sync it.
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 1
- Comments: 38 (15 by maintainers)
@NathanaelA could we get some news on this. It seems like a really high priority issue. From that discussion i can see that a lot of people are facing this. For me it is a big deal right now. I am forced to test on device because my apps use bluetooth. And it is quite a nightmare right now.
Need to bump that issue as i am facing that issue right now. Almost impossible to run an app on device. It runs “sometimes”. XCode 12.2 Cli 7.0.11 Core: 7.0.13
I tried with multiple devices and i always have the same issue
default 10:55:31.729969-0700 runningboardd Received termination request from [daemon<com.apple.mobile.installd>:166] on <RBSProcessPredicate <RBSProcessBundleIdentifierPredicate “com.xactware.remodel”>> with context <RBSTerminateContext| code:0xDEAD6502 explanation:FBSApplicationTerminationAssertion reportType:None maxTerminationResistance:Interactive attrs:[ <RBSPreventLaunchLimitation| <RBSProcessPredicate <RBSProcessBundleIdentifierPredicate “com.xactware.remodel”>>> ]> default 10:55:31.735573-0700 runningboardd skipping plugin hold for uninstalled proxy com.xactware.remodel default 10:55:31.735632-0700 runningboardd Acquiring assertion targeting system from originator [daemon<com.apple.mobile.installd>:166] with description <RBSAssertionDescriptor| “FBSApplicationTerminationAssertion” ID:32-166-7673 target:system attributes:[ <RBSPreventLaunchLimitation| <RBSProcessPredicate <RBSProcessBundleIdentifierPredicate “com.xactware.remodel”>>> ]> default 10:55:31.736464-0700 runningboardd Executing termination request for: <RBSProcessPredicate <RBSProcessBundleIdentifierPredicate “com.xactware.remodel”>> default 10:55:31.738404-0700 SpringBoard termination assertion efficacy for com.xactware.remodel (app not found) changed to 3 default 10:55:31.757278-0700 installd 0x16f837000 -[MIInstaller performInstallationWithError:]: Installing <MIInstallableBundle ID=com.xactware.remodel; Version=2100010100, ShortVersion=1.0> default 10:55:31.757426-0700 installd com.xactware.remodel:7:5:1:1:Start : Install (New) default 10:55:32.605840-0700 installd 0x16f837000 -[MIContainer makeContainerLiveReplacingContainer:reason:waitForDeletion:withError:]: Made container live for com.xactware.remodel at /private/var/mobile/Containers/Data/Application/F680E132-6B81-443F-B3C8-B88986B9AE57 default 10:55:32.610768-0700 installd 0x16f837000 -[MIContainer makeContainerLiveReplacingContainer:reason:waitForDeletion:withError:]: Made container live for com.xactware.remodel at /private/var/containers/Bundle/Application/4BCF5BB7-3A77-4D94-915A-F65D82680033 default 10:55:32.698529-0700 installd com.xactware.remodel:7:5:2:1:Success (End) : Install (New) default 10:55:32.698577-0700 installd 0x16f837000 -[MIInstaller performInstallationWithError:]: Install Successful for (Developer:com.xactware.remodel); Staging: 0.08s; Waiting: 0.00s; Preflight/Patch: 0.21s, Verifying: 0.61s; Overall: 1.06s default 10:55:32.702246-0700 SpringBoard termination assertion efficacy for com.xactware.remodel (app not found) changed to 0 default 10:55:32.703201-0700 lsd com.xactware.remodel:5:4:1:1:Registering com.xactware.remodel at /private/var/containers/Bundle/Application/4BCF5BB7-3A77-4D94-915A-F65D82680033/nativescriptxactremodel.app default 10:55:32.708440-0700 lsd - 45683955: Checking whether application is managed at file:///private/var/containers/Bundle/Application/4BCF5BB7-3A77-4D94-915A-F65D82680033/nativescriptxactremodel.app//com.xactware.remodel default 10:55:32.708492-0700 lsd com.xactware.remodel:5:5:1:1:Building bundle record for app default 10:55:32.709935-0700 lsd com.xactware.remodel:5:5:2:1:Built bundle record for app default 10:55:32.726109-0700 lsd com.xactware.remodel:5:4:2:1:Registered bundle status = success default 10:55:32.726316-0700 lsd com.xactware.remodel:5:4:2:1:Registering com.xactware.remodel default 10:55:32.737651-0700 mobile_installation_proxy com.xactware.remodel:5:1:2:1:_LSInstallationManager install:withError finished default 10:55:32.776523-0700 CommCenter #I Apps installed on the device: com.xactware.remodel default 10:55:32.776798-0700 CommCenter #I Adding default rules on the device for: com.xactware.remodel default 10:55:32.810436-0700 contextstored com.xactware.remodel:5:8:3:1:applicationsDidInstall <LSApplicationProxy: 0x101631400> com.xactware.remodel file:///private/var/containers/Bundle/Application/4BCF5BB7-3A77-4D94-915A-F65D82680033/nativescriptxactremodel.app/ <com.xactware.remodel <installed >:0> default 10:55:32.835643-0700 bluetoothd com.xactware.remodel:5:8:3:1:applicationsDidInstall <LSApplicationProxy: 0x104c4aaf0> com.xactware.remodel file:///private/var/containers/Bundle/Application/4BCF5BB7-3A77-4D94-915A-F65D82680033/nativescriptxactremodel.app/ <com.xactware.remodel <installed >:0> default 10:55:32.938286-0700 runningboardd com.xactware.remodel:5:8:3:1:applicationsDidInstall <LSApplicationProxy: 0x13b3352d0> com.xactware.remodel file:///private/var/containers/Bundle/Application/4BCF5BB7-3A77-4D94-915A-F65D82680033/nativescriptxactremodel.app/ <com.xactware.remodel <installed >:0> default 10:55:33.044107-0700 pkd com.xactware.remodel:5:8:3:1:applicationsDidInstall <LSApplicationProxy: 0x100e315f0> com.xactware.remodel file:///private/var/containers/Bundle/Application/4BCF5BB7-3A77-4D94-915A-F65D82680033/nativescriptxactremodel.app/ <com.xactware.remodel <installed >:0> default 10:55:33.044222-0700 SpringBoard com.xactware.remodel:5:8:3:1:applicationsDidInstall <LSApplicationProxy: 0x283abee50> com.xactware.remodel file:///private/var/containers/Bundle/Application/4BCF5BB7-3A77-4D94-915A-F65D82680033/nativescriptxactremodel.app/ <com.xactware.remodel <installed >:0> default 10:55:33.045104-0700 SpringBoard -[FBSApplicationLibrary applicationsDidInstall:] com.xactware.remodel default 10:55:33.051090-0700 homed com.xactware.remodel:5:8:3:1:applicationsDidInstall <LSApplicationProxy: 0x12cc05d00> com.xactware.remodel file:///private/var/containers/Bundle/Application/4BCF5BB7-3A77-4D94-915A-F65D82680033/nativescriptxactremodel.app/ <com.xactware.remodel <installed >:0> default 10:55:33.053462-0700 clipserviced com.xactware.remodel:5:8:3:1:applicationsDidInstall <LSApplicationProxy: 0x100a0e160> com.xactware.remodel file:///private/var/containers/Bundle/Application/4BCF5BB7-3A77-4D94-915A-F65D82680033/nativescriptxactremodel.app/ <com.xactware.remodel <installed >:0> default 10:55:33.079847-0700 atc com.xactware.remodel:5:8:3:1:applicationsDidInstall <LSApplicationProxy: 0x1031f4570> com.xactware.remodel file:///private/var/containers/Bundle/Application/4BCF5BB7-3A77-4D94-915A-F65D82680033/nativescriptxactremodel.app/ <com.xactware.remodel <installed >:0> default 10:55:33.081020-0700 nsurlsessiond com.xactware.remodel:5:8:3:1:applicationsDidInstall <LSApplicationProxy: 0x100e8c080> com.xactware.remodel file:///private/var/containers/Bundle/Application/4BCF5BB7-3A77-4D94-915A-F65D82680033/nativescriptxactremodel.app/ <com.xactware.remodel <installed >:0> default 10:55:33.089756-0700 aggregated com.xactware.remodel:5:8:3:1:applicationsDidInstall <LSApplicationProxy: 0x106708870> com.xactware.remodel file:///private/var/containers/Bundle/Application/4BCF5BB7-3A77-4D94-915A-F65D82680033/nativescriptxactremodel.app/ <com.xactware.remodel <installed >:0> default 10:55:33.089987-0700 UserEventAgent com.xactware.remodel:5:8:3:1:applicationsDidInstall <LSApplicationProxy: 0x10264fd70> com.xactware.remodel file:///private/var/containers/Bundle/Application/4BCF5BB7-3A77-4D94-915A-F65D82680033/nativescriptxactremodel.app/ <com.xactware.remodel <installed >:0> default 10:55:33.090095-0700 watchlistd com.xactware.remodel:5:8:3:1:applicationsDidInstall <LSApplicationProxy: 0x10fe7fdc0> com.xactware.remodel file:///private/var/containers/Bundle/Application/4BCF5BB7-3A77-4D94-915A-F65D82680033/nativescriptxactremodel.app/ <com.xactware.remodel <installed >:0> default 10:55:33.091945-0700 nanotimekitcompaniond com.xactware.remodel:5:8:3:1:applicationsDidInstall <LSApplicationProxy: 0x100635560> com.xactware.remodel file:///private/var/containers/Bundle/Application/4BCF5BB7-3A77-4D94-915A-F65D82680033/nativescriptxactremodel.app/ <com.xactware.remodel <installed >:0> default 10:55:33.092952-0700 profiled com.xactware.remodel:5:8:3:1:applicationsDidInstall <LSApplicationProxy: 0x107e5c610> com.xactware.remodel file:///private/var/containers/Bundle/Application/4BCF5BB7-3A77-4D94-915A-F65D82680033/nativescriptxactremodel.app/ <com.xactware.remodel <installed >:0> default 10:55:33.097826-0700 navd com.xactware.remodel:5:8:3:1:applicationsDidInstall <LSApplicationProxy: 0x111036250> com.xactware.remodel file:///private/var/containers/Bundle/Application/4BCF5BB7-3A77-4D94-915A-F65D82680033/nativescriptxactremodel.app/ <com.xactware.remodel <installed >:0> default 10:55:33.098547-0700 CommCenter #I Setting cellular network data usage policy for bundleID: com.xactware.remodel, policy: kAlwaysAllow, changed: true default 10:55:33.103007-0700 SpringBoard com.xactware.remodel:10:10:3:1:Application added default 10:55:33.106484-0700 appstored com.xactware.remodel:5:8:3:1:applicationsDidInstall <LSApplicationProxy: 0x104535420> com.xactware.remodel file:///private/var/containers/Bundle/Application/4BCF5BB7-3A77-4D94-915A-F65D82680033/nativescriptxactremodel.app/ <com.xactware.remodel <installed >:0> default 10:55:33.157761-0700 assistant_service com.xactware.remodel:5:8:3:1:applicationsDidInstall <LSApplicationProxy: 0x109b0b110> com.xactware.remodel file:///private/var/containers/Bundle/Application/4BCF5BB7-3A77-4D94-915A-F65D82680033/nativescriptxactremodel.app/ <com.xactware.remodel <installed >:0> default 10:55:33.179090-0700 appstored Handling application installation: {bundleID = com.xactware.remodel; version = 2100010100; shortVersion = 1.0; variantID = (null)} default 10:55:33.180680-0700 appstored Ignoring installation for {bundleID = com.xactware.remodel; version = 2100010100; shortVersion = 1.0; variantID = (null)} as it does not appear to support ODR default 10:55:33.328797-0700 SpringBoard [com.xactware.remodel] Application installed using default data provider default 10:55:33.328897-0700 SpringBoard Getting sectionInfos for section identifiers: {( “com.xactware.remodel” )} default 10:55:33.329360-0700 SpringBoard [{( “com.xactware.remodel” )}] Got section infos [ hasResult: 1 ] default 10:55:33.594943-0700 dmd Received xpc stream event (distributed notification matching) with name: com.apple.LaunchServices.applicationRegistered user info: { bundleIDs = ( “com.xactware.remodel” ); isPlaceholder = 0; } default 10:55:33.615837-0700 nesessionmanager UUID cache miss for com.xactware.remodel default 10:55:35.172498-0700 nesessionmanager UUID: Found for com.xactware.remodel: ( “52D450F8-6AB4-3478-BB8F-C5FA9D5442D2” )
@NathanaelA done that many times. And I never use hmr. It is not a setup a current conf issue. I assure you it is an issue with the CLI. It feels like the restart message it sends is not handled on the device
After upgrading to Xcode 11, my problem is solved. But I won’t close this issue because you are facing a problem.