Development cannot be enabled while your device is locked Please unlock your device and reattach.エラー回避の一例
Development cannot be enabled while your device is locked
Please unlock your device and reattach.
iPadで実機シミュレートした時だけこのエラー文がでてシミュレートできませんでした。
私の場合は
『〜〜〜〜〜/Assets.xcassets:-1: A 83.5x83.5@2x app icon is required for iPad apps targeting iOS 9.0 and later』
のような黄色い三角警告が同時にでていました。
iPad pro用のアイコン画像がセットされていなかったみたいです。
ここには83.5x83.5と書いてありますが
167x167サイズの仮アイコンの画像を
Asset.xcassets のiPad pro 12.9inch のセットします。
それを直したら
シミュレートできるようになりました。
まあ一例です。
皆さん頑張ってください。