Bug 41779 - IBTool execution FAILED while building the project
Summary: IBTool execution FAILED while building the project
Alias: None
Product: iOS
Classification: Xamarin
Component: MSBuild ()
Version: XI 9.10 (C8)
Hardware: Macintosh Mac OS
: High normal
Target Milestone: 10.0.0 (C8)
Assignee: Bugzilla
Depends on:
Reported: 2016-06-14 00:16 UTC by Aktar
Modified: 2016-07-01 11:34 UTC (History)
3 users (show)

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

The app's launch screen (2.24 KB, application/xml)
2016-06-14 00:16 UTC, Aktar
my solution (2.00 MB, application/zip)
2016-06-15 08:06 UTC, Aktar

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 Aktar 2016-06-14 00:16:12 UTC
Created attachment 16308 [details]
The app's launch screen

This error occurred after the installation of the last Xamarin.iOS build (alpha channel).
It has no message associated with it :
I assume the nib was generated from "MyProject.iOS/Resources/LaunchScreen.xib" the xib attached to this post.

obj/iPhoneSimulator/Debug/ibtool/LaunchScreen.nib: error : 
    Task "IBTool" execution -- FAILED
    Done building target "_CoreCompileInterfaceDefinitions" in project "/Users/aktar/Documents/applications/src/mysolution/MyProject.iOS/MyProject.iOS.csproj".-- FAILED
Done building project "/Users/aktar/Documents/applications/src/mysolution/MyProject.iOS/MyProject.iOS.csproj".-- FAILED



/Users/aktar/Documents/applications/src/mysolution/MyProject.iOS/MyProject.iOS.csproj (Build) ->
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/iOS/Xamarin.iOS.Common.targets (_CoreCompileInterfaceDefinitions target) ->

    obj/iPhoneSimulator/Debug/ibtool/LaunchScreen.nib: error : 
     1 Error(s)

Additional Information:
Xamarin Studio Business
Version 6.1 (build 4963)
Installation UUID: a3c95a91-ddc1-4bed-8905-cafe7ed7db25
	Mono 4.4.0 (mono-4.4.0-branch/fcf7a6d) (64-bit)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 404000148


Version: 0.33.1
Location: /Applications/Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler

Apple Developer Tools
Xcode 7.3.1 (10188.1)
Build 7D1014

Version: (Xamarin Business)
Hash: ef65ca5
Branch: master
Build date: 2016-06-07 21:27:36-0400

Version: (Xamarin Business)
Android SDK: /Users/aktar/Library/Developer/Xamarin/android-sdk-macosx
	Supported Android versions:
		4.0.3  (API level 15)
		4.1    (API level 16)
		4.2    (API level 17)
		4.3    (API level 18)
		4.4    (API level 19)
		4.4.87 (API level 20)
		5.0    (API level 21)
		5.1    (API level 22)
		6.0    (API level 23)

SDK Tools Version: 25.1.6
SDK Platform Tools Version: 23.1
SDK Build Tools Version: 23.0.0

Java SDK: /usr
java version "1.8.0_25"
Java(TM) SE Runtime Environment (build 1.8.0_25-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode)

Android Designer EPL code available here:

Xamarin Android Player
Version: 0.6.5
Location: /Applications/Xamarin Android Player.app

Version: (Xamarin Business)

Xamarin Inspector
Hash: d7fade8
Branch: master
Build date: Fri Jun 10 20:32:15 UTC 2016

Build Information
Release ID: 601004963
Git revision: b37c52e0249c009e308eb144957ac97d1003ec0e
Build date: 2016-06-10 12:00:02-04
Xamarin addins: db4bae9b11a32d16ee009695cd1bfa36455187b0
Build lane: monodevelop-lion-cycle8-preview2

Operating System
Mac OS X 10.11.5
Darwin MacBook-Pro-de-Aktar.local 15.5.0 Darwin Kernel Version 15.5.0
    Tue Apr 19 18:36:36 PDT 2016
    root:xnu-3248.50.21~8/RELEASE_X86_64 x86_64

Enabled user installed addins
Xamarin Inspector
Comment 1 Jeffrey Stedfast 2016-06-14 19:21:49 UTC
You might just need to clean the build and rebuild.

I'm not able to reproduce any IBTool errors on my end.
Comment 2 Aktar 2016-06-15 08:03:58 UTC
>>>You might just need to clean the build and rebuild.

I can reproduce the bug even with a new project.
And it looks like it can occur for storyboard files too.

There is how to reproduce the bug:
 -1- Switch to the beta channel and create your project (I can compile my app with this version, but it was created before).
XamarinStudio 6.0.0
Mono Framework MKD

 -2- Switch back to the Alpha channel and try to compile the app for iOS Simulator.

I will attach my new project here.

There is the error message I have with the storyboard file :

Building Solution: MySolution (Debug|iPhoneSimulator)

Build started 15/06/2016 09:43:41.
Project "/Users/aktar/Documents/applications/src/aktar/MySolution/MyProj.iOS/MyProj.iOS.csproj" (Build target(s)):
	Target PrepareForBuild:
		Configuration: Debug Platform: iPhoneSimulator
		Created directory "bin/iPhoneSimulator/Debug/"
		Created directory "obj/iPhoneSimulator/Debug/"
	Target _DetectAppManifest:
		FindItemWithLogicalName Task
		  LogicalName: Info.plist
		  ProjectDir: /Users/aktar/Documents/applications/src/aktar/MySolution/MyProj.iOS
		  ResourcePrefix: Resources
	Target _DetectSdkLocations:
		DetectSdkLocations Task
		  TargetFrameworkIdentifier: Xamarin.iOS
		  TargetArchitectures: i386
		  SdkVersion: 9.3
		  XamarinSdkRoot: /Library/Frameworks/Xamarin.iOS.framework/Versions/Current
		  SdkRoot: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.3.sdk
		  SdkDevPath: /Applications/Xcode.app/Contents/Developer
		  SdkUsrPath: /Applications/Xcode.app/Contents/Developer/usr
		  SdkPlatform: iPhoneSimulator
		  SdkIsSimulator: True
	Target _CoreCompileInterfaceDefinitions:
		IBTool Task
		  AppManifest: Info.plist
		  IntermediateOutputPath: obj/iPhoneSimulator/Debug/
		  IsWatchApp: False
		  IsWatch2App: False
		  IsAppExtension: False
		  ProjectDir: /Users/aktar/Documents/applications/src/aktar/MySolution/MyProj.iOS
		  ResourcePrefix: Resources
		  SdkBinPath: /Applications/Xcode.app/Contents/Developer/usr/bin
		  SdkPlatform: iPhoneSimulator
		  SdkRoot: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.3.sdk
		  SdkVersion: 9.3
		Tool /Applications/Xcode.app/Contents/Developer/usr/bin/ibtool execution started with arguments: --errors --warnings --notices --output-format xml1 --minimum-deployment-target 7.0 --target-device iphone --target-device ipad --auto-activate-custom-fonts --sdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.3.sdk --compilation-directory /Users/aktar/Documents/applications/src/aktar/MySolution/MyProj.iOS/obj/iPhoneSimulator/Debug/ibtool /Users/aktar/Documents/applications/src/aktar/MySolution/MyProj.iOS/Main.storyboard
		Tool /Applications/Xcode.app/Contents/Developer/usr/bin/ibtool execution started with arguments: --errors --warnings --notices --output-format xml1 --minimum-deployment-target 7.0 --target-device iphone --target-device ipad --auto-activate-custom-fonts --sdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.3.sdk --compilation-directory /Users/aktar/Documents/applications/src/aktar/MySolution/MyProj.iOS/obj/iPhoneSimulator/Debug/ibtool /Users/aktar/Documents/applications/src/aktar/MySolution/MyProj.iOS/Resources/LaunchScreen.xib
		Tool /Applications/Xcode.app/Contents/Developer/usr/bin/ibtool execution started with arguments: --errors --warnings --notices --output-format xml1 --minimum-deployment-target 7.0 --target-device iphone --target-device ipad --auto-activate-custom-fonts --sdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.3.sdk --link /Users/aktar/Documents/applications/src/aktar/MySolution/MyProj.iOS/obj/iPhoneSimulator/Debug/ibtool-link /Users/aktar/Documents/applications/src/aktar/MySolution/MyProj.iOS/obj/iPhoneSimulator/Debug/ibtool/Main.storyboardc /Users/aktar/Documents/applications/src/aktar/MySolution/MyProj.iOS/obj/iPhoneSimulator/Debug/ibtool/LaunchScreen.nib
obj/iPhoneSimulator/Debug/ibtool/Main.storyboardc: error : 
	Task "IBTool" execution -- FAILED
	Done building target "_CoreCompileInterfaceDefinitions" in project "/Users/aktar/Documents/applications/src/aktar/MySolution/MyProj.iOS/MyProj.iOS.csproj".-- FAILED
Done building project "/Users/aktar/Documents/applications/src/aktar/MySolution/MyProj.iOS/MyProj.iOS.csproj".-- FAILED


/Users/aktar/Documents/applications/src/aktar/MySolution/MyProj.iOS/MyProj.iOS.csproj (Build) ->
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/iOS/Xamarin.iOS.Common.targets (_CoreCompileInterfaceDefinitions target) ->

	obj/iPhoneSimulator/Debug/ibtool/Main.storyboardc: error : 

	 0 Warning(s)
	 1 Error(s)

Time Elapsed 00:00:02.4138320

---------------------- Fini ----------------------

Xamarin Inspector Integration
	Enabled for project: yes
	Hash: d7fade8

Construire : 1 erreur, 0 avertissement
Comment 3 Aktar 2016-06-15 08:06:31 UTC
Created attachment 16337 [details]
my solution
Comment 4 Aktar 2016-06-15 08:19:56 UTC
I have made some tests, the issue occurs when you are targeting iOS 6.0, 6.1 or 7.0
--minimum-deployment-target 7.0
Comment 5 Jeffrey Stedfast 2016-06-15 15:23:14 UTC
The error is happening in the ibtool program which is part of Xcode.

Also, it seems unrelated to your LaunchScreen.xib because in your second log, the error happened for Main.storyboard.

Also note that I tested building in Alpha and used a project created with XS 6.0 from Stable.

It doesn't happen for nene cause it's a crash in ibtool like I said.

I can't fix Apples software.
Comment 6 Aktar 2016-06-15 15:29:41 UTC
If it is an issue with Xcode, why will it occur only with Xamarin.iOS ?
It looks like the NIB file compiler is generating corrupted file when minimum-deployment-target is 7.0 or lower (but only with Xamarin.iOS
Comment 7 Aktar 2016-06-15 15:33:41 UTC
Have you tried to compile the attached project on Xamarin.iOS Alpha ( ?
Comment 8 Jeffrey Stedfast 2016-06-15 15:50:00 UTC
If it has something to do with Xamarin.iOS, why does the error have nothing to do with Xamarin.iOS?

The error as you can clearly see in the log has to do with ibtool.

Xamarin does not modify your xib file when it passes it to ibtool.

Did you try cleaning your build like I suggested?
Comment 9 Aktar 2016-06-15 16:09:11 UTC
Yes I've cleaned the project, I even created an other from scratch to reproduce the bug (the one I attached to this issue).

The same project works just fine with the beta/stable Xamarin.iOS but not with the alpha => it means that it's probably not due to Apple !

Something is different in Xamarin.iOS and that difference is probably responsible of the bug.

What is generating the binaries ? the ibtool is working with binaries that were generated from the *.xib and *.storyboard, can these binaries be corrupted ?
Comment 10 Jeffrey Stedfast 2016-06-15 16:22:36 UTC
ibtool creates the binaries.
Comment 11 Aktar 2016-06-15 16:27:02 UTC
Obviously I can only try to understand the bug, but I dont think that It's an Apple bug.
Comment 12 Jeffrey Stedfast 2016-06-15 20:06:54 UTC