--- id: 505F978C-9553-49A8-9632-0D6D8A0A0287 title: "Xamarin.iOS/Xamarin.Mac binding errors" dateupdated: 2017-06-26 --- [//]: # (The original file resides under https://github.com/xamarin/xamarin-macios/tree/master/docs/website/) [//]: # (This allows all contributors (including external) to submit, using a PR, updates to the documentation that match the tools changes) [//]: # (Modifications outside of xamarin-macios/master will be lost on future updates) # BI0xxx: binding error messages E.g. parameters, environment ### BI0000: Unexpected error - Please fill a bug report at https://bugzilla.xamarin.com An unexpected error condition occurred. Please [file a bug report](https://bugzilla.xamarin.com/enter_bug.cgi?product=iOS&component=Tools) with as much information as possible, including: * Full build logs, with maximum verbosity * A minimal test case that reproduce the error * All version informations The easiest way to get exact version information is to use the **Xamarin Studio** menu, **About Xamarin Studio** item, **Show Details** button and copy/paste the version informations (you can use the **Copy Information** button). ### BI0001: The .NET runtime could not load the {mi.ReturnType.Name} type. Message: {ex.Message} ### BI0026: Could not parse the command line argument '{argument}': {message} ### BI0068: Invalid value for target framework: *. An invalid target framework was passed using the --target-framework argument. Please specify a valid target framework. ### BI0070: Invalid target framework: *. Valid target frameworks are: *. An invalid target framework was passed using the --target-framework argument. Please specify a valid target framework. ### BI0086: A target framework (--target-framework) must be specified when building for *. This usually indicates a bug in Xamarin.iOS/Xamarin.Mac; please [file a bug report](https://bugzilla.xamarin.com/enter_bug.cgi?product=iOS) with a test case. # BI1xxx: code generation ### BI1001: Do not know how to make a trampoline for * ### BI1002: Unknown kind * in method '*' ### BI1003: The delegate method *.* needs to take at least one parameter ### BI1004: The delegate method *.* is missing the [EventArgs] attribute (has * parameters) ### BI1005: EventArgs in *.* attribute should not include the text `EventArgs' at the end ### BI1006: The delegate method *.* is missing the [DelegateName] attribute (or EventArgs) ### BI1007: Unknown attribute * on * ### BI1008: [IsThreadStatic] is only valid on properties that are also [Static] ### BI1009: No selector specified for method `*.*' ### BI1010: No Export attribute on *.* property ### BI1011: Do not know how to extract type */* from an NSDictionary ### BI1012: No Export or Bind attribute defined on *.* ### BI1013: Unsupported type for Fields (string), you probably meant NSString ### BI1014: Unsupported type for Fields: * for '*'. Please go to [[FieldAttribute]](https://developer.xamarin.com/guides/cross-platform/macios/binding/binding-types-reference/#FieldAttribute) documentation to see supported types. ### BI1015: In class * You specified the Events property, but did not bind those to names with Delegates ### BI1016: The delegate method *.* is missing the [DefaultValue] attribute ### BI1017: Do not know how to make a signature for * ### BI1018: No [Export] attribute on property *.* ### BI1019: Invalid [NoDefaultValue] attribute on method `*.*' ### BI1020: Unsupported type * used on exported method *.* ### BI1021: Unsupported type for read/write Fields: * ### BI1022: Model classes can not be categories ### BI1023: The number of Events (Type) and Delegates (string) must match for `*` ### BI1024: No selector specified for property '*.*' ### BI1025: [Static] and [Protocol] are mutually exclusive (*) ### BI1026: `*`: Enums attributed with [*] must have an underlying type of `long` or `ulong` ### BI1027: Support for ZeroCopy strings is not implemented. Strings will be marshalled as NSStrings. ### BI1028: Internal sanity check failed, please file a bug report (http://bugzilla.xamarin.com) with a test case. ### BI1029: Internal error: invalid enum mode for type '*' ### BI1030: * cannot have [BaseType(typeof(*))] as it creates a circular dependency ### BI1031: The [Target] attribute is not supported for the Unified API (found on the member '*.*'). For Objective-C categories, create an api definition interface with the [Category] attribute instead. ### BI1034: The [Protocolize] attribute is set on the property *.*, but the property's type (*) is not a protocol. ### BI1035: The property * on class * is hiding a property from a parent class * but the selectors do not match. ### BI1036: The last parameter in the method '*.*' must be a delegate (it's '*'). ### BI1037: The selector * on type * is found multiple times with both read only and write only versions, with no read/write version. ### BI1038: The selector * on type * is found multiple times with different return types. ### BI1039: The selector * on type * is found multiple times with different argument length * : *. ### BI1040: The selector * on type * is found multiple times with different argument out states on argument *. ### BI1041: The selector * on type * is found multiple times with different argument types on argument * - * : *. ### BI1042: Missing '[Field (LibraryName=value)]' for {field_pi.Name} (e.g."__Internal") ### BI1043: Repeated overload {mi.Name} and no [DelegateApiNameAttribute] provided to generate property name on host class. ### BI1044: Repeated name '{apiName.Name}' provided in [DelegateApiNameAttribute]. ### BI1045: Only a single [DefaultEnumValue] attribute can be used inside enum {type.Name}. ### BI1046: The [Field] constant {fa.SymbolName} cannot only be used once inside enum {type.Name}. ### BI1047: Unsupported platform: *. Please file a bug report (http://bugzilla.xamarin.com) with a test case. ### BI1048: Unsupported type * decorated with [BindAs]. ### BI1049: Could not unbox type * from * container used on * member decorated with [BindAs]. ### BI1050: [BindAs] cannot be used inside Protocol or Model types. Type: * ### BI1051: Internal error: Don't know how to get attributes for *. Please file a bug report (http://bugzilla.xamarin.com) with a test case. ### BI1052: Internal error: Could not find the type * in the assembly *. Please file a bug report (http://bugzilla.xamarin.com) with a test case. ### BI1053: Internal error: unknown target framework '*'. ### BI1054: Internal error: can't convert type '*' (unknown assembly). Please file a bug report (https://bugzilla.xamarin.com) with a test case. This usually indicates a bug in Xamarin.iOS/Xamarin.Mac; please [file a bug report](https://bugzilla.xamarin.com/enter_bug.cgi?product=iOS&component=Tools) with a test case. ### BI1055: Internal error: failed to convert type '*'. Please file a bug report (https://bugzilla.xamarin.com) with a test case. This usually indicates a bug in Xamarin.iOS/Xamarin.Mac; please [file a bug report](https://bugzilla.xamarin.com/enter_bug.cgi?product=iOS&component=Tools) with a test case. ### BI1056: Internal error: failed to instantiate mock attribute '*' (could not convert type constructor argument #*). Please file a bug report (https://bugzilla.xamarin.com) with a test case. This usually indicates a bug in Xamarin.iOS/Xamarin.Mac; please [file a bug report](https://bugzilla.xamarin.com/enter_bug.cgi?product=iOS&component=Tools) with a test case. ### BI1057: Internal error: failed to instantiate mock attribute '*' (could not convert constructor type #* (*)). Please file a bug report (https://bugzilla.xamarin.com) with a test case. This usually indicates a bug in Xamarin.iOS/Xamarin.Mac; please [file a bug report](https://bugzilla.xamarin.com/enter_bug.cgi?product=iOS&component=Tools) with a test case. ### BI1058: Internal error: could not find a constructor for the mock attribute '*'. Please file a bug report (https://bugzilla.xamarin.com) with a test case. This usually indicates a bug in Xamarin.iOS/Xamarin.Mac; please [file a bug report](https://bugzilla.xamarin.com/enter_bug.cgi?product=iOS&component=Tools) with a test case. ### BI1059: Found * * attributes on the member *. At most one was expected. ### BI1060: The * protocol is decorated with [Model], but not [BaseType]. Please verify that [Model] is relevant for this protocol; if so, add [BaseType] as well, otherwise remove [Model]. ### BI1061: The attribute '{attribute}' found on '{member}' is not a valid binding attribute. Please remove this attribute. ### BI1062: The member '*' contains ref/out parameters and must not be decorated with [Async]. ### BI1063: The 'WrapAttribute' can only be used at the property or at getter/setter level at a given time. Property: '*'. # BI11xx: warnings ### BI1101: Trying to use a string as a [Target] ### BI1102: Using the deprecated EventArgs for a delegate signature in *.*, please use DelegateName instead ### BI1103: '*' does not live under a namespace; namespaces are a highly recommended .NET best practice ### BI1104: Could not load the referenced library '*': *. ### BI1105: Potential selector/argument mismatch [Export ("*")] has * arguments and *.* has * arguments ### BI1106: The parameter * in the method *.* exposes a model (*). Please expose the corresponding protocol type instead (*.I*) ### BI1107: The return type of the method *.* exposes a model (*). Please expose the corresponding protocol type instead (*.I*). ### BI1108: The [Protocolize] attribute is applied to the return type of the method *.*, but the return type (*) isn't a model and can thus not be protocolized. Please remove the [Protocolize] attribute. ### BI1109: The return type of the method *.* exposes a model (*). Please expose the corresponding protocol type instead (*.I*). ### BI1110: The property *.* exposes a model (*). Please expose the corresponding protocol type instead (*.I*). ### BI1111: Interface '*' on '*' is being ignored as it is not a protocol. Did you mean '*' instead? ### BI1112: Property * should be renamed to 'Delegate' for BaseType.Events and BaseType.Delegates to work. ### BI1113: BaseType.Delegates were set but no properties could be found. Do ensure that the WrapAttribute is used on the right properties. ### BI1114: Binding error: test unable to find property: * on *. ### BI1115: The parameter '*' in the delegate '*' does not have a [CCallback] or [BlockCallback] attribute. Defaulting to [CCallback]. ### BI1116: The parameter '*' in the delegate '*' does not have a [CCallback] or [BlockCallback] attribute. Defaulting to [CCallback]. Declare a custom delegate instead of using System.Action / System.Func and add the attribute on the corresponding parameter. ### BI1117: The member '*' is decorated with [Static] and its container class * is decorated with [Category] this leads to hard to use code. Please inline * into * class.