Search code examples
iosviewcontrollersimulatormaster-detailxcode-6.2

XCode 6.2 bug on Master/Detail project template?


This happens also on a blank Master/Detail project when using XCode 6.2 beta.

In other words: it works on the simulator but gives me the error below when I run it on an iPhone 5 with iOS 7.1 installed (I don't have any other device to test it on).

Below is what I get adding the exception breakpoint.

enter image description here

I found the following previous Q/A but it does not seem to happen in the same case as mine. Why would it work on the simulator?

Is this an XCode 6.2 bug? Can anyone reproduce it?


Solution

  • The crash is because you are trying to use a UISplitViewController on an iPhone with iOS 7. UISplitViewController was only available on the iPhone from iOS 8+. Prior to iOS 8, UISplitViewController was only available in the iPad.