Skip to content

[Xcode16] Allow the runtime to compile with Xcode 16 beta 2. - #5

Closed
mandel-macaque wants to merge 1 commit into
rolfbjarne:xcode16-rolffrom
mandel-macaque:xcode16-rolf
Closed

mandel-macaque wants to merge 1 commit into
rolfbjarne:xcode16-rolffrom
mandel-macaque:xcode16-rolf

Conversation

@mandel-macaque

Copy link
Copy Markdown

No description provided.

@rolfbjarne rolfbjarne left a comment •

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't use a fork :)

Also the correct target branch is dev/rolf/xcode16-rolf on origin, not my fork.

rolfbjarne added a commit that referenced this pull request Apr 24, 2025
…nstructions change. (dotnet#22565)

Fixes these test failures when running a release build with all optimizations and the static registrar:

    MonoTouchFixtures.AppKit.NSGridViewTest
    	[FAIL] CreateWithNSViewArrayOfArrayCheckDifferentArrayLength : System.InvalidProgramException : InvalidProgram_Default
    		   at AppKit.NSGridView.Create(NSView[][])
    		   at MonoTouchFixtures.AppKit.NSGridViewTest.CreateWithNSViewArrayOfArrayCheckDifferentArrayLength()
    		   at System.RuntimeMethodHandle.InvokeMethod(Object, Void**, Signature, Boolean)
    		   at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
    		   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object, BindingFlags)
    	[FAIL] CreateWithNSViewArrayOfArrayCheckNSTextView : System.InvalidProgramException : InvalidProgram_Default
    		   at AppKit.NSGridView.Create(NSView[][])
    		   at MonoTouchFixtures.AppKit.NSGridViewTest.CreateWithNSViewArrayOfArrayCheckNSTextView()
    		   at System.RuntimeMethodHandle.InvokeMethod(Object, Void**, Signature, Boolean)
    		   at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
    		   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object, BindingFlags)
    	[FAIL] CreateWithNSViewArrayOfArrayCheckWithNull :   Broken Array #3
      Expected: <System.ArgumentNullException>
      But was:  <System.InvalidProgramException: InvalidProgram_Default
       at AppKit.NSGridView.Create(NSView[][])
       at MonoTouchFixtures.AppKit.NSGridViewTest.<>c__DisplayClass6_0.<CreateWithNSViewArrayOfArrayCheckWithNull>b__0()
       at NUnit.Framework.Assert.Throws(IResolveConstraint, TestDelegate, String, Object[] )>

    		   at MonoTouchFixtures.AppKit.NSGridViewTest.CreateWithNSViewArrayOfArrayCheckWithNull()
    	[FAIL] CreateWithNSViewArrayOfArrayCheckWithNullArray :   Broken Array #2
      Expected: <System.ArgumentNullException>
      But was:  <System.InvalidProgramException: InvalidProgram_Default
       at AppKit.NSGridView.Create(NSView[][])
       at MonoTouchFixtures.AppKit.NSGridViewTest.<>c__DisplayClass5_0.<CreateWithNSViewArrayOfArrayCheckWithNullArray>b__0()
       at NUnit.Framework.Assert.Throws(IResolveConstraint, TestDelegate, String, Object[] )>

    		   at MonoTouchFixtures.AppKit.NSGridViewTest.CreateWithNSViewArrayOfArrayCheckWithNullArray()
    	[FAIL] CreateWithNSViewArrayOfArrayCheckWithNullNSView :   Broken Array #1
      Expected: <System.ArgumentNullException>
      But was:  <System.InvalidProgramException: InvalidProgram_Default
       at AppKit.NSGridView.Create(NSView[][])
       at MonoTouchFixtures.AppKit.NSGridViewTest.<>c__DisplayClass4_0.<CreateWithNSViewArrayOfArrayCheckWithNullNSView>b__0()
       at NUnit.Framework.Assert.Throws(IResolveConstraint, TestDelegate, String, Object[] )>

    		   at MonoTouchFixtures.AppKit.NSGridViewTest.CreateWithNSViewArrayOfArrayCheckWithNullNSView()
    	[FAIL] CreateWithTwoDimensionalNSViewArrayCheckDifferentDimensionSize : System.InvalidProgramException : InvalidProgram_Default
    		   at AppKit.NSGridView.Create(NSView[,])
    		   at MonoTouchFixtures.AppKit.NSGridViewTest.CreateWithTwoDimensionalNSViewArrayCheckDifferentDimensionSize()
    		   at System.RuntimeMethodHandle.InvokeMethod(Object, Void**, Signature, Boolean)
    		   at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
    		   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object, BindingFlags)
    	[FAIL] CreateWithTwoDimensionalNSViewArrayCheckWithNull :   Broken Array #4
      Expected: <System.ArgumentNullException>
      But was:  <System.InvalidProgramException: InvalidProgram_Default
       at AppKit.NSGridView.Create(NSView[,])
       at MonoTouchFixtures.AppKit.NSGridViewTest.<>c__DisplayClass7_0.<CreateWithTwoDimensionalNSViewArrayCheckWithNull>b__0()
       at NUnit.Framework.Assert.Throws(IResolveConstraint, TestDelegate, String, Object[] )>

    		   at MonoTouchFixtures.AppKit.NSGridViewTest.CreateWithTwoDimensionalNSViewArrayCheckWithNull()
    	[FAIL] CreateWithTwoDimensionalNSViewArrayNSTextView : System.InvalidProgramException : InvalidProgram_Default
    		   at AppKit.NSGridView.Create(NSView[,])
    		   at MonoTouchFixtures.AppKit.NSGridViewTest.CreateWithTwoDimensionalNSViewArrayNSTextView()
    		   at System.RuntimeMethodHandle.InvokeMethod(Object, Void**, Signature, Boolean)
    		   at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
    		   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object, BindingFlags)
    	[FAIL] CreateWithTwoDimensionalNSViewArrayWithNullCell :   Broken Array #5
      Expected: <System.ArgumentNullException>
      But was:  <System.InvalidProgramException: InvalidProgram_Default
       at AppKit.NSGridView.Create(NSView[,])
       at MonoTouchFixtures.AppKit.NSGridViewTest.<>c__DisplayClass8_0.<CreateWithTwoDimensionalNSViewArrayWithNullCell>b__0()
       at NUnit.Framework.Assert.Throws(IResolveConstraint, TestDelegate, String, Object[] )>

    		   at MonoTouchFixtures.AppKit.NSGridViewTest.CreateWithTwoDimensionalNSViewArrayWithNullCell()
rolfbjarne added a commit that referenced this pull request Apr 24, 2025
…en not needed. (dotnet#22564)

We can simply change operands of existing instructions instead.

Fixes these test failures:

    MonoTouchFixtures.AppKit.NSGridViewTest
    	[FAIL] CreateWithNSViewArrayOfArrayCheckDifferentArrayLength : System.InvalidProgramException : InvalidProgram_Default
    		   at AppKit.NSGridView.Create(NSView[][])
    		   at MonoTouchFixtures.AppKit.NSGridViewTest.CreateWithNSViewArrayOfArrayCheckDifferentArrayLength()
    		   at System.RuntimeMethodHandle.InvokeMethod(Object, Void**, Signature, Boolean)
    		   at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
    		   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object, BindingFlags)
    	[FAIL] CreateWithNSViewArrayOfArrayCheckNSTextView : System.InvalidProgramException : InvalidProgram_Default
    		   at AppKit.NSGridView.Create(NSView[][])
    		   at MonoTouchFixtures.AppKit.NSGridViewTest.CreateWithNSViewArrayOfArrayCheckNSTextView()
    		   at System.RuntimeMethodHandle.InvokeMethod(Object, Void**, Signature, Boolean)
    		   at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
    		   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object, BindingFlags)
    	[FAIL] CreateWithNSViewArrayOfArrayCheckWithNull :   Broken Array #3
      Expected: <System.ArgumentNullException>
      But was:  <System.InvalidProgramException: InvalidProgram_Default
       at AppKit.NSGridView.Create(NSView[][])
       at MonoTouchFixtures.AppKit.NSGridViewTest.<>c__DisplayClass6_0.<CreateWithNSViewArrayOfArrayCheckWithNull>b__0()
       at NUnit.Framework.Assert.Throws(IResolveConstraint, TestDelegate, String, Object[] )>

    		   at MonoTouchFixtures.AppKit.NSGridViewTest.CreateWithNSViewArrayOfArrayCheckWithNull()
    	[FAIL] CreateWithNSViewArrayOfArrayCheckWithNullArray :   Broken Array #2
      Expected: <System.ArgumentNullException>
      But was:  <System.InvalidProgramException: InvalidProgram_Default
       at AppKit.NSGridView.Create(NSView[][])
       at MonoTouchFixtures.AppKit.NSGridViewTest.<>c__DisplayClass5_0.<CreateWithNSViewArrayOfArrayCheckWithNullArray>b__0()
       at NUnit.Framework.Assert.Throws(IResolveConstraint, TestDelegate, String, Object[] )>

    		   at MonoTouchFixtures.AppKit.NSGridViewTest.CreateWithNSViewArrayOfArrayCheckWithNullArray()
    	[FAIL] CreateWithNSViewArrayOfArrayCheckWithNullNSView :   Broken Array #1
      Expected: <System.ArgumentNullException>
      But was:  <System.InvalidProgramException: InvalidProgram_Default
       at AppKit.NSGridView.Create(NSView[][])
       at MonoTouchFixtures.AppKit.NSGridViewTest.<>c__DisplayClass4_0.<CreateWithNSViewArrayOfArrayCheckWithNullNSView>b__0()
       at NUnit.Framework.Assert.Throws(IResolveConstraint, TestDelegate, String, Object[] )>

    		   at MonoTouchFixtures.AppKit.NSGridViewTest.CreateWithNSViewArrayOfArrayCheckWithNullNSView()
    	[FAIL] CreateWithTwoDimensionalNSViewArrayCheckDifferentDimensionSize : System.InvalidProgramException : InvalidProgram_Default
    		   at AppKit.NSGridView.Create(NSView[,])
    		   at MonoTouchFixtures.AppKit.NSGridViewTest.CreateWithTwoDimensionalNSViewArrayCheckDifferentDimensionSize()
    		   at System.RuntimeMethodHandle.InvokeMethod(Object, Void**, Signature, Boolean)
    		   at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
    		   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object, BindingFlags)
    	[FAIL] CreateWithTwoDimensionalNSViewArrayCheckWithNull :   Broken Array #4
      Expected: <System.ArgumentNullException>
      But was:  <System.InvalidProgramException: InvalidProgram_Default
       at AppKit.NSGridView.Create(NSView[,])
       at MonoTouchFixtures.AppKit.NSGridViewTest.<>c__DisplayClass7_0.<CreateWithTwoDimensionalNSViewArrayCheckWithNull>b__0()
       at NUnit.Framework.Assert.Throws(IResolveConstraint, TestDelegate, String, Object[] )>

    		   at MonoTouchFixtures.AppKit.NSGridViewTest.CreateWithTwoDimensionalNSViewArrayCheckWithNull()
    	[FAIL] CreateWithTwoDimensionalNSViewArrayNSTextView : System.InvalidProgramException : InvalidProgram_Default
    		   at AppKit.NSGridView.Create(NSView[,])
    		   at MonoTouchFixtures.AppKit.NSGridViewTest.CreateWithTwoDimensionalNSViewArrayNSTextView()
    		   at System.RuntimeMethodHandle.InvokeMethod(Object, Void**, Signature, Boolean)
    		   at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
    		   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object, BindingFlags)
    	[FAIL] CreateWithTwoDimensionalNSViewArrayWithNullCell :   Broken Array #5
      Expected: <System.ArgumentNullException>
      But was:  <System.InvalidProgramException: InvalidProgram_Default
       at AppKit.NSGridView.Create(NSView[,])
       at MonoTouchFixtures.AppKit.NSGridViewTest.<>c__DisplayClass8_0.<CreateWithTwoDimensionalNSViewArrayWithNullCell>b__0()
       at NUnit.Framework.Assert.Throws(IResolveConstraint, TestDelegate, String, Object[] )>

    		   at MonoTouchFixtures.AppKit.NSGridViewTest.CreateWithTwoDimensionalNSViewArrayWithNullCell()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants