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

[META] Xcode 16.0 Support for .NET 8/9 and MAUI #20802

Closed
dalexsoto opened this issue Jul 2, 2024 · 151 comments
Closed

[META] Xcode 16.0 Support for .NET 8/9 and MAUI #20802

dalexsoto opened this issue Jul 2, 2024 · 151 comments
Labels
iOS Issues affecting iOS macOS Issues affecting macOS
Milestone

Comments

@dalexsoto
Copy link
Member

dalexsoto commented Jul 2, 2024

⚠️ Xcode 16 support is now released for .NET 8, please see release notes https://github.com/xamarin/xamarin-macios/releases/tag/dotnet-8.0.1xx-xcode16.0-8303 for installation instructions. This version of the macios workloads will be also included in the next version of Visual Studio 17.11.5.


The current plan is to release Xcode 16 support with .NET 8 soon and with .NET 9 in November (.NET 9 RC 2 will also contain Xcode 16 support).

The current stable version of our workload is not compatible with Xcode 16. We recommend against upgrading until we've released support for Xcode 16.

Warning

Xcode 15.4 does not support macOS 15 (Sequoia). This also means that we don't recommend upgrading your macOS development machines until we've released support for Xcode 16.


You can follow our progress here:

https://github.com/xamarin/xamarin-macios/wiki/xcode16.0-Bindings-Status

@dalexsoto dalexsoto added macOS Issues affecting macOS iOS Issues affecting iOS labels Jul 2, 2024
@dalexsoto dalexsoto added this to the xcode16 milestone Jul 2, 2024
@suchithm
Copy link

Any timeline estimated for Xcode 16.0 Support release ?
@dalexsoto @drasticactions

@rolfbjarne
Copy link
Member

The current plan (which may change at any point) is to do what we did last year: release Xcode 16.0 support with the new .NET version (so with .NET 9 this year).

@kerams
Copy link

kerams commented Aug 2, 2024

Does that mean November at the earliest? I made the unfortunate decision to install Sequoia beta and it does not support Xcode 15. So the question is whether I should consider reverting if Xcode 16 support is still a good 3 months away.

@rolfbjarne
Copy link
Member

Does that mean November at the earliest?

Correct.

@appnwessel
Copy link

  1. Will Microsoft not release a .NET 8 iOS 18 package?
  2. Must we upgrade to .NET 9?
  3. Is there no way to target and consume iOS 18 APIs before November, which is ~2 months after iOS 18 goes live in September?

@rolfbjarne
Copy link
Member

  1. Will Microsoft not release a .NET 8 iOS 18 package?
  2. Must we upgrade to .NET 9?

That's the current plan.

  1. Is there no way to target and consume iOS 18 APIs before November, which is ~2 months after iOS 18 goes live in September?

We're working on releasing previews before November.

@MoienTajik
Copy link

MoienTajik commented Sep 12, 2024

Now that we have reached .NET 9 RC1 along with stable iOS 18, will there be a preview release for this soon?

I currently get this error when try to run my .NET 9 RC1 project in Debug mode on iOS 17 & 18 physical devices on macOS Sequoia with Xcode 16:

Error running 'MyApplication1'
Failed to install application on device Moien’s iPhone: error HE0004: Could not load the framework 'IDEDistribution' (path: /Applications/Xcode.app/Contents/SharedFrameworks/IDEDistribution.framework/Versions/A/IDEDistribution):
dlopen(/Applications/Xcode.app/Contents/SharedFrameworks/IDEDistribution.framework/Versions/A/IDEDistribution, 0x0001): Library not loaded: @rpath/AppThinning.framework/Versions/A/AppThinning
Referenced from: <33FF2F3B-A96F-37B4-BA4E-88D882BF9D> /Applications/Xcode.app/Contents/SharedFrameworks/IDEDistribution.framework/Versions/A/IDEDistribution
Reason: tried: '/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk.net9.0_17.5/17.5.9270-net9-rc1/tools/lib/mlaunch/mlaunch.app/Contents/Frameworks/AppThinning.framework/Versions/A/AppThinning' (no such file), '/Applications/Xcode.app/Contents/SharedFrameworks/IDEDistribution.framework/Versions/A/AppThinning.framework/Versions/A/AppThinning' (no such file), '/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk.net9.0_17.5/17.5.9270-net9-rc1/tools/lib/mlaunch/mlaunch.app/Contents/MonoBundle/AppThinning.framework/Versions/A/AppThinning' (no such file)

@vhugogarcia
Copy link

vhugogarcia commented Sep 17, 2024

Well, I think I updated without notification from macOS. Somehow I had automatic updates enabled, and I did not see this post before applying the update.

I believe I need to rollback the macOS and XCode as well somehow 😢.

Update
In case you are on the same situation, I think I can only downgrade my Mac using macOS Recovery or a bootable USB.

@BrandanN21
Copy link

@vhugogarcia You can downgrade your xcode version by installing it via the developer portal https://developer.apple.com/download/all/ and finding xcode 15.4 (or any other previous version you want installed). You can have multiple xcode installs at the same time.

I have xcode 16 and 15.4 installed. You will just need to ensure that your pointing to the correct command line tools (15.4) in order to get the app building correctly.

As for the MacOS downgrade I'm not sure the best way to do that. Hope that this helps a little bit!

@bpmccarty
Copy link

bpmccarty commented Sep 17, 2024

I have a workaround for the people who have upgraded to MacOS Sequoia. If you download the very first XCode 16 beta which was released on June 10th, it will work with MAUI and .NET 8 (and .NET 9 Preview). I have been using this setup for the past couple of months. Here is the link to download:

https://download.developer.apple.com/Developer_Tools/Xcode_16_beta/Xcode_16_beta.xip

@vhugogarcia
Copy link

vhugogarcia commented Sep 17, 2024

@vhugogarcia You can downgrade your xcode version by installing it via the developer portal https://developer.apple.com/download/all/ and finding xcode 15.4 (or any other previous version you want installed). You can have multiple xcode installs at the same time.

I have xcode 16 and 15.4 installed. You will just need to ensure that your pointing to the correct command line tools (15.4) in order to get the app building correctly.

As for the MacOS downgrade I'm not sure the best way to do that. Hope that this helps a little bit!

Thanks @BrandanN21 for pointing it out. I was able to download the version 15.4 from the developer portal, and I'm able to run XCode in macOS Sequoia using the command line as shown below:
image

I also checked XCode and I can confirm the command line version is selected correctly:
image

However, on VS Code, when I try to run the app on the selected simulator I get the following error message:
image
and if I click no Debug anyway, I get the next error:
image

However, when I run dotnet workload list I get
image

The launch.json only has this content:

{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "name": ".NET MAUI",
            "type": "maui",
            "request": "launch",
            "preLaunchTask": "maui: Build"
        }
    ]
}

Update: I noticed, I replaced XCode 16 with the one I downloaded. Let me install the version XCode 16 from app store and leave the other installed somehow.

Update #2: I installd both versions of XCode and updated the commandlines and confirmed that we are using the right version of XCode by using xcode-select command in terminal, and the issue still persists.

I'm not sure where exactly to look now hehehe! any hint or recommendation?

@vhugogarcia
Copy link

@rolfbjarne I noticed that you merged this PR which I believe brings support for XCode 16 and macOS Sequoia. #21193

Do you think is there a way you can release maybe a preview of the macios SDK, so we can install it and test it as well? please 🙏🏻

@dhewitson
Copy link

dhewitson commented Sep 18, 2024

I have a workaround for the people who have upgraded to MacOS Sequoia. If you download the very first XCode 16 beta which was released on June 10th, it will work with MAUI and .NET 8 (and .NET 9 Preview). I have been using this setup for the past couple of months. Here is the link to download:

https://download.developer.apple.com/Developer_Tools/Xcode_16_beta/Xcode_16_beta.xip

@bpmccarty You're a life saver!

@skullboypl
Copy link

skullboypl commented Sep 18, 2024

I have a workaround for the people who have upgraded to MacOS Sequoia. If you download the very first XCode 16 beta which was released on June 10th, it will work with MAUI and .NET 8 (and .NET 9 Preview). I have been using this setup for the past couple of months. Here is the link to download:

https://download.developer.apple.com/Developer_Tools/Xcode_16_beta/Xcode_16_beta.xip

for me i can see simulators on Windows Visual Studio but its not starting simulator like in a loop "Checking connection to simulator" "Conneting to pc Mac" "Conneted" and loop

@steven-pearson
Copy link

Not a great position. Can’t believe you’re recommending not upgrading to macOS 15! MS has known that it would be in this position for best part of 3 months - quite poor.

Hopefully some way of SxS loading Xcode 15.4 will work.

@vhugogarcia
Copy link

I have a workaround for the people who have upgraded to MacOS Sequoia. If you download the very first XCode 16 beta which was released on June 10th, it will work with MAUI and .NET 8 (and .NET 9 Preview). I have been using this setup for the past couple of months. Here is the link to download:

https://download.developer.apple.com/Developer_Tools/Xcode_16_beta/Xcode_16_beta.xip

I have tried this solution without luck. I have installed Xcode 16 and XCode 16 Beta 1, should I uninstall the final version and just leave the Beta 1?

I keep getting the same error as before:
image
image

@redradist
Copy link

Not a great position. Can’t believe you’re recommending not upgrading to macOS 15! MS has known that it would be in this position for best part of 3 months - quite poor.

Hopefully some way of SxS loading Xcode 15.4 will work.

As for me it also strange, because demo Flutter app work out the box on new MacOS Sequoia

@cbogner85
Copy link

Same here, accidentally updated to Sequoia and now I'm lost... luckily my Macbook isn't updated yet, so at least I can debug iOS there. Hope to see a solution shortly.

@lszl84
Copy link

lszl84 commented Sep 18, 2024

Not a great position. Can’t believe you’re recommending not upgrading to macOS 15! MS has known that it would be in this position for best part of 3 months - quite poor.

Hopefully some way of SxS loading Xcode 15.4 will work.

Exactly. They've had months to prepare, and this feels highly disrespectful to MAUI developers. It's surprising and disappointing to see this level of unprofessionalism from any company, let alone Microsoft.

@christophedelanghe
Copy link

@rolfbjarne : This is unbelievable. Sequoia has been released, and XCode16 is out, but support for Maui isn't planned until November? Where are the good old days when Xamarin took pride in providing support for new versions the very next day?
Where is this headed? Does Microsoft have so little respect for MAUI developers?

@jaysidri
Copy link

jaysidri commented Sep 18, 2024

Everybody calm down and take a breath -- the solution is pretty simple if you've upgraded early (it's there if you read the comment thread). Apple isn't going to mandate apps built with Xcode16 until next year.

Link to comment with solution: #20802 (comment)

@rolfbjarne
Copy link
Member

but @Ashishkumar5699 says yes? I don't understand?

A Xamarin.Forms app might work on iOS 18, and you might be able to build a Xamarin.Forms app from the command line when using Xcode 16, but afaik Visual Studio for Mac is not able to launch/debug apps when using Xcode 16 / on an iOS 18 device.

@giuseppenovielli
Copy link

@rolfbjarne interesting what is the command?
So i can edit code with Visual Studio for Mac, debug with 'Console' app on my Mac and release AppStore with command line tools?

@VladimirPlatun
Copy link

@rolfbjarne Сan I use Xcode 16 to run the application through debugger and emulators with ios version <18? If so, how, because at the moment, all the emulators are gone

@rolfbjarne
Copy link
Member

@rolfbjarne interesting what is the command? So i can edit code with Visual Studio for Mac, debug with 'Console' app on my Mac and release AppStore with command line tools?

I haven't seen anything indicating that this isn't possible.

Note that since Xamarin.iOS is not supported anymore, it may break (if it even works) at any point, and we won't fix it.

To build from the command line:

msbuild path/to/myproject.cs /p:Platform=iPhone[Simulator]

To install on a device:

VSMac uses an internal command-line tool called mlaunch. The easiest way to figure out how it's used is probably to launch on device (using Xcode 15.4), and then look at the process list by doing something like ps aux | grep mlaunch. Note that you have to sprinkle in quotes as needed, because ps doesn't show those.

And then you can see Console.WriteLines in the Console app.

@rolfbjarne Сan I use Xcode 16 to run the application through debugger and emulators with ios version <18?

AFAIK no.

@Cholponai02
Copy link

Cholponai02 commented Oct 3, 2024

Hello everyone, I have the same problem with launching a project, it won't build.

Yesterday I updated MacOS to Sequoia 15, and the project stopped building on MAUI
Xcode version 16
VS Code 1.92.0 (universal)

I'm new to using MacOS, I read all the above tips, but I'm confused

@trucidare
Copy link

trucidare commented Oct 5, 2024

Copy the AppThinning to the mlaunch app. (Here the rc.1 version)

cd /usr/local/share/dotnet/packs/Microsoft.iOS.Sdk.net9.0_17.5/17.5.9270-net9-rc1/tools/lib/mlaunch/mlaunch.app/Contents/
sudo mkdir Frameworks
sudo cp -r /Applications/Xcode.app/Contents/SharedFrameworks/AppThinning.framework ./Frameworks

@crishoj
Copy link

crishoj commented Oct 7, 2024

Thanks @trucidare!

With .NET SDK 8.0.402 / iOS workload 18.0.8303/8.0.100, I was able to resolve the IDEDistribution /AppThinning issue with a similar copy:

cd /Library/Frameworks/Xamarin.iOS.framework/Versions/16.4.0.23/lib/mlaunch/mlaunch.app/Contents
sudo mkdir Frameworks
sudo cp -r /Applications/Xcode.app/Contents/SharedFrameworks/AppThinning.framework ./Frameworks

@dev-xam
Copy link

dev-xam commented Oct 8, 2024

Thanks @trucidare and @crishoj for solving issue with "IDEDistribution". After your tip I was finally able to build and debug Xamarin Forms app on iOS simulator 18 using macOS Sequoia, Xcode 16.0, Visual Studio 17.11.4 and .NET SDK 8.0.402.

@MoienTajik
Copy link

MoienTajik commented Oct 8, 2024

.NET 9 RC2 is out, but the issue is not fixed and the app crashes ... here are the new errors:

/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk.net9.0_18.0/18.0.9600-net9-rc2/tools/bin/mlaunch --devname "Moien's iPhone" --killdev ai.MyApplication --launchdev /Users/moientajik/Personal/MyApplication/src/frontend/MyApplication.Client.Mobile/bin/Debug/net9.0-ios/ios-arm64/MyApplication.Client.Mobile.app --wait-for-unlock --argument=-connection-mode --argument=wifi -sdk 15.0 --argument=-monodevelop-port --argument=10001 --setenv=__XAMARIN_DEBUG_PORT__=10001 --sdkroot /Applications/Xcode-16.1.0-Beta.3.app/Contents/Developer
2024-10-09 00:08:29.274 mlaunch[54110:4247040] Requested but did not find extension point with identifier Xcode.IDEDebugger.VariablesViewQuickLookProvider for extension Xcode.SpriteKit.GKStateMachineQuickLookProvider of plug-in com.apple.IDESpriteKitParticleEditor
2024-10-09 00:08:29.275 mlaunch[54110:4247040] Requested but did not find extension point with identifier Xcode.IDEDebugger.VariablesViewQuickLookProvider for extension Xcode.IDEDebugger.SpriteKitQuickLookProvider of plug-in com.apple.IDESpriteKitParticleEditor
2024-10-09 00:08:29.280 mlaunch[54110:4247040] Requested but did not find extension point with identifier Xcode.IDEPlaygroundsKit.PlaygroundBottomBarExecutionAdaptor for extension Xcode.IDEPlaygroundEditor.IDEPlaygroundBottomBarExecutionAdaptor of plug-in com.apple.dt.IDEPlaygroundEditorPlugin
2024-10-09 00:08:29.281 mlaunch[54110:4247040] Requested but did not find extension point with identifier Xcode.DebuggerFoundation.DataSourceConnection for extension Xcode.DebuggerFoundation.watchOS.DataSourceConnectionTargetHub of plug-in com.apple.dt.IDEWatchSupportUI
2024-10-09 00:08:29.281 mlaunch[54110:4247040] Requested but did not find extension point with identifier Xcode.Xcode3ProjectSupport.InfoEditorSlice for extension Xcode.Xcode3ProjectSupport.InfoEditorSlice.WatchOS.BundleInfo of plug-in com.apple.dt.IDEWatchSupportUI
2024-10-09 00:08:29.281 mlaunch[54110:4247040] Requested but did not find extension point with identifier Xcode.Xcode3UI.Xcode3SupportedDestinations for extension IDEWatchSupportUI:IDEWatchSupportUI.plugindata/plug-in[1]/extension[11] of plug-in com.apple.dt.IDEWatchSupportUI
2024-10-09 00:08:29.281 mlaunch[54110:4247040] Requested but did not find extension point with identifier Xcode.DebuggerFoundation.ViewDescriber for extension Xcode.DebuggerFoundation.watchOS.ViewDescriber of plug-in com.apple.dt.IDEWatchSupportUI
2024-10-09 00:08:29.281 mlaunch[54110:4247040] Requested but did not find extension point with identifier Xcode.DebuggerFoundation.ViewDescriber for extension Xcode.DebuggerFoundation.watchOSSimulator.ViewDescriber of plug-in com.apple.dt.IDEWatchSupportUI
2024-10-09 00:08:29.281 mlaunch[54110:4247040] Requested but did not find extension point with identifier Xcode.Xcode3ProjectSupport.InfoEditorType for extension Xcode.Xcode3ProjectSupport.InfoEditorType.WatchOS.Bundle of plug-in com.apple.dt.IDEWatchSupportUI
2024-10-09 00:08:29.281 mlaunch[54110:4247040] Requested but did not find extension point with identifier Xcode.DebuggerFoundation.DataSourceConnection for extension Xcode.DebuggerFoundation.watchOSSimulator.DataSourceConnectionTargetHub of plug-in com.apple.dt.IDEWatchSupportUI
2024-10-09 00:08:29.281 mlaunch[54110:4247040] Requested but did not find extension point with identifier Xcode.IDEiOSSupportCore.iOSDeviceLocatorMapping for extension Xcode.IDEiOSSupportCore.iOSDeviceLocatorMapping.driverkit of plug-in com.apple.dt.IDEDriverKitSupportCore
2024-10-09 00:08:29.281 mlaunch[54110:4247040] Requested but did not find extension point with identifier Xcode.Xcode3UI.Xcode3SupportedDestinations for extension IDEDriverKitSupportUI:IDEDriverKitSupportUI.plugindata/plug-in[1]/extension[2] of plug-in com.apple.dt.IDEDriverKitSupportUI
2024-10-09 00:08:29.281 mlaunch[54110:4247040] Requested but did not find extension point with identifier Xcode.Xcode3UI.Xcode3SupportedDestinations for extension IDEOSXSupportUI:IDEOSXSupportUI.plugindata/plug-in[1]/extension[5] of plug-in com.apple.dt.IDEOSXSupportUI
2024-10-09 00:08:29.282 mlaunch[54110:4247040] Requested but did not find extension point with identifier Xcode.Xcode3UI.Xcode3SupportedDestinations for extension IDEVisionSupportUI:IDEVisionSupportUI.plugindata/plug-in[1]/extension[5] of plug-in com.apple.dt.IDEVisionSupportUI
2024-10-09 00:08:29.282 mlaunch[54110:4247040] Requested but did not find extension point with identifier Xcode.Xcode3ProjectSupport.InfoEditorType for extension Xcode.Xcode3ProjectSupport.InfoEditorType.Reality.Bundle of plug-in com.apple.dt.IDEVisionSupportUI
2024-10-09 00:08:29.282 mlaunch[54110:4247040] Requested but did not find extension point with identifier Xcode.Xcode3ProjectSupport.InfoEditorType for extension Xcode.Xcode3ProjectSupport.InfoEditorType.Reality.Framework of plug-in com.apple.dt.IDEVisionSupportUI
2024-10-09 00:08:29.282 mlaunch[54110:4247040] Requested but did not find extension point with identifier Xcode.Xcode3ProjectSupport.InfoEditorType for extension Xcode.Xcode3ProjectSupport.InfoEditorType.Reality.Application of plug-in com.apple.dt.IDEVisionSupportUI
2024-10-09 00:08:29.282 mlaunch[54110:4247040] Requested but did not find extension point with identifier Xcode.Xcode3UI.Xcode3SupportedDestinations for extension IDEAppleTVSupportUI:IDEAppleTVSupportUI.plugindata/plug-in[1]/extension[11] of plug-in com.apple.dt.IDEAppleTVSupportUI
2024-10-09 00:08:29.282 mlaunch[54110:4247040] Requested but did not find extension point with identifier Xcode.DebuggerFoundation.DeviceIconProvider for extension Xcode.DebuggerFoundation.DeviceIconProvider.AppleTV of plug-in com.apple.dt.IDEAppleTVSupportUI
2024-10-09 00:08:29.282 mlaunch[54110:4247040] Requested but did not find extension point with identifier Xcode.DebuggerFoundation.ViewDescriber for extension Xcode.DebuggerFoundation.ATVSimulator.ViewDescriber of plug-in com.apple.dt.IDEAppleTVSupportUI
2024-10-09 00:08:29.282 mlaunch[54110:4247040] Requested but did not find extension point with identifier Xcode.Xcode3ProjectSupport.InfoEditorType for extension Xcode.Xcode3ProjectSupport.InfoEditorType.appletvos.Bundle of plug-in com.apple.dt.IDEAppleTVSupportUI
2024-10-09 00:08:29.282 mlaunch[54110:4247040] Requested but did not find extension point with identifier Xcode.DebuggerFoundation.ViewDescriber for extension Xcode.DebuggerFoundation.ATV.ViewDescriber of plug-in com.apple.dt.IDEAppleTVSupportUI
2024-10-09 00:08:29.282 mlaunch[54110:4247040] Requested but did not find extension point with identifier Xcode.DebuggerFoundation.DataSourceConnection for extension Xcode.DebuggerFoundation.tvOS.DataSourceConnectionTargetHub of plug-in com.apple.dt.IDEAppleTVSupportUI
2024-10-09 00:08:29.282 mlaunch[54110:4247040] Requested but did not find extension point with identifier Xcode.Xcode3ProjectSupport.InfoEditorSlice for extension Xcode.Xcode3ProjectSupport.InfoEditorSlice.appletvos.BundleTargetInfo of plug-in com.apple.dt.IDEAppleTVSupportUI
2024-10-09 00:08:29.282 mlaunch[54110:4247040] Requested but did not find extension point with identifier Xcode.DebuggerFoundation.DataSourceConnection for extension Xcode.DebuggerFoundation.tvOSSimulator.DataSourceConnectionTargetHub of plug-in com.apple.dt.IDEAppleTVSupportUI
xcrun devicectl -j /var/folders/41/1scblbfs6713lpd4v_80d7th0000gn/T/tmpcWPPME.tmp device process launch --terminate-existing --device "Moien's iPhone" ai.myApplication --connection-mode wifi
00:28:33  Acquired tunnel connection to device.
00:28:33  Enabling developer disk image services.
00:28:33  Acquired usage assertion.
ERROR: The application failed to launch. (com.apple.dt.CoreDeviceError error 10002 (0x2712))
       NSLocalizedRecoverySuggestion = Provide a valid bundle identifier.
       NSLocalizedFailureReason = The requested application ai.myApplication is not installed.
       BundleIdentifier = ai.myApplication
       ----------------------------------------
           The operation couldn’t be completed. (OSStatus error -10814.) (NSOSStatusErrorDomain error -10814 (0xFFFFD5C2))
           _LSFunction = runEvaluator
           _LSLine = 1734
error MT1045: Failed to execute 'devicectl': 'devicectl -j /var/folders/41/1scblbfs6713lpd4v_80d7th0000gn/T/tmpcWPPME.tmp device process launch --terminate-existing --device "Moien's iPhone" ai.myApplication --connection-mode wifi' returned the exit code 1.
error MT1046: Additional output: xcrun devicectl -j /var/folders/41/1scblbfs6713lpd4v_80d7th0000gn/T/tmpcWPPME.tmp device process launch --terminate-existing --device "Moien's iPhone" ai.myApplication --connection-mode wifi
error MT1046: Additional output: 00:28:33  Acquired tunnel connection to device.
error MT1046: Additional output: 00:28:33  Enabling developer disk image services.
error MT1046: Additional output: 00:28:33  Acquired usage assertion.
error MT1046: Additional output: ERROR: The application failed to launch. (com.apple.dt.CoreDeviceError error 10002 (0x2712))
error MT1046: Additional output:        NSLocalizedRecoverySuggestion = Provide a valid bundle identifier.
error MT1046: Additional output:        NSLocalizedFailureReason = The requested application ai.myApplication is not installed.
error MT1046: Additional output:        BundleIdentifier = ai.myApplication
error MT1046: Additional output:        ----------------------------------------
error MT1046: Additional output:            The operation couldn’t be completed. (OSStatus error -10814.) (NSOSStatusErrorDomain error -10814 (0xFFFFD5C2))
error MT1046: Additional output:            _LSFunction = runEvaluator
error MT1046: Additional output:            _LSLine = 1734

EDIT: The issue was because of Signing Certificates, it now works with .NET 9 RC2.

@last-Programmer
Copy link

@MoienTajik Is it running in the simulator okey with .net 9 rc2? You only have the problem with running in ios Device?

@MoienTajik
Copy link

@last-Programmer Yes, it works fine on the Simulator. The problem is only with Physical iOS devices (both iOS 17 & 18).

@Cholponai02
Copy link

Cholponai02 commented Oct 10, 2024

Installed .net 9 rc2 .Xcode 16, the project builds without error, but does not run(the app crashes) on the Simulator and physical . Has anyone had the same error?
I found a solution to my error, maybe someone will need it

  1. Remove the MainPage assignment in the constructor, eliminating the conflict. (MainPage = new AppShell();)
  2. Override the CreateWindow method to initialize the main window.
    protected override Window CreateWindow(IActivationState activationState)
    {
    var window = new Window(new AppShell());
    return window;
    }

Now another problem I can't launch via the button.
Снимок экрана 2024-10-11 131916
Through the terminal dotnet build -c Release -f net9.0-ios I can launch
When you press the button to start it, it throws out this
Снимок экрана 2024-10-11 132036
Are there any options?

@rezamohamed
Copy link

rezamohamed commented Oct 10, 2024

Can folks debug using code 16 and a connected iOS 18 physical device? I cant seem to hit breakpoint or check any variables. I see something like the following:

CleanShot 2024-10-10 at 15 13 25@2x

@Ashishkumar5699
Copy link

Hi I had installed Xcode 16 beta and its install perfectly as I can see simulators in Visual studio. I had Xamarin Forms iOS project that build successfully and i can see "waiting for debugger connect to ios simulator" but nothing happen what should i do?

* xcode 16 beta

* simulator 17.5 and 18

* OS maxOS Sequoia

Xamarin.Forms is out of support

Thanks for update. I had fixed this and now iOS 18 simulator is working fine for my Xamarin Project. but for MAUI project still facing the Same

@Ashishkumar5699 you can build Xamarin.Forms iOS application with iOS 18? It work with Xamarin.Forms?

yes, its a bit slow but fine for me.

Thanks @rolfbjarne, but @Ashishkumar5699 says yes? I don't understand?

Hi, it works for visual studio preview version of windows and paired with mac
you can build xamarin ios Project in mac 15 Xcode-beta

@Thaldoras
Copy link

I use Visual studio and pair to mac for the iOS simulator. With VS 17.11.4 I could run the simulator with xCode15.4 and macOS14 on my paired macMini.

VS 17.11.5 bumped up the dotnet workload to include iOS18. Pair to Mac installs that workload when pairing. This forced me to update to xCode16 but then I hit other issues and had to add the iOS18 Simulator etc etc. I even updated to macOS15.

Severity	Code	Description	Project	File	Line	Suppression State
Error (active)		clang++ exited with code 1:
Undefined symbols for architecture arm64:
  "_xamarin_is_object_valid", referenced from:
      <initial-undefines>
  "_xamarin_is_user_type", referenced from:
      <initial-undefines>
ld: symbol(s) not found for architecture arm64
clang++: error: linker command failed with exit code 1 (use -v to see invocation)	

I get this error when I to run with the iOS17.5 or iOS18 simulators. Does anyone know what this means or what to do?

@giuseppenovielli
Copy link

giuseppenovielli commented Oct 11, 2024

Hi I had installed Xcode 16 beta and its install perfectly as I can see simulators in Visual studio. I had Xamarin Forms iOS project that build successfully and i can see "waiting for debugger connect to ios simulator" but nothing happen what should i do?

* xcode 16 beta

* simulator 17.5 and 18

* OS maxOS Sequoia

Xamarin.Forms is out of support

Thanks for update. I had fixed this and now iOS 18 simulator is working fine for my Xamarin Project. but for MAUI project still facing the Same

@Ashishkumar5699 you can build Xamarin.Forms iOS application with iOS 18? It work with Xamarin.Forms?

yes, its a bit slow but fine for me.

Thanks @rolfbjarne, but @Ashishkumar5699 says yes? I don't understand?

Hi, it works for visual studio preview version of windows and paired with mac you can build xamarin ios Project in mac 15 Xcode-beta

Thanks guys, anyone tried with Visual Studio For Mac or build an Xamarin.Forms app with iOS 18, into a Mac machine?

@Ashishkumar5699 Which version of Xamarin.iOS are you using for Visual Studio Preview that works with iOS 18?
Is this the latest release? https://github.com/xamarin/xamarin-macios/releases/tag/xamarin-ios-16.4.0.23
If so, is it also compatible with Visual Studio for Mac, and would I be able to build a Xamarin.Forms app for iOS 18?

What am I missing?

@ste8
Copy link

ste8 commented Oct 12, 2024

I use Visual studio and pair to mac for the iOS simulator. With VS 17.11.4 I could run the simulator with xCode15.4 and macOS14 on my paired macMini.

VS 17.11.5 bumped up the dotnet workload to include iOS18. Pair to Mac installs that workload when pairing. This forced me to update to xCode16 but then I hit other issues and had to add the iOS18 Simulator etc etc. I even updated to macOS15.

Severity	Code	Description	Project	File	Line	Suppression State
Error (active)		clang++ exited with code 1:
Undefined symbols for architecture arm64:
  "_xamarin_is_object_valid", referenced from:
      <initial-undefines>
  "_xamarin_is_user_type", referenced from:
      <initial-undefines>
ld: symbol(s) not found for architecture arm64
clang++: error: linker command failed with exit code 1 (use -v to see invocation)	

I get this error when I to run with the iOS17.5 or iOS18 simulators. Does anyone know what this means or what to do?

I have the same issue in an existing iOS project for .NET 8 (while I can run a new project).
I'm using Xcode 16.0, .NET 8.0.402 and workload 8.0.402.1 for iOS.

@ste8
Copy link

ste8 commented Oct 13, 2024

I use Visual studio and pair to mac for the iOS simulator. With VS 17.11.4 I could run the simulator with xCode15.4 and macOS14 on my paired macMini.
VS 17.11.5 bumped up the dotnet workload to include iOS18. Pair to Mac installs that workload when pairing. This forced me to update to xCode16 but then I hit other issues and had to add the iOS18 Simulator etc etc. I even updated to macOS15.

Severity	Code	Description	Project	File	Line	Suppression State
Error (active)		clang++ exited with code 1:
Undefined symbols for architecture arm64:
  "_xamarin_is_object_valid", referenced from:
      <initial-undefines>
  "_xamarin_is_user_type", referenced from:
      <initial-undefines>
ld: symbol(s) not found for architecture arm64
clang++: error: linker command failed with exit code 1 (use -v to see invocation)	

I get this error when I to run with the iOS17.5 or iOS18 simulators. Does anyone know what this means or what to do?

I have the same issue in an existing iOS project for .NET 8 (while I can run a new project). I'm using Xcode 16.0, .NET 8.0.402 and workload 8.0.402.1 for iOS.

Today, without changing anything (at least on the code, the git status is empty), it started to work without raising this issue... weird, but at least now the app runs in debug on the simulator.

@Ashishkumar5699
Copy link

Hi I had installed Xcode 16 beta and its install perfectly as I can see simulators in Visual studio. I had Xamarin Forms iOS project that build successfully and i can see "waiting for debugger connect to ios simulator" but nothing happen what should i do?

* xcode 16 beta

* simulator 17.5 and 18

* OS maxOS Sequoia

Xamarin.Forms is out of support

Thanks for update. I had fixed this and now iOS 18 simulator is working fine for my Xamarin Project. but for MAUI project still facing the Same

@Ashishkumar5699 you can build Xamarin.Forms iOS application with iOS 18? It work with Xamarin.Forms?

yes, its a bit slow but fine for me.

Thanks @rolfbjarne, but @Ashishkumar5699 says yes? I don't understand?

Hi, it works for visual studio preview version of windows and paired with mac you can build xamarin ios Project in mac 15 Xcode-beta

Thanks guys, anyone tried with Visual Studio For Mac or build an Xamarin.Forms app with iOS 18, into a Mac machine?

@Ashishkumar5699 Which version of Xamarin.iOS are you using for Visual Studio Preview that works with iOS 18? Is this the latest release? https://github.com/xamarin/xamarin-macios/releases/tag/xamarin-ios-16.4.0.23 If so, is it also compatible with Visual Studio for Mac, and would I be able to build a Xamarin.Forms app for iOS 18?

What am I missing?

Hi i had tried to run but for me it building the launching the Simulator but unable to install the application,
it showing waiting to connect ... then stop build and nothing happens.
and some time it install the application but unable to launch it, I can use the application by manually without debugger.

@wegascee
Copy link

wegascee commented Oct 15, 2024

Does it work on macOS Sequoia? I can't get it running ...

I tried Xcode 16 beta, but the simulator connects and reconnects in a loop.

Then I tried VS Preview (17.12.0 Preview 2.1) with Xcode 16 on macOS Sequoia (15.0.1) and .NET 9.0 (9.0.100-rc.2.24474.11) with the latest workload version (9.0.100-rc.2.24503.1). But he can't connect:

The Mac operating system version validation couldn't be performed because IDB has not been started successfully on the paired Mac, which is necessary in order to get the current Mac environment information. Having a non functional paired Mac or an incompatible Mac operating system could cause unwanted behaviors. Please check the logs to see what happened with the IDB initialization on the paired Mac. You can open Xamarin logs from the Help menu.

Has somebody a step by step guide? Or is the only option to downgrade the Mac?

Update:
OK, he can now connect (error on my side with renaming the app ...), but starting the iOS 18 simulator with the Hello World project crashes the app:

System.StackOverflowException: 'The requested operation caused a stack overflow.'

Update 2:
After cleaning the temporary folders as mentioned here I got the .NET MAUI sample projects running in the iOS simulators. But not the old Xamarin project one ... There are no simulators despite I'm connected to the Mac:

Missing simulators

@jdarwood007
Copy link

I use Visual studio and pair to mac for the iOS simulator. With VS 17.11.4 I could run the simulator with xCode15.4 and macOS14 on my paired macMini.
VS 17.11.5 bumped up the dotnet workload to include iOS18. Pair to Mac installs that workload when pairing. This forced me to update to xCode16 but then I hit other issues and had to add the iOS18 Simulator etc etc. I even updated to macOS15.

Severity	Code	Description	Project	File	Line	Suppression State
Error (active)		clang++ exited with code 1:
Undefined symbols for architecture arm64:
  "_xamarin_is_object_valid", referenced from:
      <initial-undefines>
  "_xamarin_is_user_type", referenced from:
      <initial-undefines>
ld: symbol(s) not found for architecture arm64
clang++: error: linker command failed with exit code 1 (use -v to see invocation)	

I get this error when I to run with the iOS17.5 or iOS18 simulators. Does anyone know what this means or what to do?

I have the same issue in an existing iOS project for .NET 8 (while I can run a new project). I'm using Xcode 16.0, .NET 8.0.402 and workload 8.0.402.1 for iOS.

Today, without changing anything (at least on the code, the git status is empty), it started to work without raising this issue... weird, but at least now the app runs in debug on the simulator.

I was able to resolve this by doing a clean solution (delete bin & obj folders)
But I also:

  • Disconnected from mac and shutdown all instances of visual studio
  • Deleted C:\Users%user%\AppData\Local\Temp\Xamarin\XMA
  • Deleted on mac \Users%user\Library\Caches\Xamarin\XMA\SDKS\dotnet
  • Rebooted mac

Possibly some left over references not being handled properly from upgrading.

@npostma
Copy link

npostma commented Oct 17, 2024

I have updated xCode 15.4 to 16 and updated the maui workloads to 8.0.82 on the Mac. But since then, i get this error and have no clue why:

/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk.net8.0_18.0/18.0.8303/targets/Xamarin.Shared.Sdk.targets(1266,3): error MSB4018: The "AOTCompile" task failed unexpectedly. [<PATH_TO_PROJECT>/ActiveID.csproj::TargetFramework=net8.0-ios]
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk.net8.0_18.0/18.0.8303/targets/Xamarin.Shared.Sdk.targets(1266,3): error MSB4018: System.AggregateException: One or more errors occurred. (One or more errors occurred. (One or more errors occurred. (An error occurred trying to start process '/usr/local/share/dotnet/packs/Microsoft.NETCore.App.Runtime.AOT.osx-x64.Cross.ios-arm64/8.0.6/Sdk/../tools/mono-aot-cross' with working directory '<PATH_TO_PROJECT>'. No such file or directory))) (One or more errors occurred. (One or more errors occurred. (An error occurred trying to start process '/usr/local/share/dotnet/packs/Microsoft.NETCore.App.Runtime.AOT.osx-x64.Cross.ios-arm64/8.0.6/Sdk/../tools/mono-aot-cross' with working directory '<PATH_TO_PROJECT>'. No such file or directory))) (One or more errors occurred. (One or more errors occurred. (An error occurred trying to start process '/usr/local/share/dotnet/packs/Microsoft.NETCore.App.Runtime.AOT.osx-x64.Cross.ios-arm64/8.0.6/Sdk/../tools/mono-aot-cross' with working directory '<PATH_TO_PROJECT>'. No such file or directory))) (One or more errors occurred. (One or more errors occurred. (An error occurred trying to start process '/usr/local/share/dotnet/packs/Microsoft.NETCore.App.Runtime.AOT.osx-x64.Cross.ios-arm64/8.0.6/Sdk/../tools/mono-aot-cross' with working directory '<PATH_TO_PROJECT>'. No such file or directory))) (One or more errors occurred. (One or more errors occurred. (An error occurred trying to start process '/usr/local/share/dotnet/packs/Microsoft.NETCore.App.Runtime.AOT.osx-x64.Cross.ios-arm64/8.0.6/Sdk/../tools/mono-aot-cross' with working directory '<PATH_TO_PROJECT>'. No such file or directory))) (One or more errors occurred. (One or more errors occurred. (An error occurred trying to start process '/usr/local/share/dotnet/packs/Microsoft.NETCore.App.Runtime.AOT.osx-x64.Cross.ios-arm64/8.0.6/Sdk/../tools/mono-aot-cross' with working directory '<PATH_TO_PROJECT>'. No such file or directory))) [<PATH_TO_PROJECT>/ActiveID.csproj::TargetFramework=net8.0-ios]
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk.net8.0_18.0/18.0.8303/targets/Xamarin.Shared.Sdk.targets(1266,3): error MSB4018:  ---> System.AggregateException: One or more errors occurred. (One or more errors occurred. (An error occurred trying to start process '/usr/local/share/dotnet/packs/Microsoft.NETCore.App.Runtime.AOT.osx-x64.Cross.ios-arm64/8.0.6/Sdk/../tools/mono-aot-cross' with working directory '<PATH_TO_PROJECT>'. No such file or directory)) [<PATH_TO_PROJECT>/ActiveID.csproj::TargetFramework=net8.0-ios]
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk.net8.0_18.0/18.0.8303/targets/Xamarin.Shared.Sdk.targets(1266,3): error MSB4018:  ---> System.AggregateException: One or more errors occurred. (An error occurred trying to start process '/usr/local/share/dotnet/packs/Microsoft.NETCore.App.Runtime.AOT.osx-x64.Cross.ios-arm64/8.0.6/Sdk/../tools/mono-aot-cross' with working directory '<PATH_TO_PROJECT>'. No such file or directory) [<PATH_TO_PROJECT>/ActiveID.csproj::TargetFramework=net8.0-ios]
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk.net8.0_18.0/18.0.8303/targets/Xamarin.Shared.Sdk.targets(1266,3): error MSB4018:  ---> System.ComponentModel.Win32Exception (2): An error occurred trying to start process '/usr/local/share/dotnet/packs/Microsoft.NETCore.App.Runtime.AOT.osx-x64.Cross.ios-arm64/8.0.6/Sdk/../tools/mono-aot-cross' with working directory '<PATH_TO_PROJECT>'. No such file or directory [<PATH_TO_PROJECT>/ActiveID.csproj::TargetFramework=net8.0-ios]
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk.net8.0_18.0/18.0.8303/targets/Xamarin.Shared.Sdk.targets(1266,3): error MSB4018:    at System.Diagnostics.Process.ForkAndExecProcess(ProcessStartInfo startInfo, String resolvedFilename, String[] argv, String[] envp, String cwd, Boolean setCredentials, UInt32 userId, UInt32 groupId, UInt32[] groups, Int32& stdinFd, Int32& stdoutFd, Int32& stderrFd, Boolean usesTerminal, Boolean throwOnNoExec) [<PATH_TO_PROJECT>/ActiveID.csproj::TargetFramework=net8.0-ios]
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk.net8.0_18.0/18.0.8303/targets/Xamarin.Shared.Sdk.targets(1266,3): error MSB4018:    at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo) [<PATH_TO_PROJECT>/ActiveID.csproj::TargetFramework=net8.0-ios]
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk.net8.0_18.0/18.0.8303/targets/Xamarin.Shared.Sdk.targets(1266,3): error MSB4018:    at Xamarin.Utils.Execution.<>c__DisplayClass24_1.<RunAsync>b__0() in /Users/builder/azdo/_work/1/s/xamarin-macios/tools/common/Execution.cs:line 103 [<PATH_TO_PROJECT>/ActiveID.csproj::TargetFramework=net8.0-ios]
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk.net8.0_18.0/18.0.8303/targets/Xamarin.Shared.Sdk.targets(1266,3): error MSB4018: --- End of stack trace from previous location --- [<PATH_TO_PROJECT>/ActiveID.csproj::TargetFramework=net8.0-ios]
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk.net8.0_18.0/18.0.8303/targets/Xamarin.Shared.Sdk.targets(1266,3): error MSB4018:    at Xamarin.MacDev.Tasks.XamarinTask.ExecuteAsync(TaskLoggingHelper log, String fileName, IList`1 arguments, String sdkDevPath, Dictionary`2 environment, Boolean mergeOutput, Boolean showErrorIfFailure, String workingDirectory) in /Users/builder/azdo/_work/1/s/xamarin-macios/msbuild/Xamarin.MacDev.Tasks/Tasks/XamarinTask.cs:line 131 [<PATH_TO_PROJECT>/ActiveID.csproj::TargetFramework=net8.0-ios]
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk.net8.0_18.0/18.0.8303/targets/Xamarin.Shared.Sdk.targets(1266,3): error MSB4018:    --- End of inner exception stack trace --- [<PATH_TO_PROJECT>/ActiveID.csproj::TargetFramework=net8.0-ios]
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk.net8.0_18.0/18.0.8303/targets/Xamarin.Shared.Sdk.targets(1266,3): error MSB4018:    at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) [<PATH_TO_PROJECT>/ActiveID.csproj::TargetFramework=net8.0-ios]
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk.net8.0_18.0/18.0.8303/targets/Xamarin.Shared.Sdk.targets(1266,3): error MSB4018:    at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification) [<PATH_TO_PROJECT>/ActiveID.csproj::TargetFramework=net8.0-ios]
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk.net8.0_18.0/18.0.8303/targets/Xamarin.Shared.Sdk.targets(1266,3): error MSB4018:    at Xamarin.MacDev.Tasks.AOTCompile.<>c__DisplayClass44_0.<Execute>b__10(Task`1 v) in /Users/builder/azdo/_work/1/s/xamarin-macios/msbuild/Xamarin.MacDev.Tasks/Tasks/AOTCompile.cs:line 320 [<PATH_TO_PROJECT>/ActiveID.csproj::TargetFramework=net8.0-ios]
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk.net8.0_18.0/18.0.8303/targets/Xamarin.Shared.Sdk.targets(1266,3): error MSB4018:    at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke() [<PATH_TO_PROJECT>/ActiveID.csproj::TargetFramework=net8.0-ios]
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk.net8.0_18.0/18.0.8303/targets/Xamarin.Shared.Sdk.targets(1266,3): error MSB4018:    at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) [<PATH_TO_PROJECT>/ActiveID.csproj::TargetFramework=net8.0-ios]
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk.net8.0_18.0/18.0.8303/targets/Xamarin.Shared.Sdk.targets(1266,3): error MSB4018: --- End of stack trace from previous location --- [<PATH_TO_PROJECT>/ActiveID.csproj::TargetFramework=net8.0-ios]
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk.net8.0_18.0/18.0.8303/targets/Xamarin.Shared.Sdk.targets(1266,3): error MSB4018:    at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) [<PATH_TO_PROJECT>/ActiveID.csproj::TargetFramework=net8.0-ios]
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk.net8.0_18.0/18.0.8303/targets/Xamarin.Shared.Sdk.targets(1266,3): error MSB4018:    at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) [<PATH_TO_PROJECT>/ActiveID.csproj::TargetFramework=net8.0-ios]
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk.net8.0_18.0/18.0.8303/targets/Xamarin.Shared.Sdk.targets(1266,3): error MSB4018:    --- End of inner exception stack trace --- [<PATH_TO_PROJECT>/ActiveID.csproj::TargetFramework=net8.0-ios]
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk.net8.0_18.0/18.0.8303/targets/Xamarin.Shared.Sdk.targets(1266,3): error MSB4018:    at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) [<PATH_TO_PROJECT>/ActiveID.csproj::TargetFramework=net8.0-ios]
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk.net8.0_18.0/18.0.8303/targets/Xamarin.Shared.Sdk.targets(1266,3): error MSB4018:    at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken) [<PATH_TO_PROJECT>/ActiveID.csproj::TargetFramework=net8.0-ios]
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk.net8.0_18.0/18.0.8303/targets/Xamarin.Shared.Sdk.targets(1266,3): error MSB4018:    at System.Threading.Tasks.Task.Wait() [<PATH_TO_PROJECT>/ActiveID.csproj::TargetFramework=net8.0-ios]
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk.net8.0_18.0/18.0.8303/targets/Xamarin.Shared.Sdk.targets(1266,3): error MSB4018:    at Xamarin.MacDev.Tasks.AOTCompile.<Execute>b__44_4(ValueTuple`2 arg) in /Users/builder/azdo/_work/1/s/xamarin-macios/msbuild/Xamarin.MacDev.Tasks/Tasks/AOTCompile.cs:line 318 [<PATH_TO_PROJECT>/ActiveID.csproj::TargetFramework=net8.0-ios]
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk.net8.0_18.0/18.0.8303/targets/Xamarin.Shared.Sdk.targets(1266,3): error MSB4018:    at System.Threading.Tasks.Parallel.<>c__DisplayClass32_0`2.<ForEachWorker>b__0(Int32 i) [<PATH_TO_PROJECT>/ActiveID.csproj::TargetFramework=net8.0-ios]
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk.net8.0_18.0/18.0.8303/targets/Xamarin.Shared.Sdk.targets(1266,3): error MSB4018:    at System.Threading.Tasks.Parallel.<>c__DisplayClass19_0`2.<ForWorker>b__1(RangeWorker& currentWorker, Int64 timeout, Boolean& replicationDelegateYieldedBeforeCompletion) [<PATH_TO_PROJECT>/ActiveID.csproj::TargetFramework=net8.0-ios]
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk.net8.0_18.0/18.0.8303/targets/Xamarin.Shared.Sdk.targets(1266,3): error MSB4018: --- End of stack trace from previous location --- [<PATH_TO_PROJECT>/ActiveID.csproj::TargetFramework=net8.0-ios]
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk.net8.0_18.0/18.0.8303/targets/Xamarin.Shared.Sdk.targets(1266,3): error MSB4018:    at System.Threading.Tasks.Parallel.<>c__DisplayClass19_0`2.<ForWorker>b__1(RangeWorker& currentWorker, Int64 timeout, Boolean& replicationDelegateYieldedBeforeCompletion) [<PATH_TO_PROJECT>/ActiveID.csproj::TargetFramework=net8.0-ios]
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk.net8.0_18.0/18.0.8303/targets/Xamarin.Shared.Sdk.targets(1266,3): error MSB4018:    at System.Threading.Tasks.TaskReplicator.Replica.Execute() [<PATH_TO_PROJECT>/ActiveID.csproj::TargetFramework=net8.0-ios]
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk.net8.0_18.0/18.0.8303/targets/Xamarin.Shared.Sdk.targets(1266,3): error MSB4018:    --- End of inner exception stack trace --- [<PATH_TO_PROJECT>/ActiveID.csproj::TargetFramework=net8.0-ios]
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk.net8.0_18.0/18.0.8303/targets/Xamarin.Shared.Sdk.targets(1266,3): error MSB4018:    at System.Threading.Tasks.TaskReplicator.Run[TState](ReplicatableUserAction`1 action, ParallelOptions options, Boolean stopOnFirstFailure) [<PATH_TO_PROJECT>/ActiveID.csproj::TargetFramework=net8.0-ios]
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk.net8.0_18.0/18.0.8303/targets/Xamarin.Shared.Sdk.targets(1266,3): error MSB4018:    at System.Threading.Tasks.Parallel.ForWorker[TLocal,TInt](TInt fromInclusive, TInt toExclusive, ParallelOptions parallelOptions, Action`1 body, Action`2 bodyWithState, Func`4 bodyWithLocal, Func`1 localInit, Action`1 localFinally) [<PATH_TO_PROJECT>/ActiveID.csproj::TargetFramework=net8.0-ios]
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk.net8.0_18.0/18.0.8303/targets/Xamarin.Shared.Sdk.targets(1266,3): error MSB4018: --- End of stack trace from previous location --- [<PATH_TO_PROJECT>/ActiveID.csproj::TargetFramework=net8.0-ios]
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk.net8.0_18.0/18.0.8303/targets/Xamarin.Shared.Sdk.targets(1266,3): error MSB4018:    at System.Threading.Tasks.Parallel.ForWorker[TLocal,TInt](TInt fromInclusive, TInt toExclusive, ParallelOptions parallelOptions, Action`1 body, Action`2 bodyWithState, Func`4 bodyWithLocal, Func`1 localInit, Action`1 localFinally) [<PATH_TO_PROJECT>/ActiveID.csproj::TargetFramework=net8.0-ios]
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk.net8.0_18.0/18.0.8303/targets/Xamarin.Shared.Sdk.targets(1266,3): error MSB4018:    at System.Threading.Tasks.Parallel.ForEachWorker[TSource,TLocal](IList`1 list, ParallelOptions parallelOptions, Action`1 body, Action`2 bodyWithState, Action`3 bodyWithStateAndIndex, Func`4 bodyWithStateAndLocal, Func`5 bodyWithEverything, Func`1 localInit, Action`1 localFinally) [<PATH_TO_PROJECT>/ActiveID.csproj::TargetFramework=net8.0-ios]
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk.net8.0_18.0/18.0.8303/targets/Xamarin.Shared.Sdk.targets(1266,3): error MSB4018:    at System.Threading.Tasks.Parallel.ForEachWorker[TSource,TLocal](IEnumerable`1 source, ParallelOptions parallelOptions, Action`1 body, Action`2 bodyWithState, Action`3 bodyWithStateAndIndex, Func`4 bodyWithStateAndLocal, Func`5 bodyWithEverything, Func`1 localInit, Action`1 localFinally) [<PATH_TO_PROJECT>/ActiveID.csproj::TargetFramework=net8.0-ios]
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk.net8.0_18.0/18.0.8303/targets/Xamarin.Shared.Sdk.targets(1266,3): error MSB4018:    at System.Threading.Tasks.Parallel.ForEach[TSource](IEnumerable`1 source, ParallelOptions parallelOptions, Action`1 body) [<PATH_TO_PROJECT>/ActiveID.csproj::TargetFramework=net8.0-ios]
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk.net8.0_18.0/18.0.8303/targets/Xamarin.Shared.Sdk.targets(1266,3): error MSB4018:    at Xamarin.MacDev.Tasks.XamarinParallelTask.ForEach[TSource](IEnumerable`1 source, Action`1 body) in /Users/builder/azdo/_work/1/s/xamarin-macios/msbuild/Xamarin.MacDev.Tasks/Tasks/XamarinParallelTask.cs:line 30 [<PATH_TO_PROJECT>/ActiveID.csproj::TargetFramework=net8.0-ios]
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk.net8.0_18.0/18.0.8303/targets/Xamarin.Shared.Sdk.targets(1266,3): error MSB4018:    at Xamarin.MacDev.Tasks.AOTCompile.Execute() in /Users/builder/azdo/_work/1/s/xamarin-macios/msbuild/Xamarin.MacDev.Tasks/Tasks/AOTCompile.cs:line 317 [<PATH_TO_PROJECT>/ActiveID.csproj::TargetFramework=net8.0-ios]
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk.net8.0_18.0/18.0.8303/targets/Xamarin.Shared.Sdk.targets(1266,3): error MSB4018:    at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute() [<PATH_TO_PROJECT>/ActiveID.csproj::TargetFramework=net8.0-ios]
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk.net8.0_18.0/18.0.8303/targets/Xamarin.Shared.Sdk.targets(1266,3): error MSB4018:    at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask) [<PATH_TO_PROJECT>/ActiveID.csproj::TargetFramework=net8.0-ios]
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk.net8.0_18.0/18.0.8303/targets/Xamarin.Shared.Sdk.targets(1266,3): error MSB4018:  ---> (Inner Exception #1) System.AggregateException: One or more errors occurred. (One or more errors occurred. (An error occurred trying to start process '/usr/local/share/dotnet/packs/Microsoft.NETCore.App.Runtime.AOT.osx-x64.Cross.ios-arm64/8.0.6/Sdk/../tools/mono-aot-cross' with working directory '<PATH_TO_PROJECT>'. No such file or directory)) [<PATH_TO_PROJECT>/ActiveID.csproj::TargetFramework=net8.0-ios]
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk.net8.0_18.0/18.0.8303/targets/Xamarin.Shared.Sdk.targets(1266,3): error MSB4018:  ---> System.AggregateException: One or more errors occurred. (An error occurred trying to start process '/usr/local/share/dotnet/packs/Microsoft.NETCore.App.Runtime.AOT.osx-x64.Cross.ios-arm64/8.0.6/Sdk/../tools/mono-aot-cross' with working directory '<PATH_TO_PROJECT>'. No such file or directory) [<PATH_TO_PROJECT>/ActiveID.csproj::TargetFramework=net8.0-ios]
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk.net8.0_18.0/18.0.8303/targets/Xamarin.Shared.Sdk.targets(1266,3): error MSB4018:  ---> System.ComponentModel.Win32Exception (2): An error occurred trying to start process '/usr/local/share/dotnet/packs/Microsoft.NETCore.App.Runtime.AOT.osx-x64.Cross.ios-arm64/8.0.6/Sdk/../tools/mono-aot-cross' with working directory '<PATH_TO_PROJECT>'. No such file or directory [<PATH_TO_PROJECT>/ActiveID.csproj::TargetFramework=net8.0-ios]
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk.net8.0_18.0/18.0.8303/targets/Xamarin.Shared.Sdk.targets(1266,3): error MSB4018:    at System.Diagnostics.Process.ForkAndExecProcess(ProcessStartInfo startInfo, String resolvedFilename, String[] argv, String[] envp, String cwd, Boolean setCredentials, UInt32 userId, UInt32 groupId, UInt32[] groups, Int32& stdinFd, Int32& stdoutFd, Int32& stderrFd, Boolean usesTerminal, Boolean throwOnNoExec) [<PATH_TO_PROJECT>/ActiveID.csproj::TargetFramework=net8.0-ios]
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk.net8.0_18.0/18.0.8303/targets/Xamarin.Shared.Sdk.targets(1266,3): error MSB4018:    at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo) [<PATH_TO_PROJECT>/ActiveID.csproj::TargetFramework=net8.0-ios]
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk.net8.0_18.0/18.0.8303/targets/Xamarin.Shared.Sdk.targets(1266,3): error MSB4018:    at Xamarin.Utils.Execution.<>c__DisplayClass24_1.<RunAsync>b__0() in /Users/builder/azdo/_work/1/s/xamarin-macios/tools/common/Execution.cs:line 103 [<PATH_TO_PROJECT>/ActiveID.csproj::TargetFramework=net8.0-ios]
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk.net8.0_18.0/18.0.8303/targets/Xamarin.Shared.Sdk.targets(1266,3): error MSB4018: --- End of stack trace from previous location --- [<PATH_TO_PROJECT>/ActiveID.csproj::TargetFramework=net8.0-ios]
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk.net8.0_18.0/18.0.8303/targets/Xamarin.Shared.Sdk.targets(1266,3): error MSB4018:    at Xamarin.MacDev.Tasks.XamarinTask.ExecuteAsync(TaskLoggingHelper log, String fileName, IList`1 arguments, String sdkDevPath, Dictionary`2 environment, Boolean mergeOutput, Boolean showErrorIfFailure, String workingDirectory) in /Users/builder/azdo/_work/1/s/xamarin-macios/msbuild/Xamarin.MacDev.Tasks/Tasks/XamarinTask.cs:line 131 [<PATH_TO_PROJECT>/ActiveID.csproj::TargetFramework=net8.0-ios]
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk.net8.0_18.0/18.0.8303/targets/Xamarin.Shared.Sdk.targets(1266,3): error MSB4018:    --- End of inner exception stack trace --- [<PATH_TO_PROJECT>/ActiveID.csproj::TargetFramework=net8.0-ios]
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk.net8.0_18.0/18.0.8303/targets/Xamarin.Shared.Sdk.targets(1266,3): error MSB4018:    at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) [<PATH_TO_PROJECT>/ActiveID.csproj::TargetFramework=net8.0-ios]
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk.net8.0_18.0/18.0.8303/targets/Xamarin.Shared.Sdk.targets(1266,3): error MSB4018:    at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification) [<PATH_TO_PROJECT>/ActiveID.csproj::TargetFramework=net8.0-ios]
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk.net8.0_18.0/18.0.8303/targets/Xamarin.Shared.Sdk.targets(1266,3): error MSB4018:    at Xamarin.MacDev.Tasks.AOTCompile.<>c__DisplayClass44_0.<Execute>b__10(Task`1 v) in /Users/builder/azdo/_work/1/s/xamarin-macios/msbuild/Xamarin.MacDev.Tasks/Tasks/AOTCompile.cs:line 320 [<PATH_TO_PROJECT>/ActiveID.csproj::TargetFramework=net8.0-ios]
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk.net8.0_18.0/18.0.8303/targets/Xamarin.Shared.Sdk.targets(1266,3): error MSB4018:    at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke() [<PATH_TO_PROJECT>/ActiveID.csproj::TargetFramework=net8.0-ios]
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk.net8.0_18.0/18.0.8303/targets/Xamarin.Shared.Sdk.targets(1266,3): error MSB4018:    at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) [<PATH_TO_PROJECT>/ActiveID.csproj::TargetFramework=net8.0-ios]
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk.net8.0_18.0/18.0.8303/targets/Xamarin.Shared.Sdk.targets(1266,3): error MSB4018: --- End of stack trace from previous location --- [<PATH_TO_PROJECT>/ActiveID.csproj::TargetFramework=net8.0-ios]
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk.net8.0_18.0/18.0.8303/targets/Xamarin.Shared.Sdk.targets(1266,3): error MSB4018:    at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) [<PATH_TO_PROJECT>/ActiveID.csproj::TargetFramework=net8.0-ios]
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk.net8.0_18.0/18.0.8303/targets/Xamarin.Shared.Sdk.targets(1266,3): error MSB4018:    at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) [<PATH_TO_PROJECT>/ActiveID.csproj::TargetFramework=net8.0-ios]
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk.net8.0_18.0/18.0.8303/targets/Xamarin.Shared.Sdk.targets(1266,3): error MSB4018:    --- End of inner exception stack trace --- [<PATH_TO_PROJECT>/ActiveID.csproj::TargetFramework=net8.0-ios]
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk.net8.0_18.0/18.0.8303/targets/Xamarin.Shared.Sdk.targets(1266,3): error MSB4018:    at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) [<PATH_TO_PROJECT>/ActiveID.csproj::TargetFramework=net8.0-ios]
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk.net8.0_18.0/18.0.8303/targets/Xamarin.Shared.Sdk.targets(1266,3): error MSB4018:    at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken) [<PATH_TO_PROJECT>/ActiveID.csproj::TargetFramework=net8.0-ios]
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk.net8.0_18.0/18.0.8303/targets/Xamarin.Shared.Sdk.targets(1266,3): error MSB4018:    at System.Threading.Tasks.Task.Wait() [<PATH_TO_PROJECT>/ActiveID.csproj::TargetFramework=net8.0-ios]
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk.net8.0_18.0/18.0.8303/targets/Xamarin.Shared.Sdk.targets(1266,3): error MSB4018:    at Xamarin.MacDev.Tasks.AOTCompile.<Execute>b__44_4(ValueTuple`2 arg) in /Users/builder/azdo/_work/1/s/xamarin-macios/msbuild/Xamarin.MacDev.Tasks/Tasks/AOTCompile.cs:line 318 [<PATH_TO_PROJECT>/ActiveID.csproj::TargetFramework=net8.0-ios]
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk.net8.0_18.0/18.0.8303/targets/Xamarin.Shared.Sdk.targets(1266,3): error MSB4018:    at System.Threading.Tasks.Parallel.<>c__DisplayClass32_0`2.<ForEachWorker>b__0(Int32 i) [<PATH_TO_PROJECT>/ActiveID.csproj::TargetFramework=net8.0-ios]
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk.net8.0_18.0/18.0.8303/targets/Xamarin.Shared.Sdk.targets(1266,3): error MSB4018:    at System.Threading.Tasks.Parallel.<>c__DisplayClass19_0`2.<ForWorker>b__1(RangeWorker& currentWorker, Int64 timeout, Boolean& replicationDelegateYieldedBeforeCompletion) [<PATH_TO_PROJECT>/ActiveID.csproj::TargetFramework=net8.0-ios]
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk.net8.0_18.0/18.0.8303/targets/Xamarin.Shared.Sdk.targets(1266,3): error MSB4018: --- End of stack trace from previous location --- [<PATH_TO_PROJECT>/ActiveID.csproj::TargetFramework=net8.0-ios]
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk.net8.0_18.0/18.0.8303/targets/Xamarin.Shared.Sdk.targets(1266,3): error MSB4018:    at System.Threading.Tasks.Parallel.<>c__DisplayClass19_0`2.<ForWorker>b__1(RangeWorker& currentWorker, Int64 timeout, Boolean& replicationDelegateYieldedBeforeCompletion) [<PATH_TO_PROJECT>/ActiveID.csproj::TargetFramework=net8.0-ios]
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk.net8.0_18.0/18.0.8303/targets/Xamarin.Shared.Sdk.targets(1266,3): error MSB4018:    at System.Threading.Tasks.TaskReplicator.Replica.Execute()<--- [<PATH_TO_PROJECT>/ActiveID.csproj::TargetFramework=net8.0-ios]
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk.net8.0_18.0/18.0.8303/targets/Xamarin.Shared.Sdk.targets(1266,3): error MSB4018:  [<PATH_TO_PROJECT>/ActiveID.csproj::TargetFramework=net8.0-ios]
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk.net8.0_18.0/18.0.8303/targets/Xamarin.Shared.Sdk.targets(1266,3): error MSB4018:  ---> (Inner Exception #2) System.AggregateException: One or more errors occurred. (One or more errors occurred. (An error occurred trying to start process '/usr/local/share/dotnet/packs/Microsoft.NETCore.App.Runtime.AOT.osx-x64.Cross.ios-arm64/8.0.6/Sdk/../tools/mono-aot-cross' with working directory '<PATH_TO_PROJECT>'. No such file or directory)) [<PATH_TO_PROJECT>/ActiveID.csproj::TargetFramework=net8.0-ios]
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk.net8.0_18.0/18.0.8303/targets/Xamarin.Shared.Sdk.targets(1266,3): error MSB4018:  ---> System.AggregateException: One or more errors occurred. (An error occurred trying to start process '/usr/local/share/dotnet/packs/Microsoft.NETCore.App.Runtime.AOT.osx-x64.Cross.ios-arm64/8.0.6/Sdk/../tools/mono-aot-cross' with working directory '<PATH_TO_PROJECT>'. No such file or directory) [<PATH_TO_PROJECT>/ActiveID.csproj::TargetFramework=net8.0-ios]
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk.net8.0_18.0/18.0.8303/targets/Xamarin.Shared.Sdk.targets(1266,3): error MSB4018:  ---> System.ComponentModel.Win32Exception (2): An error occurred trying to start process '/usr/local/share/dotnet/packs/Microsoft.NETCore.App.Runtime.AOT.osx-x64.Cross.ios-arm64/8.0.6/Sdk/../tools/mono-aot-cross' with working directory '<PATH_TO_PROJECT>'. No such file or directory [<PATH_TO_PROJECT>/ActiveID.csproj::TargetFramework=net8.0-ios]
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk.net8.0_18.0/18.0.8303/targets/Xamarin.Shared.Sdk.targets(1266,3): error MSB4018:    at System.Diagnostics.Process.ForkAndExecProcess(ProcessStartInfo startInfo, String resolvedFilename, String[] argv, String[] envp, String cwd, Boolean setCredentials, UInt32 userId, UInt32 groupId, UInt32[] groups, Int32& stdinFd, Int32& stdoutFd, Int32& stderrFd, Boolean usesTerminal, Boolean throwOnNoExec) [<PATH_TO_PROJECT>/ActiveID.csproj::TargetFramework=net8.0-ios]
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk.net8.0_18.0/18.0.8303/targets/Xamarin.Shared.Sdk.targets(1266,3): error MSB4018:    at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo) [<PATH_TO_PROJECT>/ActiveID.csproj::TargetFramework=net8.0-ios]
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk.net8.0_18.0/18.0.8303/targets/Xamarin.Shared.Sdk.targets(1266,3): error MSB4018:    at Xamarin.Utils.Execution.<>c__DisplayClass24_1.<RunAsync>b__0() in /Users/builder/azdo/_work/1/s/xamarin-macios/tools/common/Execution.cs:line 103 [<PATH_TO_PROJECT>/ActiveID.csproj::TargetFramework=net8.0-ios]
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk.net8.0_18.0/18.0.8303/targets/Xamarin.Shared.Sdk.targets(1266,3): error MSB4018: --- End of stack trace from previous location --- [<PATH_TO_PROJECT>/ActiveID.csproj::TargetFramework=net8.0-ios]
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk.net8.0_18.0/18.0.8303/targets/Xamarin.Shared.Sdk.targets(1266,3): error MSB4018:    at Xamarin.MacDev.Tasks.XamarinTask.ExecuteAsync(TaskLoggingHelper log, String fileName, IList`1 arguments, String sdkDevPath, Dictionary`2 environment, Boolean mergeOutput, Boolean showErrorIfFailure, String workingDirectory) in /Users/builder/azdo/_work/1/s/xamarin-macios/msbuild/Xamarin.MacDev.Tasks/Tasks/XamarinTask.cs:line 131 [<PATH_TO_PROJECT>/ActiveID.csproj::TargetFramework=net8.0-ios]
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk.net8.0_18.0/18.0.8303/targets/Xamarin.Shared.Sdk.targets(1266,3): error MSB4018:    --- End of inner exception stack trace --- [<PATH_TO_PROJECT>/ActiveID.csproj::TargetFramework=net8.0-ios]
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk.net8.0_18.0/18.0.8303/targets/Xamarin.Shared.Sdk.targets(1266,3): error MSB4018:    at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) [<PATH_TO_PROJECT>/ActiveID.csproj::TargetFramework=net8.0-ios]
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk.net8.0_18.0/18.0.8303/targets/Xamarin.Shared.Sdk.targets(1266,3): error MSB4018:    at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification) [<PATH_TO_PROJECT>/ActiveID.csproj::TargetFramework=net8.0-ios]
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk.net8.0_18.0/18.0.8303/targets/Xamarin.Shared.Sdk.targets(1266,3): error MSB4018:    at Xamarin.MacDev.Tasks.AOTCompile.<>c__DisplayClass44_0.<Execute>b__10(Task`1 v) in /Users/builder/azdo/_work/1/s/xamarin-macios/msbuild/Xamarin.MacDev.Tasks/Tasks/AOTCompile.cs:line 320 [<PATH_TO_PROJECT>/ActiveID.csproj::TargetFramework=net8.0-ios]
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk.net8.0_18.0/18.0.8303/targets/Xamarin.Shared.Sdk.targets(1266,3): error MSB4018:    at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke() [<PATH_TO_PROJECT>/ActiveID.csproj::TargetFramework=net8.0-ios]
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk.net8.0_18.0/18.0.8303/targets/Xamarin.Shared.Sdk.targets(1266,3): error MSB4018:    at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) [<PATH_TO_PROJECT>/ActiveID.csproj::TargetFramework=net8.0-ios]
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk.net8.0_18.0/18.0.8303/targets/Xamarin.Shared.Sdk.targets(1266,3): error MSB4018: --- End of stack trace from previous location --- [<PATH_TO_PROJECT>/ActiveID.csproj::TargetFramework=net8.0-ios]

I have tried the following commands to fix this issue, but no luck:

dotnet workload install ios
dotnet workload install maui

Got message already installed. Then:

dotnet workload repair
dotnet workload update

No luck. Then:

dotnet workload uninstall ios
dotnet workload install ios
dotnet nuget locals all --clear
dotnet workload list

Installed Workload Id      Manifest Version       Installation Source
---------------------------------------------------------------------
maui-ios                   8.0.82/8.0.100         SDK 8.0.100        
ios                        18.0.8303/8.0.100      SDK 8.0.100        
maui                       8.0.82/8.0.100         SDK 8.0.100       

Also, i see this message poping up in the console:

Workload updates are available. Run `dotnet workload list` for more information.

but there is nothing to update.

After this all i still got errors. No sure what is left. Any suggestions?

@wegascee
Copy link

@npostma:

The error message you are showing suggest, that the tools are not correctly installed. I'd suggest to start from the beginning.

I got a .NET MAUI project running with the latest VS 2022 preview, latest workload and so on (see this post for more details). I had to clean the temporary folders as jdarwood007 mentioned.

But my old Xamarin project doesn't work. There are no simulator shown at all ...

@npostma
Copy link

npostma commented Oct 18, 2024

That was my thought as well. I've been struggling for quite some time to get a stable system, and with every update, I encounter the same types of issues—there's always something. So today, I decided to reinstall the Mac from scratch and set everything up cleanly. I’m using xcodes.app to manage Xcode and brew to install the .NET SDK. I’ve also created all new certificates. I just completed my first build run in Visual Studio Code, and everything went smoothly with zero errors.

Next step: building a release and publishing it to TestFlight. Still getting used to Visual Studio Code… #RIPVSForMac

[EDIT]
Sadly, some other error i never have seen before:

Optimizing assemblies for size. This process might take a while.
  Tool xcrun execution finished (exit code = 139).
          
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk.net8.0_18.0/18.0.8303/tools/msbuild/iOS/Xamarin.Shared.targets(2848,3): error : strip exited with code 139 [/<path>/ActiveID.csproj::TargetFramework=net8.0-ios]
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk.net8.0_18.0/18.0.8303/tools/msbuild/iOS/Xamarin.Shared.targets(2848,3): error :          [/<path>/ActiveID.csproj::TargetFramework=net8.0-ios]

Mhm i am not the only one ... #19157

@zijianhuang
Copy link

This thread have been going on and on since many programmers have encountered the same problem.

Have a look at my comment above. And I have actually published a release build to App Store under such conditions.
Not using Azure DevOps, but old school way: Mac beside Windows dev PC. And for local tests on native devices, you need to operate directly inside Mac.

Unfortunately the default UI behavior of Github issue is to hide items at the middle in which I have already provided a solution/workaround before the November magic 4 weeks away. Do a browser search "hidden items" and click "Load More" you will find the solution/workaround.

@dalexsoto
Copy link
Member Author

Hello folks, now that Xcode 16 support is out in all of our release channels we will close this. Please if you encounter any problem do file a new issue or look at the known issues section in our release notes of the version of our product that you are using.

On behalf of our entire team, thanks a lot for your patience, support and comments during this major release!

@xamarin xamarin locked as resolved and limited conversation to collaborators Oct 21, 2024
@dalexsoto dalexsoto unpinned this issue Oct 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
iOS Issues affecting iOS macOS Issues affecting macOS
Projects
None yet
Development

No branches or pull requests