-
Notifications
You must be signed in to change notification settings - Fork 519
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 when trying to publish a Maui app with Xcode 15.3 #20387
Comments
Hello, any chance you can provide us with a binlog? |
I'll see if I can get that together. As an aside, I downgraded to 15.2 and I'm able to publish that way. I'll upgrade again and put that together, assuming it still fails with that error. @dalexsoto |
Thanks! |
Um... I just upgraded to 15.3 and publishing worked. I rebooted and tried again. First time, I got an error without any messages. Tried again and it worked. Cleaned and rebuilt, and it worked. Since I downgraded manually and then upgraded from the App Store, is it possible that the 15.2 libraries are still there and Visual Studio is using those? |
This doesn't sound related to Xcode 15.3 (or Xcode at all). Did you update .NET or the workloads at any point? |
@rolfbjarne Not at the time. I do know that downgrading Xcode allowed me to build again. But, on that note, I'm trying to update .NET and the workloads as we speak. I made the foolish decision to update my Maui toolkit packages which use a different version of the compiler. I updated it, but now I'm getting lots of errors around the workload. |
OK, feel free to file an issue if you need help with those errors. I'm going to close this, because it looks like it was something transitory on your machine, but feel free to reopen if you disagree or figure out what exactly happened, and then we'll have a second look. |
@rolfbjarne I don't see how to re-open it. I'm not a contributor. At any rate, I'm not seeing this specific issue, but I still can't deploy to a phone when publishing via Xcode 15.3. There is still no support for 15.3. I had originally posted in #20257 but created the issue here because it wasn't getting a response over there. 15.3 has been out since late January and now 15.4 is out. Users on the other issue are reporting crashes on devices running iOS 17.4 in a similar fashion to what is happening on simulators running 17.4. |
We're working on supporting Xcode 15.3, but in the meantime is there any reason you can't use Xcode 15.2?
The problem with the 17.4 simulators has been fixed and released (#20257 (comment)). |
Hi @mmiller-d8. We have added the "need-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time. |
Hi @mmiller-d8. Due to inactivity, we will be closing this issue. Please feel free to re-open this issue if the issue persists. For enhanced visibility, if over 7 days have passed, please open a new issue and link this issue there. Thank you. |
Hit this same issue and it disappeared after a reboot + deleting bin and obj folders. |
I am trying to build my app using Xcode 15.3. My understanding is that 15.3 isn't yet supported, but I can't tell if the error I'm getting is because of that or something else. I posted this in another open issue for 15.3, but it doesn't appear to have much in the way of current activity. That post had other errors, but not this one.
Here is the stack trace from the publish output. Or at least the first group. I can include the rest if needed. My assumption is that when the stack trace says, "No such file or directory," it's talking about the process, not my solution. It is definitely there and I am able to deploy to the simulator. I just can't do a release build.
Every line is prefixed with this first line. I figured I'd leave out the repetition.
`/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk/17.2.8043/targets/Xamarin.Shared.Sdk.targets(1214,3):
error MSB4018: The "AOTCompile" task failed unexpectedly. [/myproject.csproj::TargetFramework=net8.0-ios]
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-arm64.Cross.ios-arm64/8.0.1/Sdk/../tools/mono-aot-cross' with working directory 'MySolutionDirectory'. 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-arm64.Cross.ios-arm64/8.0.1/Sdk/../tools/mono-aot-cross' with working directory 'MySolutionDirectory'. 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-arm64.Cross.ios-arm64/8.0.1/Sdk/../tools/mono-aot-cross' with working directory 'MySolutionDirectory'. 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-arm64.Cross.ios-arm64/8.0.1/Sdk/../tools/mono-aot-cross' with working directory 'MySolutionDirectory'. 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-arm64.Cross.ios-arm64/8.0.1/Sdk/../tools/mono-aot-cross' with working directory 'MySolutionDirectory'. 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-arm64.Cross.ios-arm64/8.0.1/Sdk/../tools/mono-aot-cross' with working directory 'MySolutionDirectory'. 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-arm64.Cross.ios-arm64/8.0.1/Sdk/../tools/mono-aot-cross' with working directory 'MySolutionDirectory'. 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-arm64.Cross.ios-arm64/8.0.1/Sdk/../tools/mono-aot-cross' with working directory 'MySolutionDirectory'. 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-arm64.Cross.ios-arm64/8.0.1/Sdk/../tools/mono-aot-cross' with working directory 'MySolutionDirectory'. 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-arm64.Cross.ios-arm64/8.0.1/Sdk/../tools/mono-aot-cross' with working directory 'MySolutionDirectory'. 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-arm64.Cross.ios-arm64/8.0.1/Sdk/../tools/mono-aot-cross' with working directory 'MySolutionDirectory'. 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-arm64.Cross.ios-arm64/8.0.1/Sdk/../tools/mono-aot-cross' with working directory 'MySolutionDirectory'. 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-arm64.Cross.ios-arm64/8.0.1/Sdk/../tools/mono-aot-cross' with working directory 'MySolutionDirectory'. 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-arm64.Cross.ios-arm64/8.0.1/Sdk/../tools/mono-aot-cross' with working directory 'MySolutionDirectory'. 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-arm64.Cross.ios-arm64/8.0.1/Sdk/../tools/mono-aot-cross' with working directory 'MySolutionDirectory'. No such file or directory))) [myproject.csproj::TargetFramework=net8.0-ios]
---> 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-arm64.Cross.ios-arm64/8.0.1/Sdk/../tools/mono-aot-cross' with working directory 'MySolutionDirectory'. No such file or directory)) [MyProject.csproj::TargetFramework=net8.0-ios]
---> 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-arm64.Cross.ios-arm64/8.0.1/Sdk/../tools/mono-aot-cross' with working directory 'MySolutionDirectory'. No such file or directory) [MyProject.csproj::TargetFramework=net8.0-ios]
---> System.ComponentModel.Win32Exception (2): An error occurred trying to start process '/usr/local/share/dotnet/packs/Microsoft.NETCore.App.Runtime.AOT.osx-arm64.Cross.ios-arm64/8.0.1/Sdk/../tools/mono-aot-cross' with working directory 'MySolutionDirectory'. No such file or directory [MyProject.csproj::TargetFramework=net8.0-ios]
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) [MyProject.csproj::TargetFramework=net8.0-ios]
at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo) [MyProject.csproj::TargetFramework=net8.0-ios]
at Xamarin.Utils.Execution.<>c__DisplayClass24_1.b__0() in /Users/builder/azdo/_work/1/s/xamarin-macios/tools/common/Execution.cs:line 103 [MyProject.csproj::TargetFramework=net8.0-ios]
--- End of stack trace from previous location`
Steps to Reproduce
Expected Behavior
The app builds
Actual Behavior
It crashes with the error above.
Environment
Version information
The text was updated successfully, but these errors were encountered: