2012-12-01 99 views
22

我試圖在設備上運行我的應用程序,但收到以下錯誤消息「無法檢查應用程序包」, 該應用程序已成功運行設備,但隨後停止,它仍然成功建立。 其他應用程序運行良好。Xcode錯誤消息:「無法檢查應用程序包」

這是控制檯發生的錯誤。

12月1日14時08分13秒Marafeti內核[0]:螢幕鎖匠[567]內藏輪廓:gputoolsd(沙箱) 12月1日14時08分28秒Marafeti INSTALLD [31]:0x2ff7c000 handle_install:安裝的「 /var/mobile/Media/PublicStaging/demoMus.app「mobile_installation_proxy請求 Dec 1 14:08:28 Marafeti installd [31]:0x2ff7c000 peruse_package:從」/var/tmp/install_staging.44DhXc/demoMus加載的應用程序信息字典。應用程序「沒有包標識符 Dec 1 14:08:28 Marafeti installd [31]:0x2ff7c000 stage_package:無法在/var/tmp/install_staging.44DhXc/demoMus.app上查看軟件包 Dec 1 14:08:28 Marafeti installd [31]:0x2ff7c000 MobileInstallationInstall_Server:無法分階段打包 Dec 1 14:08:28 Marafeti mobile_installation_proxy [572]:0x39dbeb88 MobileInstallationInstall:failed with -1 Dec 1 14:08:28 Marafeti mobile_installation_proxy [572]:handle_install:安裝失敗 Dec 1 14:08:29 Marafeti installd [ 31]:0x2ff7c000 handle_install:API失敗 Dec 1 14:11:50 Marafeti dataaccessd [83]:0x1dd6c3b0 | DA | Note | AccountID:E1B4940D-E02C-4ECF-B6AC-7B0DB8BAAA52(「iCloud」)(Legacy) Stats DAStatusReport 0x1e8e9d80:{DAN_AccountType = IMAPNotes; DASRPersistentUUID =「E1B4940D-E02C-4ECF-B6AC-7B0DB8BAAA52」; DASRTimeSpan =「37.06999397277832」; } =======

AccountID: ABEE9E0F-D30B-488C-AE35-0A67FFC9D0A8 ("Gmail") (Legacy) 
Stats DAStatusReport 0x1ddc6af0: { 
    DASRAccountType = IMAPNotes; 
    DASRPersistentUUID = "ABEE9E0F-D30B-488C-AE35-0A67FFC9D0A8"; 
    DASRTimeSpan = "36.95116698741913"; 
} 
======= 

AccountID: 00D54212-0B42-4D2E-A7CF-517815381FCC ("iCloud") (Legacy) 
Stats DAStatusReport 0x1e8e5e30: { 
    DASRAccountType = CalDAV; 
    DASRFailedNetworkRequests = 3; 
    DASRPersistentUUID = "00D54212-0B42-4D2E-A7CF-517815381FCC"; 
    DASRSuccessfulRequests = 1; 
    DASRTimeInNetworking = "0.1138659119606018"; 
    DASRTimeSpan = "36.83354198932648"; 
} 
DATaskManager <DACoreDAVTaskManager: 0x1e889060> state:Nominal 
Active exclusive task: (null) 
Queued exclusive tasks: (null) 
Independent tasks: (null) 
Held independent tasks: (null) 
Modal-held independent tasks: (null) 
Active queued task: (null) 
Queued tasks: (null) 
Active modal task: (null) 
Queued modal tasks: (null) 

Associated with account: <MobileCalDAVMobileMeChildDaemonAccount: 0x1ddc7740>: accountID 00D54212-0B42-4D2E-A7CF-517815381FCC persistentUUID 00D54212-0B42-4D2E-A7CF-517815381FCC 
======= 

AccountID: 939CC513-0027-4F6E-821B-CC14022CA49A ("Oxinai") (Legacy) 
Stats DAStatusReport 0x1e8ece00: { 
    DASRAccountType = CalDAV; 
    DASRFailedNetworkRequests = 3; 
    DASRPersistentUUID = "939CC513-0027-4F6E-821B-CC14022CA49A"; 
    DASRSuccessfulRequests = 1; 
    DASRTimeInNetworking = "0.06468302011489868"; 
    DASRTimeSpan = "36.41551601886749"; 
} 
DATaskManager <DACoreDAVTaskManager: 0x1ddfb950> state:Nominal 
Active exclusive task: (null) 
Queued exclusive tasks: (null) 
Independent tasks: (null) 
Held independent tasks: (null) 
Modal-held independent tasks: (null) 
Active queued task: (null) 
Queued tasks: (null) 
Active modal task: (null) 
Queued modal tasks: (null) 

Associated with account: <MobileCalDAVChildDaemonAccount: 0x1e8e41f0>: accountID 939CC513-0027-4F6E-821B-CC14022CA49A persistentUUID 939CC513-0027-4F6E-821B-CC14022CA49A 
======= 

AccountID: C82E01E9-8299-49F2-8501-B0C31E05C8FC ("Gmail") (Legacy) 
Stats DAStatusReport 0x1e8ef610: { 
    DASRAccountType = CalDAV; 
    DASRFailedNetworkRequests = 3; 
    DASRPersistentUUID = "C82E01E9-8299-49F2-8501-B0C31E05C8FC"; 
    DASRSuccessfulRequests = 1; 
    DASRTimeInNetworking = "0.04899799823760986"; 
    DASRTimeSpan = "36.41232699155807"; 
} 
DATaskManager <DACoreDAVTaskManager: 0x1dd7b060> state:Nominal 
Active exclusive task: (null) 
Queued exclusive tasks: (null) 
Independent tasks: (null) 
Held independent tasks: (null) 
Modal-held independent tasks: (null) 
Active queued task: (null) 
Queued tasks: (null) 
Active modal task: (null) 
Queued modal tasks: (null) 

Associated with account: <MobileCalDAVChildDaemonAccount: 0x1e8eea60>: accountID C82E01E9-8299-49F2-8501-B0C31E05C8FC persistentUUID C82E01E9-8299-49F2-8501-B0C31E05C8FC 
======= 

AccountID: 915C5A43-FE6D-4EEE-A157-A7D26671DDAA ("iCloud") (Legacy) 
Stats DAStatusReport 0x1ddda4a0: { 
    DASRAccountType = CardDAV; 
    DASRPersistentUUID = "915C5A43-FE6D-4EEE-A157-A7D26671DDAA"; 
    DASRTimeSpan = "36.39721202850342"; 
} 
DATaskManager <DACoreDAVTaskManager: 0x1e83be40> state:Nominal 
Active exclusive task: (null) 
Queued exclusive tasks: (null) 
Independent tasks: (null) 
Held independent tasks: (null) 
Modal-held independent tasks: (null) 
Active queued task: (null) 
Queued tasks: (null) 
Active modal task: (null) 
Queued modal tasks: (null) 

Associated with account: <CardDAVMobileMeChildDaemonAccount: 0x1ddda0e0>: accountID 915C5A43-FE6D-4EEE-A157-A7D26671DDAA persistentUUID 915C5A43-FE6D-4EEE-A157-A7D26671DDAA 
======= 

AccountID: 2F8D6492-EB6D-4C65-BB6D-29DB9B9D5FDD ("iCloud") (Legacy) 
Stats DAStatusReport 0x1dddcb00: { 
    DASRAccountType = BookmarkDAV; 
    DASRPersistentUUID = "2F8D6492-EB6D-4C65-BB6D-29DB9B9D5FDD"; 
    DASRTimeSpan = "36.25405502319336"; 
} 
DATaskManager <DACoreDAVTaskManager: 0x1ddcf400> state:Nominal 
Active exclusive task: (null) 
Queued exclusive tasks: (null) 
Independent tasks: (null) 
Held independent tasks: (null) 
Modal-held independent tasks: (null) 
Active queued task: (null) 
Queued tasks: (
) 
Active modal task: (null) 
Queued modal tasks: (null) 

Associated with account: <BookmarkDAVMobileMeChildDaemonAccount: 0x1e8f1670>: accountID 2F8D6492-EB6D-4C65-BB6D-29DB9B9D5FDD persistentUUID 2F8D6492-EB6D-4C65-BB6D-29DB9B9D5FDD 
======= 

AccountID: A7FA469A-9A67-4C93-8FF7-D60BC81AB75C ("Facebook") (Accountsd) 
Stats DAStatusReport 0x1e8a8d40: { 
    DASRDisplayName = Facebook; 
    DASRPersistentUUID = "A7FA469A-9A67-4C93-8FF7-D60BC81AB75C"; 
    DASRTimeSpan = "36.18959897756577"; 
} 
No Task Manager initted yet======= 

AccountID: 34DBB43F-29EB-4B7A-B8EC-6DBAD3CE87BE ("Facebook") (Accountsd) 
Stats DAStatusReport 0x1ddc1710: { 
    DASRDisplayName = Facebook; 
    DASRPersistentUUID = "34DBB43F-29EB-4B7A-B8EC-6DBAD3CE87BE"; 
    DASRTimeSpan = "36.06168901920319"; 
} 
No Task Manager initted yet======= 

_contactsLockHolder (null) 
_contactsWaiters (
) 
_waiterIDsExpectingContactsLock {(
)} 
_eventsLockHolder (null) 
_eventsWaiters (
) 
_waiterIDsExpectingEventsLock {(
)} 
_notesLockHolder (null) 
_notesWaiters (
) 
_waiterIDsExpectingNotesLock {(
)} 
_bookmarksLockHolder (null) 
_bookmarksWaiters (
) 
_waiterIDsExpectingBookmarksLock {(
)} 
Shared DAPowerAssertionManager object <DADaemonPowerAssertionManager: 0x1dd637c0>: 
Contexts asserting power: <NSCountedSet: 0x1ddf9fd0>() 
Contexts held aside: <NSCountedSet: 0x1ddf68f0>() 
Active Assertions: { 
} 

DARefreshManager enabled wrappers: 
Topic "com.me.cal" { 
    <DARefreshWrapper 0x1ddc14c0 for delegate <MobileCalDAVMobileMeChildDaemonAccount: 0x1ddc7740>: accountID 00D54212-0B42-4D2E-A7CF-517815381FCC persistentUUID 00D54212-0B42-4D2E-A7CF-517815381FCC: Push state 0, style Poll, last registration: (null)> 
} 
DARefreshManager wrappers: 
    <DARefreshWrapper 0x1e889c90 for delegate <MobileCalDAVChildDaemonAccount: 0x1e8e41f0>: accountID 939CC513-0027-4F6E-821B-CC14022CA49A persistentUUID 939CC513-0027-4F6E-821B-CC14022CA49A: Push state 0, style Poll, last registration: (null)> 
    <DARefreshWrapper 0x1dd28170 for delegate <CardDAVAgent: 0x1e8af410>: Push state 0, style Poll, last registration: (null)> 
    <DARefreshWrapper 0x1e829ae0 for delegate <BookmarkDAVAgent: 0x1e8af570>: Push state 0, style Poll, last registration: (null)> 
    <DARefreshWrapper 0x1ddeeac0 for delegate <MobileCalDAVChildDaemonAccount: 0x1e8eea60>: accountID C82E01E9-8299-49F2-8501-B0C31E05C8FC persistentUUID C82E01E9-8299-49F2-8501-B0C31E05C8FC: Push state 0, style Poll, last registration: (null)> 

有什麼建議?

謝謝你的時間。

+0

不確定...但這看起來很可疑:'demoMus。應用程序「沒有包標識符」在你的信息plist文件中是否有一個Bundle Identifier密鑰? –

+0

@PhillipMills是的,我沒有修改它 – cndv

+0

奇怪的東西...我收到警報通知「可以當我向我的應用程序添加一個名爲'Resources'的文件夾時,'沒有檢查應用程序包',即使我刪除了這個文件夾(在創建它之後),這個錯誤仍然存​​在,沒有出現在我的控制檯中。 – Robbie

回答

10

也嘗試做一個產品 - >清潔

+3

我有/有同樣的問題。乾淨沒有解決它對我來說,它出現後,我添加一個文件夾(不使用文件夾引用) ,然後將其刪除並使用文件夾引用重新添加它。重新啓動Xcode也沒有幫助。 –

1

問題出在您的軟件包名稱上。請確保您將捆綁ID分配給項目,目標和info.plist。我有同樣的問題,它添加捆綁ID後修復:)

33

對我來說,我複製了一個文件夾到名爲「資源」的Xcode 4.6.2。當Xcode詢問時,我爲任何添加的文件夾創建了文件夾引用。

每次我這樣做,我都必須轉到派生的應用程序目錄,並刪除我的項目的構建目錄以使其再次工作。

解決方案:請勿通過引用將文件夾複製到名爲「Resources」的Xcode中。將它重命名爲Resources以外的其他名稱。

非常惱人的錯誤。

+0

Xcode 5.1仍然存在問題 –

+1

我發現如果文件夾中包含單詞「Resources」=( – cowlinator

3

當我在xcode上替換'Resources'文件夾時,錯誤地選擇了下面的選項。

任何添加的文件夾

但正確選項應該是創建文件夾引用,

任何添加的文件夾

照顧創建組以上選項是導入爲了解決上述問題,節省了時間。 (這是得到這個錯誤的可能性之一)。

+0

使用「爲所有添加的文件夾創建組」,我已經解決了這個問題,我也選擇了「複製項目進入目標組的文件夾「。這兩個選項使所有的區別! – MStudios

2

我創建了一個名爲「Resources」組,然後選擇下的資源文件夾中的所有資源,並選擇「創建任何附加文件夾,文件夾引用」

-1

我有同樣的問題,有過度的空氣企業應用程序,它在更新到XCode 6.1之前正在工作。我跑下了通常的嫌疑犯(Bundle標識符,一個名爲「resources」的文件或目錄,Cleaning和Building等)。沒有骰子。

下面是修復我的問題 - 我重命名了我的應用程序的.plist文件,並將其複製到一個.plist文件中,該項目在XCode更新後正常工作。

重新編譯。工作。

我沒有做一行一行的比較,看看有什麼改變...因爲我已經浪費了一天的時間。也許以後。但不是今天。

希望這可以幫助別人不浪費一個浪費的下午。

0

我有兩個問題爲我解決了這個問題。 首先,我在XCodes複製文件部分中配置了複製ResourceRules.plist,另一方面,在複製文件部分(在我的情況下爲Storekit)中還添加了非第三方ios框架。消除該問題後解決。

1

取消選中目標成員中的.plist

相關問題