mtouch.AssertError(4138,"The registrar cannot marshal the property type 'System.Object' of the property 'Foo.Bar10'.","testApp.cs",54);
mtouch.AssertError(4136,"The registrar cannot marshal the parameter type 'System.Object[]' of the parameter 'arg' in the method 'Foo.Bar1(System.Object[])'","testApp.cs",7);
mtouch.AssertError(4136,"The registrar cannot marshal the parameter type 'System.Object&' of the parameter 'arg' in the method 'Foo.Bar2(System.Object&)'","testApp.cs",12);
mtouch.AssertError(4136,"The registrar cannot marshal the parameter type 'System.Object&' of the parameter 'arg' in the method 'Foo.Bar3(System.Object&)'","testApp.cs",17);
mtouch.AssertError(4136,"The registrar cannot marshal the parameter type 'System.Object' of the parameter 'arg' in the method 'Foo.Bar4(System.Object)'","testApp.cs",23);
mtouch.AssertError(4104,"The registrar cannot marshal the return value of type `System.Object` in the method `Foo.Bar5()`.","testApp.cs",28);
mtouch.AssertError(4136,"The registrar cannot marshal the parameter type 'System.Nullable`1<System.Int32>' of the parameter 'arg' in the method 'Foo.Bar6(System.Nullable`1<System.Int32>)'","testApp.cs",34);
mtouch.AssertError(4104,"The registrar cannot marshal the return value of type `System.Nullable`1<System.Int32>` in the method `Foo.Bar7()`.","testApp.cs",39);
mtouch.AssertError(4136,"The registrar cannot marshal the parameter type 'System.Nullable`1<System.Int32>[]&' of the parameter 'arg' in the method 'Foo.Bar8(System.Nullable`1<System.Int32>[]&)'","testApp.cs",45);
mtouch.AssertError(4136,"The registrar cannot marshal the parameter type 'System.Attribute' of the parameter 'attribute' in the method 'Foo.Bar9(System.Attribute)'","testApp.cs",50);
mtouch.AssertError(4104,"The registrar cannot marshal the return value of type `System.Object[]` in the method `Foo.get_Bar11()`.","testApp.cs",58);
mtouch.AssertError(4136,"The registrar cannot marshal the parameter type 'System.Object[]' of the parameter 'value' in the method 'Foo.set_Bar11(System.Object[])'","testApp.cs",60);
mtouch.AssertError(4138,"The registrar cannot marshal the property type 'System.DateTime' of the property 'DateMembers.F4'.","testApp.cs",14);
mtouch.AssertError(4102,"The registrar found an invalid type `System.DateTime` in signature for method `DateMembers.F1`. Use `Foundation.NSDate` instead.","testApp.cs",5);
mtouch.AssertError(4102,"The registrar found an invalid type `System.DateTime` in signature for method `DateMembers.F2`. Use `Foundation.NSDate` instead.","testApp.cs",8);
mtouch.AssertError(4102,"The registrar found an invalid type `System.DateTime` in signature for method `DateMembers.F3`. Use `Foundation.NSDate` instead.","testApp.cs",11);
mtouch.AssertError(4117,"The registrar found a signature mismatch in the method 'ArgCount.F1' - the selector 'F1' indicates the method takes 0 parameters, while the managed method has 1 parameters.","testApp.cs",5);
mtouch.AssertError(4117,"The registrar found a signature mismatch in the method 'ArgCount.F2' - the selector 'F2:' indicates the method takes 1 parameters, while the managed method has 0 parameters.","testApp.cs",8);
mtouch.AssertError(4140,"The registrar found a signature mismatch in the method 'ArgCount.F3' - the selector 'F3' indicates the variadic method takes 1 parameters, while the managed method has 0 parameters.","testApp.cs",11);
mtouch.AssertError(4134,$"Your application is using the '{framework.Framework}' framework, which isn't included in the iOS SDK you're using to build your app (this framework was introduced in iOS {framework.Version}, while you're building with the iOS {mtouch.Sdk} SDK.) Please select a newer SDK in your app's iOS Build options.");
mtouch.AssertWarningPattern(79,$"The recommended Xcode version for Xamarin.iOS .* is Xcode .* or later. The current Xcode version .found in /Applications/Xcode83.app/Contents/Developer. is .*.");
mtouch.AssertError(4139,"The registrar cannot marshal the property type 'System.Object' of the property 'C.P1'. Properties with the [Connect] attribute must have a property type of NSObject (or a subclass of NSObject).","testApp.cs",5);
mtouch.AssertError(4139,"The registrar cannot marshal the property type 'System.Int32' of the property 'C.P2'. Properties with the [Connect] attribute must have a property type of NSObject (or a subclass of NSObject).","testApp.cs",8);
mtouch.AssertError(4141,"Cannot register the selector 'retain' on the member 'C.Retain' because Xamarin.iOS implicitly registers this selector.","testApp.cs",5);
mtouch.AssertError(4141,"Cannot register the selector 'release' on the member 'C.Release' because Xamarin.iOS implicitly registers this selector.","testApp.cs",8);
mtouch.AssertError(4148,"The registrar found a generic protocol: 'IProtocol`1'. Exporting generic protocols is not supported.");
mtouch.AssertError(4113,"The registrar found a generic method: 'IProtocol2.M()'. Exporting generic methods is not supported, and will lead to random behavior and/or crashes");
mtouch.AssertError(4149,"Cannot register the extension method 'Category.Foo' because the type of the first parameter ('System.Int32') does not match the category type ('Foundation.NSString').","testApp.cs",7);
mtouch.AssertError(4150,"Cannot register the type 'Category' because the category type 'System.String' in its Category attribute does not inherit from NSObject.");
mtouch.AssertError(4158,"Cannot register the constructor Category..ctor() in the category Category because constructors in categories are not supported.","testApp.cs",7);
mtouch.AssertError(4160,$"Invalid character '{c}' (0x{((int)c).ToString ("x")}) found in selector 'X{c}' for 'TestInvalidChar.X{i}()'","testApp.cs",3+i*2);
mtouch.AssertError(4161,"The registrar found an unsupported structure 'FooA': All fields in a structure must also be structures (field 'Obj' with type 'Foundation.NSObject' is not a structure).","testApp.cs",6);
mtouch.AssertError(4161,"The registrar found an unsupported structure 'FooB': All fields in a structure must also be structures (field 'Obj' with type 'Foundation.NSObject' is not a structure).","testApp.cs",9);
mtouch.AssertError(4161,"The registrar found an unsupported structure 'FooC': All fields in a structure must also be structures (field 'Obj' with type 'Foundation.NSObject' is not a structure).","testApp.cs",12);
mtouch.AssertError(4161,"The registrar found an unsupported structure 'FooD': All fields in a structure must also be structures (field 'Obj' with type 'Foundation.NSObject' is not a structure).","testApp.cs",15);
mtouch.AssertError(4111,"The registrar cannot build a signature for type `FooE[]' in method `TestInvalidChar.Foo5`.","testApp.cs",18);
mtouch.AssertError(4111,"The registrar cannot build a signature for type `FooF[]' in method `TestInvalidChar.Foo6`.","testApp.cs",21);
mtouch.AssertErrorPattern(4162,$"The type 'FutureType' (used as a base type of CurrentType) is not available in {name} .* (it was introduced in {name} 99.0.0): 'use Z instead'. Please build with a newer {name} SDK (usually done by using the most recent version of Xcode).",custom_pattern_syntax:true);
mtouch.AssertErrorPattern(4162,$"The type 'FutureType' (used as a base type of CurrentType) is not available in {name} .* (it was introduced in {name} 89.0.0). Please build with a newer {name} SDK (usually done by using the most recent version of Xcode).",custom_pattern_syntax:true);
mtouch.AssertErrorPattern(4162,$"The type 'FutureType' (used as the property type of CurrentType.Zap) is not available in {name} .* (it was introduced in {name} 99.0.0): 'use Z instead'. Please build with a newer {name} SDK (usually done by using the most recent version of Xcode).","testApp.cs",custom_pattern_syntax:true);
mtouch.AssertErrorPattern(4162,$"The type 'FutureType' (used as the property type of CurrentType.Zap) is not available in {name} .* (it was introduced in {name} 89.0.0). Please build with a newer {name} SDK (usually done by using the most recent version of Xcode).","testApp.cs",custom_pattern_syntax:true);
mtouch.AssertErrorPattern(4162,$"The type 'FutureType' (used as a parameter in CurrentType.Foo) is not available in {name} .* (it was introduced in {name} 99.0.0): 'use Z instead'. Please build with a newer {name} SDK (usually done by using the most recent version of Xcode).","testApp.cs",custom_pattern_syntax:true);
mtouch.AssertErrorPattern(4162,$"The type 'FutureType' (used as a parameter in CurrentType.Foo) is not available in {name} .* (it was introduced in {name} 89.0.0). Please build with a newer {name} SDK (usually done by using the most recent version of Xcode).","testApp.cs",custom_pattern_syntax:true);
mtouch.AssertErrorPattern(4162,$"The type 'FutureType' (used as a return type in CurrentType.Bar) is not available in {name} .* (it was introduced in {name} 99.0.0): 'use Z instead'. Please build with a newer {name} SDK (usually done by using the most recent version of Xcode).","testApp.cs",custom_pattern_syntax:true);
mtouch.AssertErrorPattern(4162,$"The type 'FutureType' (used as a return type in CurrentType.Bar) is not available in {name} .* (it was introduced in {name} 89.0.0). Please build with a newer {name} SDK (usually done by using the most recent version of Xcode).","testApp.cs",custom_pattern_syntax:true);
mtouch.AssertError(4164,$"Cannot export the property 'X{kw}' because its selector '{kw}' is an Objective-C keyword. Please use a different name.","testApp.cs");
mtouch.AssertError(4168,$"Cannot register the type 'X{kw}' because its Objective-C name '{kw}' is an Objective-C keyword. Please use a different name.");
mtouch.AssertError(4169,$"Failed to generate a P/Invoke wrapper for objc_msgSend(System.Object): The registrar cannot get the ObjectiveC type for managed type `System.Object`.");
mtouch.AssertError(4170,"The registrar can't convert from 'System.DateTime' to 'Foundation.NSNumber' for the return value in the method NS.X.A.","testApp.cs",9);
mtouch.AssertError(4170,"The registrar can't convert from 'System.Nullable`1<System.DateTime>' to 'Foundation.NSNumber' for the return value in the method NS.X.B.","testApp.cs",12);
mtouch.AssertErrorCount(4/* errors are duplicated */);
mtouch.AssertError(4138,"The registrar cannot marshal the property type 'System.ConsoleColor' of the property 'NS.X.E'.","testApp.cs",23);
mtouch.AssertError(4138,"The registrar cannot marshal the property type 'System.Nullable`1<System.ConsoleColor>' of the property 'NS.X.F'.","testApp.cs",27);
mtouch.AssertError(4171,"The BindAs attribute on the parameter #1 is invalid: the BindAs type System.DateTime is different from the parameter type System.ConsoleColor.","testApp.cs",8);
mtouch.AssertError(4171,"The BindAs attribute on the parameter #1 is invalid: the BindAs type System.Nullable`1<System.DateTime> is different from the parameter type System.Nullable`1<System.ConsoleColor>.","testApp.cs",11);
mtouch.AssertError(4171,"The BindAs attribute on the return value of the method NS.X.C is invalid: the BindAs type System.DateTime is different from the return type System.ConsoleColor.","testApp.cs",15);
mtouch.AssertError(4171,"The BindAs attribute on the return value of the method NS.X.D is invalid: the BindAs type System.Nullable`1<System.DateTime> is different from the return type System.Nullable`1<System.ConsoleColor>.","testApp.cs",19);
mtouch.AssertErrorCount(8/* 2 errors are duplicated */);
mtouch.AssertError(4172,"The registrar can't convert from 'System.DateTime' to 'Foundation.NSNumber' for the parameter 'value' in the method NS.X.A.","testApp.cs",8);
mtouch.AssertError(4172,"The registrar can't convert from 'System.Nullable`1<System.DateTime>' to 'Foundation.NSNumber' for the parameter 'value' in the method NS.X.B.","testApp.cs",10);
mtouch.AssertError(4172,"The registrar can't convert from 'System.Nullable`1<System.Int32>[]' to 'Foundation.NSNumber[]' for the parameter 'value' in the method NS.X.D.","testApp.cs",12);
mtouch.AssertError(4172,"The registrar can't convert from 'System.Int32&' to 'Foundation.NSNumber' for the parameter 'value' in the method NS.X.E.","testApp.cs",14);
mtouch.AssertError(4172,"The registrar can't convert from 'System.Int32&' to 'Foundation.NSNumber' for the parameter 'value' in the method NS.X.F.","testApp.cs",16);
mtouch.AssertError(4172,"The registrar can't convert from 'System.Int32[0...,0...]' to 'Foundation.NSNumber[,]' for the parameter 'value' in the method NS.X.G.","testApp.cs",18);
mtouch.AssertError(4172,"The registrar can't convert from 'System.Nullable`1<System.Int32>[0...,0...]' to 'Foundation.NSNumber[,]' for the parameter 'value' in the method NS.X.H.","testApp.cs",20);
mtouch.AssertError(4172,"The registrar can't convert from 'NS.E' to 'Foundation.NSString' for the parameter 'value' in the method NS.EClass.A.","testApp.cs",27);
mtouch.AssertError(4172,"The registrar can't convert from 'System.Nullable`1<NS.E>[]' to 'Foundation.NSString[]' for the parameter 'value' in the method NS.EClass.D.","testApp.cs",29);
mtouch.AssertError(4174,"Unable to locate the block to delegate conversion method for the method NS.Consumer.ResolveRecipients's parameter #2.","testApp.cs",11);
mtouch.AssertError(4176,"Unable to locate the delegate to block conversion type for the return value of the method NS.Consumer.GetFunction.","testApp.cs",11);
mtouch.AssertError(4176,"Unable to locate the delegate to block conversion type for the return value of the method NS.Consumer.get_GetProperty.","testApp.cs",17);
if(line.Contains("warning: method 'paymentAuthorizationViewController:didAuthorizePayment:handler:' in protocol 'PKPaymentAuthorizationViewControllerDelegate' not implemented [-Wprotocol]"))
continue;// Xcode 9 beta 1: this method changed from optional to required.
mtouch.AssertError(4132,"The registrar found an invalid generic return type 'V' in the property 'Open`2.FooZap'. The return type must have an 'NSObject' constraint.","testApp.cs",9);
mtouch.AssertError(4132,"The registrar found an invalid generic return type 'V' in the property 'Open`2.Bar'. The return type must have an 'NSObject' constraint.","testApp.cs",12);
mtouch.AssertError(4128,"The registrar found an invalid generic parameter type 'V' in the parameter arg of the method 'Open`2.Foo(V)'. The generic parameter must have an 'NSObject' constraint.","testApp.cs",6);
mtouch.AssertError(4128,"The registrar found an invalid generic parameter type 'T' in the parameter foo of the method 'Parent`1/Nested.Foo(T)'. The generic parameter must have an 'NSObject' constraint.","testApp.cs",7);
mtouch.AssertError(4128,"The registrar found an invalid generic parameter type 'T' in the parameter t of the method 'GenericTestClass`1.Arg1(T)'. The generic parameter must have an 'NSObject' constraint.","testApp.cs",6);
mtouch.AssertError(4136,"The registrar cannot marshal the parameter type 'System.Collections.Generic.List`1<U>' of the parameter 'arg' in the method 'Open`1.Bar(System.Collections.Generic.List`1<U>)'","testApp.cs",7);
mtouch.CreateTemporaryApp(extraCode:code,usings:"using Foundation; using System; using System.Collections.Generic; using ObjCRuntime;",extraArgs:new[]{"/debug:full"});
mtouch.AssertError(4132,"The registrar found an invalid generic return type 'U' in the property 'Open`1.BarZap'. The return type must have an 'NSObject' constraint.","testApp.cs",15);
mtouch.AssertError(4132,"The registrar found an invalid generic return type 'U' in the property 'Open`1.F1'. The return type must have an 'NSObject' constraint.","testApp.cs",30);
mtouch.AssertError(4132,"The registrar found an invalid generic return type 'System.Collections.Generic.List`1<System.Collections.Generic.List`1<U>>' in the property 'Open`1.F2'. The return type must have an 'NSObject' constraint.","testApp.cs",33);
mtouch.AssertError(4132,"The registrar found an invalid generic return type 'System.Action`1<U>' in the property 'Open`1.F3'. The return type must have an 'NSObject' constraint.","testApp.cs",36);
mtouch.AssertError(4128,"The registrar found an invalid generic parameter type 'U' in the parameter arg of the method 'Open`1.Bar(U)'. The generic parameter must have an 'NSObject' constraint.","testApp.cs",6);
mtouch.AssertError(4128,"The registrar found an invalid generic parameter type 'U[]' in the parameter arg of the method 'Open`1.Zap(U[])'. The generic parameter must have an 'NSObject' constraint.","testApp.cs",9);
mtouch.AssertError(4129,"The registrar found an invalid generic return type 'U' in the method 'Open`1.XyZ()'. The generic return type must have an 'NSObject' constraint.","testApp.cs",12);
mtouch.AssertError(4129,"The registrar found an invalid generic return type 'System.Action`1<U>' in the method 'Open`1.ZapBar()'. The generic return type must have an 'NSObject' constraint.","testApp.cs",18);
mtouch.AssertError(4128,"The registrar found an invalid generic parameter type 'System.Action`1<U>' in the parameter f of the method 'Open`1.XyZ(System.Action`1<U>)'. The generic parameter must have an 'NSObject' constraint.","testApp.cs",21);
mtouch.AssertError(4128,"The registrar found an invalid generic parameter type 'System.Collections.Generic.List`1<System.Collections.Generic.List`1<System.Collections.Generic.List`1<System.Collections.Generic.List`1<U>>>>' in the parameter f of the method 'Open`1.FooZap(System.Collections.Generic.List`1<System.Collections.Generic.List`1<System.Collections.Generic.List`1<System.Collections.Generic.List`1<U>>>>)'. The generic parameter must have an 'NSObject' constraint.","testApp.cs",24);
mtouch.AssertError(4129,"The registrar found an invalid generic return type 'System.Collections.Generic.List`1<System.Collections.Generic.List`1<U>>' in the method 'Open`1.ZapBoo()'. The generic return type must have an 'NSObject' constraint.","testApp.cs",27);
mtouch.AssertError(4128,"The registrar found an invalid generic parameter type 'U&' in the parameter arg of the method 'Open`1.Bar(U&)'. The generic parameter must have an 'NSObject' constraint.","testApp.cs",6);
mtouch.AssertError(4128,"The registrar found an invalid generic parameter type 'U[]&' in the parameter arg of the method 'Open`1.Zap(U[]&)'. The generic parameter must have an 'NSObject' constraint.","testApp.cs",9);
mtouch.AssertError(4113,"The registrar found a generic method: 'GenericMethodClass.Foo(T)'. Exporting generic methods is not supported, and will lead to random behavior and/or crashes","testApp.cs",6);
mtouch.AssertError(4113,"The registrar found a generic method: 'GenericMethodClass.GenericMethod(T)'. Exporting generic methods is not supported, and will lead to random behavior and/or crashes","testApp.cs",8);
mtouch.AssertWarning(4174,"Unable to locate the block to delegate conversion method for the method GenericMethodClass.Foo's parameter #1.","testApp.cs",5);
mtouch.AssertError(4113,"The registrar found a generic method: 'NullableGenericTestClass`1.Z1(System.Nullable`1<Z>)'. Exporting generic methods is not supported, and will lead to random behavior and/or crashes","testApp.cs",12);
mtouch.AssertError(4113,"The registrar found a generic method: 'NullableGenericTestClass`1.Z2()'. Exporting generic methods is not supported, and will lead to random behavior and/or crashes","testApp.cs",17);
mtouch.AssertError(4113,"The registrar found a generic method: 'NullableGenericTestClass`1.Z3(Z)'. Exporting generic methods is not supported, and will lead to random behavior and/or crashes","testApp.cs",23);
mtouch.AssertError(4128,"The registrar found an invalid generic parameter type 'T' in the parameter foo of the method 'NullableGenericTestClass`1.T1(T)'. The generic parameter must have an 'NSObject' constraint.","testApp.cs",28);
mtouch.AssertError(4128,"The registrar found an invalid generic parameter type 'System.Nullable`1<T>' in the parameter foo of the method 'NullableGenericTestClass`1.T2(System.Nullable`1<T>)'. The generic parameter must have an 'NSObject' constraint.","testApp.cs",33);
mtouch.AssertError(4129,"The registrar found an invalid generic return type 'T' in the method 'NullableGenericTestClass`1.T3()'. The generic return type must have an 'NSObject' constraint.","testApp.cs",38);
mtouch.AssertError(4136,"The registrar cannot marshal the parameter type 'System.Nullable`1<T>' of the parameter 'foo' in the method 'NullableGenericTestClass`1..ctor(System.Nullable`1<T>)'","testApp.cs",6);
mtouch.Linker=MTouchLinker.DontLink;// faster test
mtouch.AssertExecuteFailure();
mtouch.AssertError(4113,"The registrar found a generic method: 'G.Foo1(System.Int32)'. Exporting generic methods is not supported, and will lead to random behavior and/or crashes","testApp.cs",6);
mtouch.AssertError(4113,"The registrar found a generic method: 'G.Foo2(System.Int32)'. Exporting generic methods is not supported, and will lead to random behavior and/or crashes","testApp.cs",9);
mtouch.AssertError(4113,"The registrar found a generic method: 'G.Foo3(X)'. Exporting generic methods is not supported, and will lead to random behavior and/or crashes","testApp.cs",12);
mtouch.AssertError(4177,$"The 'ProtocolType' parameter of the 'Adopts' attribute used in class 'TestInvalidChar{i}' contains an invalid character. Value used: 'Foo{str}' Invalid Char: '{c}'");
mtouch.AssertWarning(4179,$"The registrar found the abstract type 'SomeNativeObject' in the signature for 'C.get_M3'. Abstract types should not be used in the signature for a member exported to Objective-C.","testApp.cs",27);
mtouch.AssertWarning(4179,$"The registrar found the abstract type 'SomeNativeObject' in the signature for 'C.set_M3'. Abstract types should not be used in the signature for a member exported to Objective-C.","testApp.cs",28);
mtouch.AssertWarning(4179,$"The registrar found the abstract type 'SomeNativeObject' in the signature for 'C.M1'. Abstract types should not be used in the signature for a member exported to Objective-C.","testApp.cs",16);
mtouch.AssertWarning(4179,$"The registrar found the abstract type 'SomeNativeObject' in the signature for 'C.M2'. Abstract types should not be used in the signature for a member exported to Objective-C.","testApp.cs",21);