[MonoTouch] Error merging Info.plist (The given key was not present in the dictionary)

Hugo Logmans hlogmans at edb.nl
Wed Dec 7 04:35:00 EST 2011


Hi all,

i'm using MD 2.6 for building iOS apps. When building against iOS SDK 4.3,
all works well. But when I compile against SDK 5.0 I get the below error
(using Mono 10.2.6 and Monotouch 5.0.2). As only SDK 5 apps are allowed in
the appstore, I cannot submit my app :(

In some places in the docs there are references to 'newer MD versions', but
nowhere I can find which versions the documenter has in mind. Upgrading to
MD 2.8 is not a short-term option because I use MD in combination with
Delphi Prism. So my main question is: should I be able to build against SDK
5 with MD2.6? Maybe I need to add a key myself to allow building as a
workaround?

I hope someone can give some pointers as I really want my app to the
appstore soon...

(PS the Delphi Prism guys say they don't do anything with the plists for
building, so it might be a compatibility issue between MD 2.6 and MT 5)...

Error - 10:23:00 AM - Error merging Info.plist
System.Collections.Generic.KeyNotFoundException: The given key was not
present in the dictionary.
  at
System.Collections.Generic.Dictionary`2[System.String,MonoDevelop.MacDev.Plist.PlistObjectBase].get_Item
(System.String key) [0x000a8] in
/private/tmp/monobuild/build/BUILD/mono-2.10.6/mcs/class/corlib/System.Collections.Generic/Dictionary.cs:150 
  at MonoDevelop.MacDev.Plist.PlistDictionary.get_Item (System.String key)
[0x00000] in
/Users/michael/Mono/md-2-6/extras/MonoDevelop.IPhone/MonoDevelop.MacDev/MonoDevelop.MacDev.Plist/PlistDictionary.cs:118 
  at MonoDevelop.IPhone.IPhoneFramework.GetSdkSettings (IPhoneSdkVersion
sdk) [0x00097] in
/Users/michael/Mono/md-2-6/extras/MonoDevelop.IPhone/MonoDevelop.IPhone/IPhoneFramework.cs:131 
  at
MonoDevelop.IPhone.IPhoneBuildExtension+<UpdateInfoPlist>c__AnonStorey8.<>m__4
(MonoDevelop.MacDev.Plist.PlistDocument doc) [0x003ad] in
/Users/michael/Mono/md-2-6/extras/MonoDevelop.IPhone/MonoDevelop.IPhone/IPhoneBuildExtension.cs:453 
  at MonoDevelop.MacDev.MacBuildUtilities.CreateMergedPlist
(IProgressMonitor monitor, MonoDevelop.Projects.ProjectFile template,
System.String outPath, System.Func`2 merge) [0x000af] in
/Users/michael/Mono/md-2-6/extras/MonoDevelop.IPhone/MonoDevelop.MacDev/MacBuildUtilities.cs:198 

--
View this message in context: http://monotouch.2284126.n4.nabble.com/Error-merging-Info-plist-The-given-key-was-not-present-in-the-dictionary-tp4168320p4168320.html
Sent from the MonoTouch mailing list archive at Nabble.com.


More information about the MonoTouch mailing list