Xcode Error: The service is invalid (0XE8000022) 解決方法

Xcode Error: The service is invalid (0XE8000022)app

真機調試時趕上以下狀況:ssh

The service is invalidfetch

Please check your setup and try againui

(0XE8000022)this

這個未越獄設備的解決方法, 很不湊效,未越獄的可能要抹掉數據恢復設置了:spa

解決辦法:調試

Xcode and the GDB connection is quite temperamental. The device and your Mac can become unsynchronised with each other. My checklist for this sort of thing:rest

  • Restart Xcode.
  • Delete the .app from your iOS device, do a Clean then Rebuild.
  • Disconnect, reconnect device.
  • Restart iOS device (90% of the time it fixes things)
  • If all else fails, restart your Mac (unlikely but it did fix an issue once for me).

參考:http://stackoverflow.com/questions/2160299/error-the-service-is-invalid日誌

 

可是對於恢復設備這種最有效卻很弱的方法是很坑的,要折騰好久,還要擔憂資料損失code

下面介紹個人解決方法,

設備鏈接Mac,Xcode的Organizer中找到設備,

而後在設備的Console裏面就有設備鏈接不上的報錯日誌:

Apr 5 14:14:38 shoukaikokorotobira installd[47] <Error>: 0x1583000 filter_attributes: Info.plist keys requested via MobileInstallationLookup/Browse in client Xcode (via mobile_installation_proxy) were not found in MobileInstallation's cache. Please file a bug requesting that these keys be added: <CFBasicHash 0x1ee75da0 [0x39d76100]>{type = mutable set, count = 18, entries => 0 : <CFString 0x39d629f4 [0x39d76100]>{contents = "CFBundlePackageType"} 1 : <CFString 0x1ee2da20 [0x39d76100]>{contents = "BuildMachineOSBuild"} 2 : <CFString 0x39d63a44 [0x39d76100]>{contents = "CFBundleResourceSpecification"} 3 : <CFString 0x1ee75880 [0x39d76100]>{contents = "DTPlatformBuild"} 4 : <CFString 0x39d60794 [0x39d76100]>{contents = "DTCompiler"} 5 : <CFString 0x39d62564 [0x39d76100]>{contents = "CFBundleSignature"} 6 : <CFString 0x39d63224 [0x39d76100]>{contents = "DTSDKName"} 7 : <CFString 0x1ee75920 [0x39d76100]>{contents = "NSBundleResolvedPath"} 8 : <CFString 0x39d5feb4 [0x39d76100]>{contents = "UISupportedInterfaceOrientations"} 10 : <CFString 0x39d67e84 [0x39d76100]>{contents = "DTXcode"} 13 : <CFString 0x39d67eb4 [0x39d76100]>{contents = "CFBundleInfoDictionaryVersion"} 16 : <CFString 0x39d65304 [0x39d76100]>{contents = "CFBundleSupportedPlatforms"} 17 : <CFString 0x1ee758c0 [0x39d76100]>{contents = "DTXcodeBuild"} 18 : <CFString 0x1ee75a80 [0x39d76100]>{contents = "UIStatusBarTintParameters"} 19 : <CFString 0x39d63e54 [0x39d76100]>{contents = "DTPlatformVersion"} 20 : <CFString 0x39d66bf4 [0x39d76100]>{contents = "DTPlatformName"} 21 : <CFString 0x39d67c84 [0x39d76100]>{contents = "CFBundleDevelopmentRegion"} 22 : <CFString 0x1ee758a0 [0x39d76100]>{contents = "DTSDKBuild"} }

Apr 5 14:14:38 shoukaikokorotobira lockbot[525] <Notice>: 3b6eeb88 __spawn_agent_block_invoke_0: Unable to spawn /Developer/Library/Daemons/DTFetchSymbols:13 Permission denied

Apr 5 14:14:38 shoukaikokorotobira lockdownd[45] <Notice>: 01581000 lockbot_spawn_agent: lockbot returned an error: SpawnFailed

Apr 5 14:14:38 shoukaikokorotobira lockdownd[45] <Notice>: 01581000 spawn_service_agent: Could not spawn service agent via lockbot

Apr 5 14:14:38 shoukaikokorotobira lockdownd[45] <Notice>: 01581000 spawn_and_handle_checkin: Could not spawn the com.apple.dt.fetchsymbols service agent:InvalidService

 

 

看到這裏就知道緣由了,是鏈接Gdb服務獲取設備號的可執行文件的權限變了,Deamon進程啓動不了, 

個人iPad是越獄的很容易就修復了,無需重啓

在iPad終端(越獄的能夠去Cydia安裝)裏面進入終端輸入命令便可

(無終端的話能夠用ssh鏈接iPhone, 用戶名:root,密碼:alpine)

chmod  a+x  /Developer/Library/Daemons/*

收工能夠繼續連Xcode調試玩了,

相關文章
相關標籤/搜索