Ios &引用;此时无法安装此应用程序";CFBundleIdentifier错误
我遇到了“此时无法安装此应用”错误。我尝试过几种方法,比如重新加载模拟器、删除模拟器中的应用程序以及清理Xcode项目。然而,它仍然有这个错误。我转到CoreSimulator文件,发现一个错误,因为Cbundle标识符。以下是日志:Ios &引用;此时无法安装此应用程序";CFBundleIdentifier错误,ios,swift,xcode,swift4,cfbundleidentifier,Ios,Swift,Xcode,Swift4,Cfbundleidentifier,我遇到了“此时无法安装此应用”错误。我尝试过几种方法,比如重新加载模拟器、删除模拟器中的应用程序以及清理Xcode项目。然而,它仍然有这个错误。我转到CoreSimulator文件,发现一个错误,因为Cbundle标识符。以下是日志: Apr 26 18:49:49 kevins-air com.apple.dt.Xcode[27210] <Error>: installApplication:withOptions:error:: Error Domain=IXUserPresen
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}}}
Apr 26 18:49:49 kevins air com.apple.dt.Xcode[27210]:installApplication:withOptions:error::error Domain=IXUserPresentableErrorDomain code=1“此时无法安装此应用程序。”UserInfo={NSLocalizedDescription=此时无法安装此应用程序,NSUnderlyingError=0x7faad5709050{Error Domain=miinstallerrordomain Code=12“路径/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中的捆绑包Info.plist“UserInfo”中没有CbundleIdentifier={LegacyErrorString=MissingBundleIdentifier,FunctionName=-[MIBundle\u 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.Frameworks在其Info.plist}中没有CbundleIdentifier}}
很抱歉,我无法将其转换为代码格式。以下是屏幕截图:
DBS.app/Frameworks/HandySwift.framework在其Info.plist}}中没有CbundleIdentifier。显示HandySwift.framework在其Info.plist中没有CbundleIdentifier。我应该在属性列表中添加什么?
这是我的Info.plist的截图
请帮我修复这个错误,非常感谢 制作目标会员tic标记
或卸载pod文件并重新安装pod文件我也遇到了同样的问题。经过长时间的研究,我们找到了以下解决方案。请跟随它,我相信它会为你工作 解决方案:1 删除所有内容和设置 清理你的项目 解决方案:2 更改InfoPlist.strings中的CbundleShortVersionString以匹配 info.plist中的那个为我解决了这个问题。我不得不使用模拟器的 进行此更改后,“删除所有内容和设置” 解决方案:3 我从项目中删除了pod,并再次安装了它,结果令人惊讶 很好 对于删除pod文件:
pod deintegrate
对于安装吊舱:
pod install
然后再次运行您的项目。我也遇到了这个问题。我遇到此错误的原因是我仅在项目的“常规”菜单中更改了bundle Id。您还必须将其更改为Test和UiTest。在我更改它们之后,问题就解决了。XCode:11.3.1 椰子荚:1.9.1 以前的解决方案都不适合我 这应该与pod
info.plist
文件设置有关。您可能希望在XCode的导航面板中选择Pods目录,然后为每个pod框架设置信息列表文件
如果出现任何问题,将有一个按钮选择info.plist
文件
只需单击该按钮并从弹出文件对话框导航到Pods目录的底部,然后选择项目的Pods info.plist
文件。
它将自动为pods框架分配正确的标识,如上图所示。这将解决问题。对我来说,“删除派生数据”并重新运行project解决了这个问题解决方案3解决了这个问题。谢谢清除模拟器和类似的操作并不像其他stackoverflow讨论中提到的那样有效。