iOS真機(jī)調(diào)試--Unable to install "": A valid provisioning profile for this executable was not found

真機(jī)調(diào)試中遇到問(wèn)題:Unable to install ""

詳細(xì)錯(cuò)誤信息:

Unable to install "xxx"

Domain: com.apple.dtdevicekit

Code: -402620395

--

App installation failed

Domain: com.apple.dtdevicekit

Code: -402620395

Failure Reason: A valid provisioning profile for this executable was not found.

Details

Unable to install "xxx"

Domain: com.apple.dtdevicekit

Code: -402620395

--

App installation failed

Domain: com.apple.dtdevicekit

Code: -402620395

Failure Reason: A valid provisioning profile for this executable was not found.

User Info: {

? ? DVTRadarComponentKey = 487927;

? ? "com.apple.dtdevicekit.stacktrace" =(

0? DTDeviceKitBase? ? ? ? ? ? ? ? ? ? 0x00000001229076e7 DTDKCreateNSError + 109

1? DTDeviceKitBase? ? ? ? ? ? ? ? ? ? 0x0000000122907de9 DTDK_AMDErrorToNSError + 792

2? DTDeviceKitBase? ? ? ? ? ? ? ? ? ? 0x000000012294756a __90-[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:]_block_invoke + 164

3? DVTFoundation? ? ? ? ? ? ? ? ? ? ? 0x000000010ad33c12 DVTInvokeWithStrongOwnership + 73

4? DTDeviceKitBase? ? ? ? ? ? ? ? ? ? 0x0000000122947301 -[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:]+ 1589

5? IDEiOSSupportCore? ? ? ? ? ? ? ? ? 0x00000001227cfa25 __118-[DVTiOSDevice(DVTiPhoneApplicationInstallation)processAppInstallSet:appUninstallSet:installOptions:completionBlock:]_block_invoke.352 + 4523

6? DVTFoundation? ? ? ? ? ? ? ? ? ? ? 0x000000010ae64e7a __DVT_CALLING_CLIENT_BLOCK__ + 7

7? DVTFoundation? ? ? ? ? ? ? ? ? ? ? 0x000000010ae66552 __DVTDispatchAsync_block_invoke + 809

8? libdispatch.dylib? ? ? ? ? ? ? ? ? 0x00007fff63732583 _dispatch_call_block_and_release + 12

9? libdispatch.dylib? ? ? ? ? ? ? ? ? 0x00007fff6373350e _dispatch_client_callout + 8

10? libdispatch.dylib? ? ? ? ? ? ? ? ? 0x00007fff63738ace _dispatch_lane_serial_drain + 597

11? libdispatch.dylib? ? ? ? ? ? ? ? ? 0x00007fff63739452 _dispatch_lane_invoke + 363

12? libdispatch.dylib? ? ? ? ? ? ? ? ? 0x00007fff63742a9e _dispatch_workloop_worker_thread + 598

13? libsystem_pthread.dylib? ? ? ? ? ? 0x00007fff6398d6fc _pthread_wqthread + 290

14? libsystem_pthread.dylib? ? ? ? ? ? 0x00007fff6398c827 start_wqthread + 15

);

}

--

A valid provisioning profile for this executable was not found

解決方案:打開(kāi)Xcode -> Window -> Devices and Simulators ,選中調(diào)試設(shè)備,右鍵選擇 Show Provisioning Profiles... 查看與當(dāng)前調(diào)試證書是否一致,不一致則刪除重新編譯,或選擇手動(dòng)添加當(dāng)前證書(針對(duì)不勾選 Automatically manage signing)

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容