Bug 1842 - UIDeviceFamily uses a string array when it should be a integer array
Summary: UIDeviceFamily uses a string array when it should be a integer array
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: iOS add-in ()
Version: 2.8.1
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: ---
Assignee: Alan McGovern
URL:
Depends on:
Blocks:
 
Reported: 2011-11-02 16:49 UTC by Chris Hardy [MSFT]
Modified: 2011-11-02 18:54 UTC (History)
1 user (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and 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 Links.

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.

Related Links:
Status:
RESOLVED FIXED

Comment 1 Mikayla Hutchinson [MSFT] 2011-11-02 17:20:06 UTC
This appears to be a regression since 2.6.
Comment 2 Alan McGovern 2011-11-02 18:10:58 UTC
We have a bunch of Info.plists out there all with a string array as the key. Apparently iOS accepts this as this does not cause issues on the emulator, device or with app submissions. If it did, we would've found out by now. 

If iOS does really accept this, there's probably no point in writing another monotouch project migrator to fix everyones info.plists. Nor is there any point in putting a hack to rewrite that section if a PListArray<string> is found instead of a PListArray<int>.

As such, i think the simplest solution is to just alter the section of code which creates the string array to instead create an int array and leave it at that. Does this sound reasonable?
Comment 3 Chris Hardy [MSFT] 2011-11-02 18:14:24 UTC
Yup, that makes sense to me. It's not breaking anything but it's not as per the docs.
Comment 4 Alan McGovern 2011-11-02 18:54:15 UTC
We parse both Array<string> and Array<int> now but only generate Array<int>. I also updated the templates to use <integer> instead of <string> which matches what Xcode generates.