Skip to content
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. #15951

Closed
idzikovski opened this issue Sep 13, 2022 · 13 comments
Closed

Error MT4109: Failed to compile the generated registrar code. #15951

idzikovski opened this issue Sep 13, 2022 · 13 comments

Comments

@idzikovski
Copy link

idzikovski commented Sep 13, 2022

My Xamarin.iOS application fails to build after an automatic Xcode update. This issue seems to be the same as these two: #7049 and #7047. Is there a Xamarin.iOS preview version available already that would allow me to be able to build Xamarin.iOS applications?

Steps to Reproduce

  1. Install Xamarin.iOS Version: 15.12.0.2
  2. Install Xcode version 14.0

Expected Behavior

Xamarin.iOS Application builds successfully.

Actual Behavior

The build fails with Error MT4109: Failed to compile the generated registrar code.

Environment

Version information
Xamarin.iOS Version: 15.12.0.2 

Xcode version 14.0
@linnkrb
Copy link

linnkrb commented Sep 13, 2022

Happens to me to :-(

@lagmac
Copy link

lagmac commented Sep 13, 2022

The same error happens to me too. Is there a release date for Xamarin iOS 16 or a schedule (one week, two week, 3 days, 1 month)?

@KevinJalais
Copy link

Got the same error here too. I have the exact same versions as @idzikovski.
@rolfbjarne, are you still around? Any information would be really appreciated.
Thx.

@MrtnSys
Copy link

MrtnSys commented Sep 13, 2022

Oh man. Every major update you have to fear destroyment of your development environment.

My Xamarin Forms Apps are affected by the bug Shell TitleView Not Working in iOS 16 [Bug] #15512 on iOS 16 now. To investigate the problem I updated MacOS to v12.6 Monterey, afterwards Xcode to v14.0, then Visual Studio 2022 to v17.3.3 and Xamarion iOS to v15.12.0.2

Now the iOS Simulators are not visible in Visual Studio anymore and I get these two errors when trying to start my project on an local iPhone:

Error MT4109: Failed to compile the generated registrar code.

Error HE0004: Could not load the framework 'DVTITunesSoftwareServiceFoundation' (path: /Applications/Xcode.app/Contents/SharedFrameworks/DVTITunesSoftwareServiceFoundation.framework/DVTITunesSoftwareServiceFoundation)

@MateuszLas421
Copy link

The same error

@it11111111
Copy link

Same error here

@dmoodz
Copy link

dmoodz commented Sep 13, 2022

Same here. Does anyone have a workaround, even if it's painful? Or are we screwed if XCode is updated?

@Confusedfish
Copy link

I uninstalled XCode from the Mac, downloaded the previous version and installed that. My simulators are back in VS but not had time to test on a physical device yet but so far signs are good.

@adam-russell
Copy link

adam-russell commented Sep 13, 2022

@idzikovski You can download an automated build of Xamarin.iOS that will work with Xcode 14.

On this page: #15581

See the first comment by dalexsoto.

The package name will look something like xamarin.ios-15.99.0.464.pkg when you download it.

I'm using Xamarin.iOS from the current top change there locally (9a839d6) and seems OK for me.

@MrtnSys I would try the custom renderer I posted on that issue for TitleView. I've had it in production for a while now, and it seems OK so far (no crashes that point to it or anything, and no users have complained). I wouldn't expect a fix in Xamarin Forms soon, though hopefully I'm wrong (I agree that should be a critical issue.. because it's also broken in iOS 16 if you built using old tools).

@mphill
Copy link

mphill commented Sep 13, 2022

@dmoodz

If you downgrade, double check this settings:

image

@it11111111
Copy link

Same here. Does anyone have a workaround, even if it's painful? Or are we screwed if XCode is updated?

I uninstalled Xcode 14.0 and rolled back to the previous version. You can find it here:
https://developer.apple.com/download/all/?q=xcode

Wont upgrade to 14.0 until I know it's working for everyone else lol

@filipkristo
Copy link

filipkristo commented Sep 13, 2022

@idzikovski You can download an automated build of Xamarin.iOS that will work with Xcode 14.

On this page: #15581

See the first comment by dalexsoto.

The package name will look something like xamarin.ios-15.99.0.464.pkg when you download it.

I'm using Xamarin.iOS from the current top change there locally (9a839d6) and seems OK for me.

@MrtnSys I would try the custom renderer I posted on that issue for TitleView. I've had it in production for a while now, and it seems OK so far (no crashes that point to it or anything, and no users have complained). I wouldn't expect a fix in Xamarin Forms soon, though hopefully I'm wrong (I agree that should be a critical issue.. because it's also broken in iOS 16 if you built using old tools).

It worked for me!! iOS simulator is shown, but I still have the same error if I want to deploy to the physical device...
Did anyone else have the same issue? When deploying from Mac to iPhone.

@dalexsoto
Copy link
Member

Hello, Xcode 14 was released yesterday, we are still ironing out some issues. Please refer to #15954 for additional steps.

Thanks a lot for opening this issue. I'll lock it down to avoid confusion and be redirected to the one above.

@xamarin xamarin locked as resolved and limited conversation to collaborators Sep 13, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests