Failed to start debugserver: e8000022

Problem

Failed to start debugserver: e8000022 The service is invalid.


2020-08-25 14:10:03.179 ios-deploy[24111:161543] [ !! ] Error 0xe8000022: The service is invalid. AMDeviceSecureStartService(device, CFSTR("com.apple.debugserver"), NULL, &con)

Sequence

  • Build the application using below command

xcodebuild -target <targetname> -sdk /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.0.sdk -configuration Debug clean build

  • Deploy the application using below command

sudo ios-deploy --id <deviceid> --noninteractive --bundle CPAKCOP-HTC.app

  • Now an application successfully installed into my device but I'm facing the above issue

Could you please help us to resolve the issue?

Environment details:

MAC-MINI

Code Block
Mac-mini:$ xcodebuild -version
Xcode 12.0
Build version 12A8189h

Code Block
Mac-mini:$ ios-deploy --version
1.11.0

Code Block
Mac-mini:$ xcodebuild -showsdks
iOS SDKs:
iOS 14.0            -sdk iphoneos14.0
iOS Simulator SDKs:
Simulator - iOS 14.0      -sdk iphonesimulator14.0

Code Block
Mac-mini:$ clang++ --version
Apple clang version 12.0.0 (clang-1200.0.31.1)
Target: x86_64-apple-darwin19.6.0
Thread model: posix
InstalledDir: /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

Code Block
Mac-mini:$ uname -a
Darwin Mac-mini.local 19.6.0 Darwin Kernel Version 19.6.0: Sun Jul 5 00:43:10 PDT 2020; root:xnu-6153.141.1~9/RELEASE_X86_64 x86_64

Code Block
Mac-mini:$ system_profiler SPSoftwareDataType
Software:
  System Software Overview:
   System Version: macOS 10.15.6 (19G73)
   Kernel Version: Darwin 19.6.0
   Boot Volume: Macintosh HD
   Boot Mode: Normal
   Computer Name: Chetana’s Mac mini
   User Name: Deepthi Uma (deepthi)
   Secure Virtual Memory: Enabled
   System Integrity Protection: Enabled
   Time since boot: 6:16

iPad

Code Block
Hardware Model: J81AP
Device Name: iPad (2)
Model Name: iPad Air 2
SDK Name: iphoneos
Architecture Name: arm64
Product Version: 14.0
Build Version: 18A5351d


Solution

Could you please help us to resolve the issue?
I tried with ios-deploy version 1.11.1 also, Still I'm facing the same issue. Anyone please suggest me, how to resolve the problem.

Note: Same application run on iOS13.6.


I have faced the same issue on Xcode12 Beta6 also

Code Block Mac-mini:$ xcodebuild -version
Xcode 12.0
Build version 12A8189n


Anyone from "apple", Please help me to conclude the issue?
I'm having the same issue with XCode 12 beta 6 (12A8189n) trying to run on iPadOS 14.0 beta 6. A lot of forum answers say it was resolved by updating XCode, but this is the latest version so can't update to anything else.
I am experiencing the same issue. The ios-deploy is updated to 1.11.1 and still the same issue. xcode is version 12.0 beta and ios is 14.0 beta.

The issue happens after lunching the app.

Code Block
------ Debug phase ------
Starting debug of XXXXX (N104AP, iPhone 11, iphoneos, arm64e) a.k.a. 'iPhone' connected through USB...
[ 0%] Looking up developer disk image
[ 95%] Developer disk image mounted successfully
Failed to start debugserver: e8000022 The service is invalid.
Waiting for the device to scan mounted image
2020-08-30 11:05:39.249 ios-deploy[5568:7677781] [ !! ] Error 0xe8000022: The service is invalid. AMDeviceSecureStartService(device, CFSTR("com.apple.debugserver"), NULL, &con)


Had the same issue on an iPadOs 14.0.1 connected to Xcode 12.0.1.

I shut the iPad down and powered it up and it was back to normal.
I'm having the same problem, and I've even updated to iOS 14.1 and Xcode 12.1.
Any resolutions?
restarting the device (iphone 8 plus on iOS 13.7) and rebuild solved the issue for me. Currently using Xcode 12.0
Failed to start debugserver: e8000022
 
 
Q