0

I just updated XCode 5 with 7.1 and i can't build anymore because of the next failure

UISplitviewController is only available for iPad applications

I have an universal app. The App version starts from 6.0 till 7.0. I tried everything from architecture to schemes and Main interface settings but nothing works. Does anyone have this same problem with the new iOS SDK 7.1 ?

rmaddy
  • 314,917
  • 42
  • 532
  • 579
FreshApps
  • 41
  • 2
  • 3
  • 1
    UISplitviewController was always only for ipad, you can read it in apple documentation https://developer.apple.com/library/ios/documentation/uikit/reference/UISplitViewController_class/Reference/Reference.html – Sergey92zp Mar 11 '14 at 12:52
  • it always worked, but since i updated xcode it gives me this error message.. – FreshApps Mar 11 '14 at 12:54

1 Answers1

0

I've just tried to do all of you mentioned (created Universal App via XCode5.1 and added UISplitViewController) and everything works well.

Check, maybe you have some option in LLVM 5.1 settings (Target->Build Settings) like Treat Warnigns as Erroros, etc.

enter image description here

Krivoblotsky
  • 1,492
  • 11
  • 17
  • 1
    No it still gives me the same error "Class Unavailable". I have a XCode 5.0 with the same project and it builds with no problems. I think it's within the iOS SDK 7.1. I even saw in the component table in the storyboards that there is no UISplitViewController is available in the storyboards – FreshApps Mar 11 '14 at 14:33
  • Hm, seems to be you are trying to use UISplitViewController in storyboard with device family "iPhone". I'm having 2 storyboards: Storyboard~iphone and Storyboard~ipad. UISplitViewController is present in iPad and absent in iPhone one. – Krivoblotsky Mar 11 '14 at 14:41
  • you should put your solution as an answer. – Raptor Mar 12 '14 at 03:15