Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report on
Developer Community or GitHub with
your current version information, steps to reproduce, and relevant error
messages or log files if you are hitting an issue that looks similar to
this resolved bug and you do not yet see a matching new report.
MonoDevelop is losing custom changes to Info.plist.
I have 3 different versions of my application that are built from the same code base. I place some information into the Info.plist that I extract at runtime.
This is saved:
ASVersionCheckUrl (string) http://wheresthekaraoke.com/version/wtkjams-appstore.txt
This is lost:
ASVersionCheckUrl (string) http://wheresthekaraoke.com/version/wtkjams-lite-appstore.txt
This is lost:
ASVersionCheckUrl (string) http://wheresthekaraoke.com/version/wtkjams-ke-appstore.txt
How are you making these changes?
I initially did it by opening the plist with a text editor and just adding the .xml.
When I saw that Mono was stripping it out on open, then I tried editing using Mono's Info.plist editor the Advanced tab.
did the Advanced tab editor work? Can you show me what your xml looked like (in the case where it got stripped out)?
no. the advanced tab editor doesn't work.
Try the text from initial post where I say "This is lost".
It was unclear to me whether it worked or not, you just said that you tried it (which, in hindsight, likely suggested it didn't work or you probably wouldn't have submitted the bug report - so for that, I'm sorry, I can be a little slow sometimes).
Could you paste the raw xml of the Info.plist that you modified via text editor? It's just that I'm so far unable to reproduce it and don't know if it is the specific key (maybe we have broken handling of some key or another) or what.
I'd really like to get this fixed as quickly as possible (it seems pretty important that our Info.plist editor work properly), but without a test case, it's a lot harder.
Hmmm, it occurred to me that *perhaps* (and it's just a wild guess) that maybe the line endings in the text varied between \n and \r\n? Perhaps the XML parser that we used to use for loading Info.plist files was broken in that respect (MonoDevelop 3.0.4 uses Apple's APIs for parsing plist files, which might have fixed this).
bumping the priority on this
Did you try adding each of the initial examples to your Info.plist using the MonoDevelop editor?
Enter them in using ASVersionCheckUrl1, ASVersionCheckUrl2, ASVersionCheckUrl3, close the dialog and then reopen, see what is still there.
I'm pedal to the metal on my Mono Android project and can't go digging in it right now (very limited time).
Not yet, I'm home sick with the flu - but I wanted to bump the priority on this so that when I get back to work it will be at the top of my list of things to look into.
Good luck on your Mono for Android project!
I just tried my initial example using a MonoMac project with MonoDevelop 126.96.36.199 and Xcode 4.4.1 (1488) with no MonoTouch. It worked correctly for all 3 URLs. I opened/closed several times and it is properly retaining the properties.
This appears to be fixed now that we switched away from using our own XML parser on the Info.plist files and are now using Apple's plist loader.
188.8.131.52 uses the MonoMac binding for the plist loader APIs.
I don't seem to be able to reproduce anymore.