簡體   English   中英

iOS模擬器無法安裝應用程序

[英]iOS Simulator failed to install application

我的Xcode項目開始給“iOS模擬器無法安裝應用程序”

我正在使用iOS模擬器7.1。 模擬器運行任何其他項目。 我已經讀過堆棧溢出中的其他條目,我試圖從終端刪除〜/ Library / Application Support / iPhone Simulator,從“iOS模擬器/重置內容和設置”菜單重置,關閉並重啟Maverick但結果是一樣的。

請幫忙!

更新:當我嘗試將我的應用程序上傳到真實設備時,我收到此錯誤:“無法檢查應用程序包。”

我認為這個錯誤與上述錯誤有關。

當我檢查system.log條目時,我發現下面的行:

...

05/05/14 00:04:48,507 Xcode[1534]: AMDeviceSecureTransferPath (thread 0x10bd96000): disableDelta: FALSE
05/05/14 00:04:48,606 Xcode[1534]: AMDeviceSecureTransferPath (thread 0x10bd96000): Using delta for package at path    file:///Users/serkan/Library/Developer/Xcode/DerivedData/myapp-efvftyvllnqdibctwpfggqgjpfzk/Build/Products/Debug-iphoneos/myapp.app/ ID is myapp.myapp
05/05/14 00:04:48,640 Xcode[1534]: AMDeviceStartHouseArrestService (thread 0x10bd96000):  There was an error from the device: ApplicationLookupFailed
05/05/14 00:04:48,650 Xcode[1534]: AMDeviceSecureTransferPath (thread 0x10bd96000): AMDeviceSecureTransferPath:1589 starting delta_transfer_directory, ref_afc: 0x0
05/05/14 00:04:50,642 Xcode[1534]: AMDeviceSecureTransferPath (thread 0x10bd96000): AMDeviceSecureTransferPath:1592 finished delta_transfer_directory
05/05/14 00:04:50,716 Xcode[1534]: call_and_response (thread 0x10bd96000): GOT AN ERROR 0xe8000051
05/05/14 00:04:50,716 Xcode[1534]: perform_command (thread 0x10bd96000): There was an error communicating with the service agent: 0xe8000051
05/05/14 00:04:50,717 Xcode[1534]: AMDeviceSecureInstallApplication (thread 0x10bd96000): Old style install failed for (PublicStaging/myapp.app)
05/05/14 00:04:50,717 Xcode[1534]: AMDeviceSecureInstallApplication (thread 0x10bd96000): Could not install package on device: kAMDPackageInspectionFailedError

你有一個名為資源或資源的文件夾嗎? 將其重命名為其他名稱,然后重試。 (記得清理項目。)

編輯:如果這不能修復它,請查看項目設置,在“構建階段”下,在“復制捆綁資源”下。 也許過時的條目就在那里,需要手動刪除。

編輯:同樣清理項目。 單擊菜單條目時按住選項鍵,使其顯示“Clean Build Folder ...”。 如有必要,刪除派生數據:打開管理器,選擇項目:有一個條目“派生數據”,顯示Xcode生成的文件的路徑。 權利也是一個刪除按鈕 - 單擊該按鈕刪除所有派生數據。 (Xcode必須重建索引文件等,沒什么關鍵)

(我記得,當我有一個Resource(s)文件夾時,我看到了這樣的錯誤,當我重命名它時,它再次起作用。據我所知,Resource用於Mac OS X應用程序。我認為它不會被使用對於iOS,但至少它在我的情況下造成了麻煩。)

通過刪除以下問題解決了我的問題:

~/Library/Application Support/iPhoneSimulator

文件夾並重新安裝xcode

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM