Bug 46935 - BTOUCH: error BI0000: Unexpected error.
Summary: BTOUCH: error BI0000: Unexpected error.
Status: NEW
Alias: None
Product: Objective Sharpie
Classification: Desktop
Component: General ()
Version: 3.3
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: ---
Assignee: Aaron Bockover [MSFT]
URL:
Depends on:
Blocks:
 
Reported: 2016-11-14 17:02 UTC by Aktar
Modified: 2016-11-14 17:04 UTC (History)
0 users

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

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 for Bug 46935 on Developer Community or GitHub if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: Developer Community HTML or GitHub Markdown
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:
Status:
NEW

Description Aktar 2016-11-14 17:02:02 UTC
Hello,

I'm trying to create a binding project for Accengage 6.0.0 (a push notification service).
They provide the library in a framework file downloadable here : http://docs.accengage.com/display/GEN/Home

With the `.framework` file I issued this commande:
>>>sharpie bind -sdk iphoneos10.0 ./Accengage.framework/Headers/Accengage.h -c -F .

I had to
 - merge all the constants together instead of many patial `Constants` classes
 - relace nint and nuint in StructsAndEnums.cs by ulong
 - add a namespace
 - remove the `Verify` attributes
 - rename the binary Accengage to Accengage.a and add it to the project

You can have the project here : https://dl.dropboxusercontent.com/u/97659496/Accengage.iOS.zip
All the files seam OK, but when I try to compile I have the error bellow:
Building: Accengage.iOS (Release)

Build started 14/11/2016 17:36:57.
__________________________________________________
Project "/Users/aktar/Documents/applications/src/MYBINDING_PROJS/Accengage.iOS/Accengage.iOS.csproj" (Build target(s)):
	
	Target _CreateGeneratedSourcesDir:
		Created directory "obj/Release/ios/"
	
	Target _CollectBundleResources:
		CollectBundleResources Task
		  BundleResources:
		  OptimizePropertyLists: False
		  OptimizePNGs: False
		  ProjectDir: /Users/aktar/Documents/applications/src/MYBINDING_PROJS/Accengage.iOS
		  ResourcePrefix: Resources
	
	Target _CreateEmbeddedResources:
		CreateEmbeddedResources Task
		  BundleResources:
		  Prefix: monotouch
	
	Target PrepareForBuild:
		Configuration: Release Platform: AnyCPU
	
	Target GenerateSatelliteAssemblies:
	No input files were specified for target GenerateSatelliteAssemblies, skipping.
	
	Target _GenerateBindings:
		BTouchEmitDebugInformation: false
		BTouch Task
		  BTouchToolPath: /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/bin/
		  BTouchToolExe: btouch-native
		  AdditionalLibPaths: <null>
		  AllowUnsafeBlocks: True
		  ApiDefinitions:
		    ApiDefinitions.cs
		  BaseLibDll: /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Xamarin.iOS.dll
		  CompilerPath: <null>
		  CoreSources:
		    StructsAndEnums.cs
		  DefineConstants: __MOBILE__;__IOS__;__UNIFIED__;
		  EmitDebugInformation: False
		  GeneratedSourcesDir: obj/Release/ios/
		  GeneratedSourcesFileList: obj/Release/ios/sources.list
		  Namespace: <null>
		  NativeLibraries: <null>
		  NoStdLib: False
		  OutputAssembly: <null>
		  References:
		    /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/System.dll
		    /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Xamarin.iOS.dll
		    /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS//mscorlib.dll
		  Resources: <null>
		  Sources: <null>
		Tool /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/bin/btouch-native execution started with arguments: /v /baselib:/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Xamarin.iOS.dll /unsafe /d:"__MOBILE__;__IOS__;__UNIFIED__" /Users/aktar/Documents/applications/src/MYBINDING_PROJS/Accengage.iOS/ApiDefinitions.cs /s:/Users/aktar/Documents/applications/src/MYBINDING_PROJS/Accengage.iOS/StructsAndEnums.cs -r /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/System.dll -r /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Xamarin.iOS.dll -r /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/mscorlib.dll /tmpdir:/Users/aktar/Documents/applications/src/MYBINDING_PROJS/Accengage.iOS/obj/Release/ios/ /sourceonly:/Users/aktar/Documents/applications/src/MYBINDING_PROJS/Accengage.iOS/obj/Release/ios/sources.list 
		/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/bin/smcs -debug -unsafe -target:library -nowarn:436 -out:'/Users/aktar/Documents/applications/src/MYBINDING_PROJS/Accengage.iOS/obj/Release/ios/temp.dll' -r:/Library/Frameworks/Xamarin.iOS.framework/Versions/10.2.1.5/lib/btouch/btouch-native.exe -r:'/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/System.dll' -r:'/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Xamarin.iOS.dll' -r:'/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/mscorlib.dll' -unsafe -r:'/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Xamarin.iOS.dll' -define:__MOBILE__;__IOS__;__UNIFIED__  '/Users/aktar/Documents/applications/src/MYBINDING_PROJS/Accengage.iOS/ApiDefinitions.cs' '/Users/aktar/Documents/applications/src/MYBINDING_PROJS/Accengage.iOS/StructsAndEnums.cs' -lib:/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS 
/Users/aktar/Documents/applications/src/MYBINDING_PROJS/Accengage.iOS/ApiDefinitions.cs(128,10): warning CS0618: `ObjCRuntime.iOSAttribute' is obsolete: `Use [Introduced|Deprecated|Obsoleted|Unavailable] attributes with PlatformName'
/Users/aktar/Documents/applications/src/MYBINDING_PROJS/Accengage.iOS/ApiDefinitions.cs(133,10): warning CS0618: `ObjCRuntime.iOSAttribute' is obsolete: `Use [Introduced|Deprecated|Obsoleted|Unavailable] attributes with PlatformName'
/Users/aktar/Documents/applications/src/MYBINDING_PROJS/Accengage.iOS/ApiDefinitions.cs(728,10): warning CS0618: `ObjCRuntime.iOSAttribute' is obsolete: `Use [Introduced|Deprecated|Obsoleted|Unavailable] attributes with PlatformName'
/Users/aktar/Documents/applications/src/MYBINDING_PROJS/Accengage.iOS/ApiDefinitions.cs(737,10): warning CS0618: `ObjCRuntime.iOSAttribute' is obsolete: `Use [Introduced|Deprecated|Obsoleted|Unavailable] attributes with PlatformName'
BTOUCH: error BI0000: Unexpected error - Please file a bug report at http://bugzilla.xamarin.com
		System.Exception: Platform setting deteremined invalid, cannot set 'Introduced' to 'iOS_2_0, iOS_8_0' as it is already set for the same platform to 'None'
		  at (wrapper managed-to-native) System.MonoCustomAttrs:GetCustomAttributesInternal (System.Reflection.ICustomAttributeProvider,System.Type,bool)
		  at System.MonoCustomAttrs.GetCustomAttributesBase (System.Reflection.ICustomAttributeProvider obj, System.Type attributeType, System.Boolean inheritedOnly) [0x00019] in /Users/builder/data/lanes/3969/44931ae8/source/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/mcs/class/corlib/System/MonoCustomAttrs.cs:128 
		  at System.MonoCustomAttrs.GetCustomAttributes (System.Reflection.ICustomAttributeProvider obj, System.Type attributeType, System.Boolean inherit) [0x00040] in /Users/builder/data/lanes/3969/44931ae8/source/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/mcs/class/corlib/System/MonoCustomAttrs.cs:158 
		  at System.MonoCustomAttrs.GetCustomAttributes (System.Reflection.ICustomAttributeProvider obj, System.Boolean inherit) [0x0002a] in /Users/builder/data/lanes/3969/44931ae8/source/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/mcs/class/corlib/System/MonoCustomAttrs.cs:292 
		  at System.Reflection.MonoMethod.GetCustomAttributes (System.Boolean inherit) [0x00000] in /Users/builder/data/lanes/3969/44931ae8/source/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/mcs/class/corlib/System.Reflection/MonoMethod.cs:390 
		  at ReflectionExtensions.IsUnavailable (System.Reflection.ICustomAttributeProvider provider) [0x00003] in /Users/builder/data/lanes/3969/44931ae8/source/xamarin-macios/src/generator.cs:111 
		  at Generator.Go () [0x0077b] in /Users/builder/data/lanes/3969/44931ae8/source/xamarin-macios/src/generator.cs:2697 
		  at BindingTouch.Main2 (System.String[] args) [0x00d4e] in /Users/builder/data/lanes/3969/44931ae8/source/xamarin-macios/src/btouch.cs:442 
		  at BindingTouch.Main (System.String[] args) [0x0001d] in /Users/builder/data/lanes/3969/44931ae8/source/xamarin-macios/src/btouch.cs:104 
		  at System.Environment.get_StackTrace () [0x00000] in /Users/builder/data/lanes/3969/44931ae8/source/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/mcs/class/corlib/System/Environment.cs:321 
		  at ErrorHelper.ShowInternal (System.Exception e) [0x000d7] in /Users/builder/data/lanes/3969/44931ae8/source/xamarin-macios/src/error.cs:176 
		  at ErrorHelper.Show (System.Exception e) [0x00027] in /Users/builder/data/lanes/3969/44931ae8/source/xamarin-macios/src/error.cs:127 
		  at BindingTouch.Main (System.String[] args) [0x0002b] in /Users/builder/data/lanes/3969/44931ae8/source/xamarin-macios/src/btouch.cs:106 
	Task "BTouch" execution -- FAILED
	Done building target "_GenerateBindings" in project "/Users/aktar/Documents/applications/src/MYBINDING_PROJS/Accengage.iOS/Accengage.iOS.csproj".-- FAILED
	
Done building project "/Users/aktar/Documents/applications/src/MYBINDING_PROJS/Accengage.iOS/Accengage.iOS.csproj".-- FAILED

Build FAILED.

Warnings:

/Users/aktar/Documents/applications/src/MYBINDING_PROJS/Accengage.iOS/Accengage.iOS.csproj (Build) ->
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/iOS/Xamarin.iOS.ObjCBinding.CSharp.targets (_GenerateBindings target) ->

	/Users/aktar/Documents/applications/src/MYBINDING_PROJS/Accengage.iOS/ApiDefinitions.cs(128,10): warning CS0618: `ObjCRuntime.iOSAttribute' is obsolete: `Use [Introduced|Deprecated|Obsoleted|Unavailable] attributes with PlatformName'
	/Users/aktar/Documents/applications/src/MYBINDING_PROJS/Accengage.iOS/ApiDefinitions.cs(133,10): warning CS0618: `ObjCRuntime.iOSAttribute' is obsolete: `Use [Introduced|Deprecated|Obsoleted|Unavailable] attributes with PlatformName'
	/Users/aktar/Documents/applications/src/MYBINDING_PROJS/Accengage.iOS/ApiDefinitions.cs(728,10): warning CS0618: `ObjCRuntime.iOSAttribute' is obsolete: `Use [Introduced|Deprecated|Obsoleted|Unavailable] attributes with PlatformName'
	/Users/aktar/Documents/applications/src/MYBINDING_PROJS/Accengage.iOS/ApiDefinitions.cs(737,10): warning CS0618: `ObjCRuntime.iOSAttribute' is obsolete: `Use [Introduced|Deprecated|Obsoleted|Unavailable] attributes with PlatformName'

Errors:

/Users/aktar/Documents/applications/src/MYBINDING_PROJS/Accengage.iOS/Accengage.iOS.csproj (Build) ->
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/iOS/Xamarin.iOS.ObjCBinding.CSharp.targets (_GenerateBindings target) ->

	BTOUCH: error BI0000: Unexpected error - Please file a bug report at http://bugzilla.xamarin.com

	 4 Warning(s)
	 1 Error(s)

Time Elapsed 00:00:00.7941280

---------------------- Done ----------------------

Build: 1 error, 4 warnings
Comment 1 Aktar 2016-11-14 17:04:51 UTC
I forgot to provide informations about my IDE version :

Xamarin Studio Community
Version 6.1.2 (build 44)
Installation UUID: a3c95a91-ddc1-4bed-8905-cafe7ed7db25
Runtime:
	Mono 4.6.2 (mono-4.6.0-branch/08fd525) (64-bit)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 406020007

NuGet
Version: 3.4.3.0

Xamarin.Profiler
Not Installed

Apple Developer Tools
Xcode 8.0 (11246)
Build 8A218a

Xamarin.iOS
Version: 10.2.1.5 (Xamarin Studio Community)
Hash: 44931ae
Branch: xcode8.1
Build date: 2016-11-01 20:52:28-0400

Xamarin.Mac
Version: 2.10.0.113 (Xamarin Studio Community)

Xamarin.Android
Version: 7.0.2.37 (Xamarin Studio Community)
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)
		7.0    (API level 24)

SDK Tools Version: 25.2.2
SDK Platform Tools Version: 25
SDK Build Tools Version: 25

Java SDK: /usr
java version "1.8.0_102"
Java(TM) SE Runtime Environment (build 1.8.0_102-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.102-b14, mixed mode)

Android Designer EPL code available here:
https://github.com/xamarin/AndroidDesigner.EPL

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

Build Information
Release ID: 601020044
Git revision: 0ccfcd52b95305ebd5b7eca0d88c1017035910ae
Build date: 2016-10-28 15:12:43-04
Xamarin addins: a39a869d8a78d87bdc6775f696c13a4cc9024501
Build lane: monodevelop-lion-cycle8

Operating System
Mac OS X 10.12.0
Darwin aktarmacpro.private 16.0.0 Darwin Kernel Version 16.0.0
    Mon Aug 29 17:56:20 PDT 2016
    root:xnu-3789.1.32~3/RELEASE_X86_64 x86_64