Xamarin-macios: ibtool exited with code 255

Created on 25 Nov 2019  路  7Comments  路  Source: xamarin/xamarin-macios

Steps to Reproduce

Add the attached xibs into a project. If not sufficient, I can provide you with the project in private.

Expected Behavior

Xib builds fine

Actual Behavior

Ibtool fails to generate nib from xib

Environment

=== Visual Studio Enterprise 2019 for Mac ===

Version 8.3.10 (build 2)
Installation UUID: 7da952b0-31b9-47e8-9b69-fff34a8e275b
    GTK+ 2.24.23 (Raleigh theme)
    Xamarin.Mac 5.16.1.24 (d16-3 / 08809f5b)

    Package version: 604000208

=== Mono Framework MDK ===

Runtime:
    Mono 6.4.0.208 (2019-06/07c23f2ca43) (64-bit)
    Package version: 604000208

=== NuGet ===

Version: 5.3.0.6192

=== .NET Core SDK ===

SDK: /usr/local/share/dotnet/sdk/3.0.100/Sdks
SDK Versions:
    3.0.100
    2.2.300
    2.2.204
    2.2.107
    2.2.104
    2.1.505
MSBuild SDKs: /Library/Frameworks/Mono.framework/Versions/6.4.0/lib/mono/msbuild/Current/bin/Sdks

=== .NET Core Runtime ===

Runtime: /usr/local/share/dotnet/dotnet
Runtime Versions:
    3.0.0
    2.2.5
    2.2.2
    2.1.13
    2.1.9

=== Xamarin.Profiler ===

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

=== Updater ===

Version: 11

=== Apple Developer Tools ===

Xcode 11.2.1 (15526.1)
Build 11B500

=== Xamarin.Mac ===

Version: 6.6.0.12 (Visual Studio Enterprise)
Hash: e3c2b406d
Branch: xcode11.2
Build date: 2019-11-01 00:12:07-0400

=== Xamarin.iOS ===

Version: 13.6.0.12 (Visual Studio Enterprise)
Hash: e3c2b406d
Branch: xcode11.2
Build date: 2019-11-01 00:12:08-0400

=== Xamarin Designer ===

Version: 16.3.0.256
Hash: 8a223bfd7
Branch: remotes/origin/d16-3
Build date: 2019-11-01 21:02:02 UTC

=== Xamarin.Android ===

Version: 10.0.6.2 (Visual Studio Enterprise)
Commit: xamarin-android/d16-3/c407838
Android SDK: /Users/raimohuybrechts/Library/Developer/Xamarin/android-sdk-macosx
    Supported Android versions:
        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)
        7.0    (API level 24)
        7.1    (API level 25)
        8.0    (API level 26)
        8.1    (API level 27)

SDK Tools Version: 26.1.1
SDK Platform Tools Version: 29.0.4
SDK Build Tools Version: 29.0.2

Build Information: 
Mono: mono/mono/2019-06@476d72b9e32
Java.Interop: xamarin/java.interop/d16-3@5836f58
LibZipSharp: grendello/LibZipSharp/d16-3@71f4a94
LibZip: nih-at/libzip/rel-1-5-1@b95cf3fd
ProGuard: xamarin/proguard/master@905836d
SQLite: xamarin/sqlite/3.27.1@8212a2d
Xamarin.Android Tools: xamarin/xamarin-android-tools/d16-3@cb41333

=== Microsoft Mobile OpenJDK ===

Java SDK: /Users/raimohuybrechts/Library/Developer/Xamarin/jdk/microsoft_dist_openjdk_1.8.0.25
1.8.0-25
Android Designer EPL code available here:
https://github.com/xamarin/AndroidDesigner.EPL

=== Android SDK Manager ===

Version: 1.4.0.65
Hash: c33b107
Branch: remotes/origin/d16-3
Build date: 2019-11-19 20:33:22 UTC

=== Android Device Manager ===

Version: 1.2.0.116
Hash: d2b2af0
Branch: remotes/origin/d16-3
Build date: 2019-11-19 20:33:42 UTC

=== Xamarin Inspector ===

Version: 1.4.3
Hash: db27525
Branch: 1.4-release
Build date: Mon, 09 Jul 2018 21:20:18 GMT
Client compatibility: 1

=== Build Information ===

Release ID: 803100002
Git revision: add3a4998a5cb5b081e0404e1fe13acfecb7801d
Build date: 2019-11-20 13:35:15+00
Build branch: release-8.3
Xamarin extensions: 79c69708816813b498283eeda7bcb4d464433a04

=== Operating System ===

Mac OS X 10.15.1
Darwin 19.0.0 Darwin Kernel Version 19.0.0
    Thu Oct 17 16:17:15 PDT 2019
    root:xnu-6153.41.3~29/RELEASE_X86_64 x86_64

Build Logs

build-ios.txt

Example Project (If Possible)

CollectionViewCell is faulty in the zip file attached
xibs.zip

iOS need-info

Most helpful comment

Hey @chamons , seems like the named colors were not added as resources in the xib file..

<resources>
    <namedColor name="dark_blue">
        <color red="0.11372549086809158" green="0.29411765933036804" blue="0.34117648005485535" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
    </namedColor>
    <namedColor name="gray">
        <color red="0.3803921639919281" green="0.37254902720451355" blue="0.36862745881080627" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
    </namedColor>
    <namedColor name="yellow">
        <color red="0.97254902124404907" green="0.80392158031463623" blue="0.27450981736183167" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
     </namedColor>
</resources>

Problem solved, thanks for the quick response though!

All 7 comments

So IBTool is an apple tool that we're running on your behalf:

Tool /Applications/Xcode.app/Contents/Developer/usr/bin/ibtool execution started with arguments: --errors --warnings --notices --output-format xml1 --minimum-deployment-target 11.0 --target-device iphone --auto-activate-custom-fonts --sdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk --compilation-directory /Users/raimohuybrechts/appstruct-apps/g-sport-vlaanderen/GsportApp/GsportApp.iOS/obj/iPhoneSimulator/Debug/device-builds/iphone12.1-13.2.2/ibtool /Users/raimohuybrechts/appstruct-apps/g-sport-vlaanderen/GsportApp/GsportApp.iOS/Views/Cells/InfrastructureCollectionViewCell.xib\ Tool /Applications/Xcode.app/Contents/Developer/usr/bin/ibtool execution finished (exit code = 255).\ /Library/Frameworks/Mono.framework/External/xbuild/Xamarin/iOS/Xamarin.iOS.Common.targets(1380,3): error : ibtool exited with code 255\ /Library/Frameworks/Mono.framework/External/xbuild/Xamarin/iOS/Xamarin.iOS.Common.targets(1380,3): error : Failed to load ibtool log file `obj/iPhoneSimulator/Debug/device-builds/iphone12.1-13.2.2/ibtool-manifests/InfrastructureCollectionViewCell.nib`: Failed to parse PList data type: \
```
In general, there have been many "fixes" to convince Xcode to start professing it correctly again. The most common include:

  • Start Xcode manually to make sure the "First Launch" tasks are complete
  • Cleaning and rebuilding your application to make sure Xcode isn't confused by a cache file
  • Opening the xib in a newer Xcode and re-saving it

If you believe this is an actual Xamarin bug, and have tried all of that, we'll need a full project to look at this.

Hello @chamons, thanks for chiming in. but I've already tried all the points you mentioned above. Other xibs work fine. I can indeed provide you with the full project but I am only able to do that in private, is there any preferred way I can send it over to you?

The xib in question could have also be corrupt - Have you tried opening it in Xcode, making a change and saving it?

You can send a project link to chris.[email protected] but honestly if a single xib is the trouble it is very likely this is an Apple bug.

@chamons That might be a possibility. Seems like Xcode doesn't want to open the xib in question either, very strange. I've sent you a link to the project via email a minute ago, to be sure.

Yeah, if Xcode won't open then the Xamarin tooling is dead in the water. We build on top of Xcode.

Do you have an earlier version you could try?

Seems that the colors are the problem in the xib. Whenever I comment out lines like <color key="textColor" name="dark_blue"/> in every subview, it compiles.

Hey @chamons , seems like the named colors were not added as resources in the xib file..

<resources>
    <namedColor name="dark_blue">
        <color red="0.11372549086809158" green="0.29411765933036804" blue="0.34117648005485535" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
    </namedColor>
    <namedColor name="gray">
        <color red="0.3803921639919281" green="0.37254902720451355" blue="0.36862745881080627" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
    </namedColor>
    <namedColor name="yellow">
        <color red="0.97254902124404907" green="0.80392158031463623" blue="0.27450981736183167" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
     </namedColor>
</resources>

Problem solved, thanks for the quick response though!

Was this page helpful?
0 / 5 - 0 ratings