“目前无法安装此应用" CFBundleIdentifier错误 [英] "This app could not be installed at this time" CFBundleIdentifier error

查看:481
本文介绍了“目前无法安装此应用" CFBundleIdentifier错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到了此时无法安装此应用程序"错误.我尝试了几种方法,例如重新加载模拟器,在模拟器中删除应用程序以及清理Xcode项目.但是,它仍然有此错误.我转向CoreSimulator文件,由于CFBundle标识符而发现错误.这是下面的日志:

I encountered the "This app could not be installed at this time" error. I have tried several methods such as reloading the simulator, deleting the app in the simulator and cleaning the Xcode project. However, it still has this error. I turned to the CoreSimulator file and found an error because of the CFBundle Identifier. Here is the log below:

Apr 26 18:49:49 kevins-air com.apple.dt.Xcode[27210] <Error>: installApplication:withOptions:error:: Error Domain=IXUserPresentableErrorDomain Code=1 "This app could not be installed at this time." UserInfo={NSLocalizedDescription=This app could not be installed at this time., NSUnderlyingError=0x7faad5709050 {Error Domain=MIInstallerErrorDomain Code=12 "Bundle at path /Users/kevinlauofficial/Library/Developer/CoreSimulator/Devices/0EB4D69B-61C8-468B-9D3D-2D6761E1D9D6/data/Library/Caches/com.apple.mobile.installd.staging/temp.IMKy1v/extracted/DBS.app/Frameworks/HandySwift.framework did not have a CFBundleIdentifier in its Info.plist" UserInfo={LegacyErrorString=MissingBundleIdentifier, FunctionName=-[MIBundle _validateWithError:], SourceFileLine=45, NSLocalizedDescription=Bundle at path /Users/kevinlauofficial/Library/Developer/CoreSimulator/Devices/0EB4D69B-61C8-468B-9D3D-2D6761E1D9D6/data/Library/Caches/com.apple.mobile.installd.staging/temp.IMKy1v/extracted/DBS.app/Frameworks/HandySwift.framework did not have a CFBundleIdentifier in its Info.plist}}}

对不起,我无法将其转换为代码格式.这是屏幕截图:

Sorry I couldn't turn it to code format. Here is a screenshot:

DBS.app/Frameworks/HandySwift.framework在其Info.plist中没有CFBundleIdentifier}}}表明,HandySwift.framework在其Info.plist中没有CFBundleIdentifier.我应该在属性列表中添加什么? 这是我的Info.plist的屏幕截图.

DBS.app/Frameworks/HandySwift.framework did not have a CFBundleIdentifier in its Info.plist}}} shows that the HandySwift.framework did not have a CFBundleIdentifier in its Info.plist . What should I add to the property list? Here is a screenshot of my Info.plist.

请帮助我解决此错误,非常感谢!

Please help me fix this error, thanks a lot!

推荐答案

我遇到了同样的问题.经过长期研究,找到以下解决方案.请遵循它,我相信它会为您工作.

I have faced same issue. After long research find below solution. Please follow it, I am sure it will work for you.

解决方案:1

清除所有内容和设置.

Erase All content and settings.

清理您的项目

解决方案:2

在InfoPlist.strings中更改CFBundleShortVersionString以匹配 info.plist中的那个为我解决了这个问题.我不得不使用模拟器的 进行此更改后,擦除所有内容和设置".

Changing the CFBundleShortVersionString in InfoPlist.strings to match the one in info.plist fixed this for me. I had to use the simulator's "Erase All Content and Settings" after making this change.

解决方案:3

我从项目中删除了Pod,然后又重新安装了它,令人惊讶的是 效果很好.

I deleted pods from project and installed it again and it surprisingly works fine.

对于删除pod文件:

pod deintegrate

对于安装吊舱:

pod install

然后再次运行您的项目.

这篇关于“目前无法安装此应用" CFBundleIdentifier错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆