Xcode错误信息:“无法检查应用程序包”

我试图在设备上运行我的应用程序,但我收到以下错误消息“无法检查应用程序包”,该应用程序已成功运行在设备上,但随后停止,它仍然成功build立。 其他应用程序运行良好。

这是控制台的错误。

Dec 1 1 14:08:13 Marafeti kernel [0]:lockbot [567]内置configuration文件:gputoolsd(沙盒)Dec 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.app“加载的应用程序信息字典没有包标识符Dec 1 14:08:28 Marafeti installd [31]:0x2ff7c000 stage_package:无法在/var/tmp/install_staging.44DhXc/demoMus.app 12月1 14:08:28 Marafeti installd [31]:0x2ff7c000移动软件包MobileInstallationInstall_Server:不能安装失败Dec 1 14:08:29 Marafeti mobile_installation_proxy [572]:0x39dbeb88 MobileInstallationInstall:失败,-1 -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 | D A | Note | AccountID:E1B4940D-E02C-4ECF-B6AC-7B0DB8BAAA52(“iCloud”)(Legacy)Stats DAStatusReport 0x1e8e9d80:{DASRAccountType = 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)> 

有什么build议?

感谢您的时间。

对我而言,我将一个文件夹复制到名为“Resources”的Xcode 4.6.2中。 当Xcode问,我创build了任何添加的文件夹的文件夹引用。

每当我这样做,我将不得不转到派生的应用程序目录,并删除我的项目的生成目录,让它再次运作。

解决scheme:不要通过引用将名称为“Resources”的文件夹复制到Xcode中。 将其重命名为“资源”以外的其他内容。

非常恼人的错误。

也可以尝试做一个Product-> Clean

当我replace了xcode上的'Resources'文件夹时,错误地select了下面的选项。

为任何添加的文件夹创build文件夹引用

但正确的select应该是,

为任何添加的文件夹创build组

注意上述选项对于节省时间和解决上述问题非常重要。 (这是得到这个错误的可能性之一)。

我创build了一个名为“ Resources ”的组,然后selectResources文件夹下的所有资源,然后select“Create folder references for any added folders”

问题在于你的软件包名称。 确保你分配一个捆绑ID到项目,目标和info.plist。 我有同样的问题,它添加捆绑ID后修复:)

Swift框架

对我来说,问题是使用自定义的Swift框架的文件结构类似于以下内容:

在这里输入图像说明

摘自: https : //developer.apple.com/library/mac/documentation/MacOSX/Conceptual/BPFrameworks/Concepts/FrameworkAnatomy.html

事实certificate,在Swift中,正确的框架结构如下所示:

在这里输入图像说明

在将目录结构更改为后者之后,所有操作都按预期工作

取消选中.plist中的目标成员

我有两个问题解决了我的问题。 首先,我已经在XCodes复制文件部分中configuration了复制ResourceRules.plist,另一方面,在复制文件部分(在我的情况下是Storekit)中还添加了非第三方ios框架。 解决之后解决了这个问题。

我有同样的问题,与一个空中的企业应用程序,这是在更新到XCode 6.1之前工作。

我跑下了通常的嫌疑犯(Bundle标识符,一个名为“resources”的文件或目录,Cleaning and Building等)。 没有骰子。

这是什么解决了我的问题 – 我重命名我的应用程序的.plist文件,并复制到一个项目的.plist文件,在XCode更新后工作正常。

重新编译。 工作。

我没有做一行一行的比较,看看有什么改变…因为我已经浪费了一天的时间。 也许以后。 但不是今天。

希望这可以帮助别人不浪费一个浪费的下午。