nativescript-cli: iOS 13 - Could not start service com.apple.mobile.house_arrest

Environment

  • MacOS: Catalina and Mojave
  • XCode: 11
  • iOS: 13
  • CLI: 5.4.1
  • Cross-platform modules: 5.4.0
  • Android Runtime: 5.4.0
  • iOS Runtime: 5.4.2
  • Plugin(s): none

Describe the bug Creating a brand new app or an existing app produces the following error

Installing on device 00008020-000A555236900000...
Unable to apply changes on device: 00008020-000A555236900000. Error is: Could not start service com.apple.mobile.house_arrest.

To Reproduce Create a new project, tns debug ios

Expected behavior App to build and debug

Additional context I can build the app fine, I can run the app through XCode fine. And it works on iOS 13 Simulators

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 7
  • Comments: 37 (9 by maintainers)

Most upvoted comments

@salvadorcoronel,

You are using NativeScript@5.4. See this comment #4741 (comment)

I am working on migration but an alternative that has worked in tns version v5.4.2 was…

cd $(npm config get prefix)/lib/node_modules/nativescript npm install ios-mobileprovision-finder@1.0.11 ios-device-lib@0.6.0

@jalbatross,

We don’t plan to fix it for NS 5.4. The only way is updating to NS 6.1.x.

@Fatme I am still experiencing this issue in NativeScript v6.1.2 with iOS 13 devices and Xcode 11.

If I build the project, and then launch it through Xcode, it works, but this makes the development experience very crippled, as I can’t use HMR anymore.

Tested on fresh reformat and installs of Catalina and Mojave. Using iOS 13 Beta 2.

What are you waiting for? Grab that Xcode 11 beta and iOS 13 beta and get to work on the next great NativeScript app!

What is the point of the blog post https://www.nativescript.org/blog/ios-13-sign-in-with-apple-ipados-and-arkit-3-all-on-nativescript if nothing works on iOS 13? lol

Replicates on Beta 4.

It seems to originate from a method call in IOSDeviceLib to start the com.mobile.house_arrest service.

AMDeviceStartService(devices[device_identifier].device_info, cf_service_name, &socket, NULL);

Converting the resulting error code ‘-402653057’ to hex results in ‘0xe800007f’ which according to this corresponds to ‘Device doesn’t support wireless sync’.

Tried enabling iTunes Wi-Fi sync as a possible workaround but without success, as this option does not exist anymore in Settings on iOS 13, probably because it was replaced with Finder in Catalina.

@yoat,

The issue is fixed in NativeScript v6.1.0. It is expected to see the error with NativeScript 5.4. You can find more information how to update to NativeScript v6.0 here.

Is there any plan moving forward to get this issue fixed for NS5.4, or is the fix to just move to NS6?

@NickIliev right. I have iOS 13 Beta on my iPhone and thought it’d be good to get the app updated to the next iOS, also referring to https://www.nativescript.org/blog/ios-13-sign-in-with-apple-ipados-and-arkit-3-all-on-nativescript

What are you waiting for? Grab that Xcode 11 beta and iOS 13 beta and get to work on the next great NativeScript app!

Same problem