I try to build an iPhone app with command line.
I have a problem on Info.plist file.
XCode converts a XML file MyApp-Info.plist to a binary file Info.plist, like this :
builtin-infoPlistUtility MyApp-Info.plist -genpkginfo <path>/MyApp.app/PkgInfo -expandbuildsettings -format binary -platform iphoneos -resourcerulesfile <path>/MyApp.app/ResourceRules.plist -o <path>/MyApp.app/Info.plist
Today, I compile Info.plist with XCode and then I can sign MyApp.app with codesign successfully.
I try to compile Info.plist with plutil tool, like this :
plutil -convert binary1 <path>/MyApp.app/Info.plist
It works, but then codesign failed with error :
object file format invalid or unsuitable
I think I need other options for plutil utility but I don’t know which ones.
Any help please ?
Im quite sure that the
Info.plistfile does not need to be in binary format to work. Does work if you just leave it as standard XML file?I have seen this error message when the
CFBundleResourceSpecificationkey was missing, should probably have the valueResourceRules.plist. It also seams to happen if theCFBundleExecutablekey is missing.A good way to see which keys that are used in a resulting app bundle is to do this:
Info.plistfile and inspect itUse
plutilif you want to convert to resulting binary plist to XML format.