Bug 17437 - [iOS 5.1]Getting exception 'MonoTouch.Foundation.MonoTouchException' for iOS Sample AsyncDownloadImage
Summary: [iOS 5.1]Getting exception 'MonoTouch.Foundation.MonoTouchException' for iOS ...
Alias: None
Product: iOS
Classification: Xamarin
Component: Samples ()
Version: 7.1.0.x
Hardware: PC Mac OS
: Normal normal
Target Milestone: Untriaged
Assignee: Vincent Dondain [MSFT]
Depends on:
Reported: 2014-01-27 03:50 UTC by narayanp
Modified: 2014-06-11 15:28 UTC (History)
4 users (show)

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:

Description narayanp 2014-01-27 03:50:10 UTC
Steps to reproduce:
1. Open iOS sample 'AsyncDownloadImage'.
2. Run the sample on iOS 5.1 device.

Actual result: Application upload to device and get crashed on iOS 5.1. This is working fine on all other devices.

Expected Result: Application should not get crashed on iOS 5.1 device

Environment details
Mountain Lion and Maverick
Xcode 5.0 and above
X.S 4.2.3(build 51)

On Lion it does not build successfully because it does not run on below Xcode 5.

Supplement info:
Error details: https://gist.github.com/AkhileshKumar01/2c393a82e0ff00cdcd91
iOS Device Log: https://gist.github.com/AkhileshKumar01/8f2135bf0b2b39da9531

Regression Status:
NOT A REGRESSION: Same behavior happening with stable X.iOS
Comment 1 Sebastien Pouliot 2014-01-27 09:27:29 UTC
> Objective-C exception thrown.  Name: NSInternalInconsistencyException Reason: The NIB data is invalid.

Looks like the sample XIB file has been updated and is not backward compatible with 5.1 anymore. 

IOW sample issue.
Comment 2 Dani 2014-02-08 11:47:58 UTC
I came here while looking for a solution to
> Objective-C exception thrown.  Name: NSInternalInconsistencyException Reason: The NIB data is invalid.
in my own project.

Finally found a solution here:
I had to go thru all xibs and and change their "Build for" property to iOS5 in IB.

I know its not really related to this Bug, but i am pretty sure other people with my problem might come this way...

You can "moderate-it-away" if its in violates any rules.

Comment 3 Vincent Dondain [MSFT] 2014-06-11 15:28:35 UTC
Since the XIB file has been updated, the application runs perfectly on iOS 5.1.

As the expecting behavior you're seeing is correct, I'm RESOLVING it as FIXED.