“这个程序不能在这个时候被安装” CFBundleIdentifier错误(“This app co

2019-10-29 05:52发布

我遇到了“这个程序不能在这个时候被安装”的错误。 我尝试了好几种方法,如重装模拟器,删除在模拟器应用和清洁的Xcode项目。 然而,它仍然有此错误。 我转向CoreSimulator文件,发现由于的CFBundle标识的错误。 这是下面的日志:

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}}}

抱歉,我不能把它转化为代码格式。 下面是截图:

DBS.app/Frameworks/HandySwift.framework没有在其Info.plist中一个CFBundleIdentifier}}}表明HandySwift.framework没有在其Info.plist的一个CFBundleIdentifier。 我应该添加到属性列表? 这里是我的Info.plist的截图。

请帮我解决这个错误,非常感谢!

Answer 1:

我面临同样的问题。 经过长期的研究发现下面的解决方案。 请跟随它,我相信它会为你工作。

解决方案:1

抹掉所有内容和设置。

清理项目

解决方案:2

在InfoPlist.strings改变CFBundleShortVersionString匹配在一个固定的Info.plist这对我来说。 我不得不使用模拟器的“抹掉所有内容和设置”进行此更改后。

解决方案:3

我删除了项目吊舱和再次进行安装它,它令人惊讶的正常工作。

对于删除荚文件:

pod deintegrate

对于安装荚:

pod install

然后再次运行您的项目。



Answer 2:

使目标会员抽动标志

卸载你的吊舱文件并重新安装荚文件



Answer 3:

我也满足了这个问题。 为什么我遇到这个错误的原因是,我改变了包ID只有项目的菜单一般。 此外,还必须改变它的测试和UiTest了。 之后,我改变他们,问题就解决了。



文章来源: “This app could not be installed at this time” CFBundleIdentifier error