我遇到了“这个程序不能在这个时候被安装”的错误。 我尝试了好几种方法,如重装模拟器,删除在模拟器应用和清洁的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的截图。
请帮我解决这个错误,非常感谢!