12

Since, I upgraded to xCode 9 on my Mac I get the following error when compiling:

Error ibtool exited with code 1
Error Compiling IB documents for earlier than iOS 7 is no longer supported.

As suggested here I don't have a project setting in visual studio (on windows) with an option "Build for: iOS 10 and later".

Also, I'm working on a Xamarin.Forms project, so I don't have any storyboards. How can I solve this issue?

[EDIT] I'm working with the Visual Studio IDE on Windows. I use the mac only for building the iOS Apps.

Briefkasten
  • 1,964
  • 2
  • 25
  • 53

3 Answers3

27

The problem is that your deployment target in info.plist is set to 6.0. Set it to at least 7.0 and you will be fine.

AQuirky
  • 4,691
  • 2
  • 32
  • 51
  • 1
    My Deployment target is set to 8.0 and I still get this issue. This is what solved it for me: https://stackoverflow.com/questions/44429415/illegal-configuration-compiling-ib-documents-for-earlier-than-ios-7-is-no-longe/44430034#44430034 – Christo Nel Oct 24 '17 at 06:00
2

I am going to assume that you have an older LaunchScreen.storyboard within your Xamarin.iOS application project.

I do not know how to edit those setting within the VS4M Storyboard editor, so right click on the LaunchScreen.storyboard and open it with the Xcode Interface Builder.

In the right-hand column, the File Inspector should be the default view, change it as shown in the SO answer that you linked:

Do a File / Save, exit Xcode, and do a clean and re-build your solution. I had to do this with a couple of old Xamarin.Forms solutions.

enter image description here

SushiHangover
  • 73,120
  • 10
  • 106
  • 165
0

I met the same issue. You just go to storyboard, Interface Builder Document -> choose a version build for. That fix my issue. Goodluck! interface

enter image description here

MRizwan33
  • 2,723
  • 6
  • 31
  • 42