-
Notifications
You must be signed in to change notification settings - Fork 516
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
ACTool task fails build when xcrun actool cannot find tool #21762
Comments
This happens exactly when I switch to Xcode 16.1 (which .NET 9 targeting requires). If I switch back to Xcode 16.0, it works just fine. |
This looks like a variation of #3931. Can you try executing this script, to see if that shows the same error? https://gist.github.com/rolfbjarne/0cfcd18e187102ad48402aefe2d0f2c4
That sounds like a different bug (I don't see this behavior). I would suggest filing this in the MAUI repo. |
@rolfbjarne That script appears to have worked when targeting Xcode 16.1, both with and without the leading |
@AArnott and building your project with |
@rolfbjarne yes. |
Can you add this to your csproj: <Target Name="_PrintEnvironment" BeforeTargets="_CoreCompileImageAssets">
<Exec Command="env -0 | sort -z | tr '\0' '\n' > /tmp/actoolenv.txt" />
</Target> build your project (reproducing the error), and then attach the resulting |
Sure. Here you go, @rolfbjarne: |
Apple platform
iOS
Framework version
net8.0-, net9.0-
Affected platform version
.NET 9.0.100
Description
actool cannot be found, but only when in the context of
dotnet build
:If I take exactly the command line from the error message and execute it directly, in the same terminal where I spawned
dotnet build
, it works:I get the path to the actool printed in stdout.
I suspect then that the problem is environment variables set by the ACTool msbuild task, but I can't tell because that information isn't captured by the binlog.
Steps to Reproduce
With the .NET 9.0.101 SDK installed on a mac:
Modify the csproj to target .NET 9. (why does the .NET 9 SDK create a .NET 6 targeted maui project anyway??)
Use
xcode-select
to verify that Xcode 16.1 is selected.Problem repros.
Did you find any workaround?
No.
Build logs
binlog: msbuild.zip
The text was updated successfully, but these errors were encountered: