-
Notifications
You must be signed in to change notification settings - Fork 508
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error MT4109 : Failed to compile the generated registrar code. #19257
Comments
I haven't seen this error before, would you be able to create a test project to reproduce this, or give us access to your project? |
@rolfbjarne this happens in every Xamarin.Forms project I tried to Archive for iOS publishing. So I guess it's a general problem with Xamarin.Forms projects. I cannot share my projects and I don't have the time again to play beta tester for Microsoft releasing unfinished products. |
I figured out the cause: it happens when building Objective-C++ for armv7. The problem is that Apple's headers in Xcode 15 are broken when building for armv7. Just a single line of Objective-C code triggers the error:
So this will show the error: $ echo "#import <ModelIO/ModelIO.h>" |
/Applications/Xcode_15.0.0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang \
-isysroot /Applications/Xcode_15.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.0.sdk \
-arch armv7 \
-x objective-c++ \
-c \
-
In file included from <stdin>:1:
In file included from /Applications/Xcode_15.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.0.sdk/System/Library/Frameworks/ModelIO.framework/Headers/ModelIO.h:10:
In file included from /Applications/Xcode_15.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.0.sdk/System/Library/Frameworks/ModelIO.framework/Headers/MDLAsset.h:10:
In file included from /Applications/Xcode_15.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.0.sdk/System/Library/Frameworks/ModelIO.framework/Headers/MDLObject.h:9:
In file included from /Applications/Xcode_15.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.0.sdk/System/Library/Frameworks/ModelIO.framework/Headers/MDLTypes.h:13:
In file included from /Applications/Xcode_15.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.0.sdk/usr/include/simd/simd.h:23:
/Applications/Xcode_15.0.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.0.sdk/usr/include/simd/matrix.h:1105:25: error: use of undeclared identifier 'vzip1q_f32'; did you mean 'vzipq_f32'?
simd_float4 __r01 = vzip1q_f32(__x0, __x1);
^
[...] There's not much we can do about this, and I don't think filing an issue with Apple will fix anything, since armv7 is deprecated. I wasn't even able to create a test project in Xcode 15, because Xcode fails the build immediately with:
This means the fix is to remove Alternatively you may try to continue using Xcode 14.3. |
I just checked and |
According to your binlog, this file:
has numerous ARMv7 entries: <MtouchArch>ARMv7, ARM64</MtouchArch> |
Steps to Reproduce
Expected Behavior
It works.
Actual Behavior
It does not work.
Environment
Version information
Build Logs
tmpMHSj6i.binlog.zip
Example Project (If Possible)
The text was updated successfully, but these errors were encountered: