An error was encountered while attempting to communicate with this device. (The service is invalid.)dasd

(Xcode)

An error was encountered while attempting to communicate with this device. (The service is invalid.)

Please try rebooting and reconnecting the device. (0xE8000022).

清除build
Product->Clean Build Folder

開啟Preferences

取得DerivedData資料夾路徑(按箭頭可以直接到資料夾)

清除DerivedData資料夾

關閉Xcode,並重新開機Mac & iPod

即可解決此異常