【发布时间】:2016-01-15 22:04:44
【问题描述】:
在我的设备上安装应用程序时出现安装失败,错误消息是无法检查应用程序包。模拟器工作正常!
经过几个小时的搜索,我引用了链接Xcode: Could not inspect the application package
所以我尝试了:
- 清理构建文件夹
- 清理驱动数据
- 将“Resources”文件夹重命名为“Res”/“Assets”
- 重启 Xcode
- 重启我的设备
但对我没有任何帮助,任何想法都会受到赞赏?
这里是设备日志:
10 月 17 日 14:39:33 rande-iPhone streaming_zip_conduit[229] :LaunchServices:为现有占位符 com.bobobanker.MBoBo 安装应用程序 在数据库中找不到> 10 月 17 日 14:39:33rande-iPhone streaming_zip_conduit[229]:LaunchServices:没有为 com.bobobanker.MBoBo 创建进度 在数据库中找不到>,因为它不是占位符。 10 月 17 日 14:39:33 安装了rande-iPhone [52] : 0x16e087000 -[MIClientConnection installPath:withOptions:completion:]: 安装“/var/mobile/Media/PublicStaging/MBoBo.app”类型的开发人员由 streaming_zip_conduit (pid 229) 10 月 17 日 14:39:33 rande-iPhone installd[52] : 0x16e12f000 -[MIBundle _validateWithError:]: 30: 无法从路径 /private/var/mobile/Library/Caches/com.apple 的包中加载 Info.plist。 mobile.installd.staging/temp.EOx51o/extracted/MBoBo.app 10 月 17 日 14:39:33 rande-iPhone installd[52] : 0x16e12f000 -[MIInstaller _bundlesAtURL:error:]: 无法为 file:///private/var/mobile/Library/Caches/com.apple.mobile 创建包.installd.staging/temp.EOx51o/extracted/MBoBo.app/:错误域 = MIInstallerErrorDomain 代码 = 35“无法从路径 /private/var/mobile/Library/Caches/com.apple.mobile 的包中加载 Info.plist .installd.staging/temp.EOx51o/extracted/MBoBo.app" UserInfo={LegacyErrorString=PackageInspectionFailed, FunctionName=-[MIBundle _validateWithError:], SourceFileLine=30, NSLocalizedDescription=无法从路径 /private/ 的包中加载 Info.plist var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.EOx51o/extracted/MBoBo.app} 10 月 17 日 14:39:34 rande-iPhone streaming_zip_conduit[229]:0x16e247000 __MobileInstallationInstallForLaunchServices_block_invoke222:返回错误错误域 = MIInstallerErrorDomain 代码 = 35“无法从路径 /private/var/mobile/Library/Caches/com 的包中加载 Info.plist .apple.mobile.installd.staging/temp.EOx51o/extracted/MBoBo.app" UserInfo={LegacyErrorString=PackageInspectionFailed, FunctionName=-[MIBundle _validateWithError:], SourceFileLine=30, NSLocalizedDescription=无法从包中加载 Info.plist路径 /private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.EOx51o/extracted/MBoBo.app} 10 月 17 日 14:39:34rande-iPhone streaming_zip_conduit[229]:错误:MobileInstallationInstallForLaunchServices 返回 nil 10 月 17 日 14:39:34 rande-iPhone streaming_zip_conduit[229]:__dispatch_source_read_socket_block_invoke:234:无法在文件中安装应用程序:///var/mobile/Media/PublicStaging/MBoBo.app/:错误域=LaunchServicesError Code=0“ (null)" UserInfo={Error=PackageInspectionFailed, ErrorDescription=无法从路径 /private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.EOx51o/extracted/ 的包中加载 Info.plist MBoBo.app}
【问题讨论】:
-
您的应用是否已安装在设备上?如果是,请删除它。
-
我试过了,但是不行
-
所以它在那里但没有删除?您确实删除了它但没有解决您的问题?
-
最后,我找到了我的问题的解决方案,这是因为项目中的另一个 Info.plist,我复制了包含该 Info.plist 文件的文件夹,并选择了“创建文件夹引用”!现在一切正常!
-
对我来说,删除构建阶段中的嵌入式框架链接对我有用,可能会像其他答案所建议的那样在构建中添加一个额外的
.plist文件。