発生したこと
Xcode11でiOS14の実機デバッグを開始しようとすると、RUNするとエラーが発生する。
An error was encountered while attempting to communicate with this device. (The service is invalid.)
Please try rebooting and reconnecting the device. (0xE8000022).このデバイスと通信しようとしたときにエラーが発生しました。
ちなみにビルドは成功する。
やったこと
- iOS 14のDevice Supportをダウンロード
-
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/
に配置 - Xcode再起動
- RUN
参考:Xcodeのバージョンを上げずに、新しいOSが入った端末でデバッグする方法(iPhoneのOSをアップデートしちゃったあと) - すっさんぽ
調べたこと
issue
iOS 14 doesn't work with Xcode 11.7 · Issue #69 · filsv/iPhoneOSDeviceSupport · GitHub
Xcode 12リリースノート
Xcode 12 Release Notes | Apple Developer Documentation
Xcode 12 now encrypts the connection between Xcode and paired devices, protecting against an attacker in a privileged network position executing arbitrary code on connected iOS, iPadOS, watchOS, or tvOS devices during a remote debug session. (60386733)
These security benefits are available when Xcode 12 connects to devices running iOS 14, iPadOS 14, watchOS 7, tvOS 14, or later versions. These OS versions also refuse debugger connections from older Xcode releases. Xcode 12 continues to support debugging for older OS versions, but without the new encryption.これらのセキュリティ上の利点は、Xcode 12がiOS 14、iPadOS 14、watchOS 7、tvOS 14以降のバージョンを実行しているデバイスに接続する場合に利用できます。これらのOSバージョンでは、古いXcodeリリースからのデバッガ接続も拒否されます。
結果
Xcode12にあげるしかない