-
Notifications
You must be signed in to change notification settings - Fork 766
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
Can't archive app (macCatalyst): Command PhaseScriptExecution failed with a nonzero exit code #801
Comments
From the error message, this looks similar to: #798 |
@antfisher were you able to get past this? |
I think it's different to #798 and I am unable to get around this. Here is the sample project with R.swift failing on Archive for Mac Catalyst. |
Seems like it is different.
@deloitteshalem No. But I've updated my first post. Now it should be easier to create a temporary fix. |
Thank you both for doing some more research and providing an example project. This indeed sounds like an SPM bug. I'm not quite sure what to do about it. |
I'm having the same issue too. |
I'm encountering the same issue. Does anyone know of any workarounds? |
Since the problem is specifically related to SPM, the first thing that comes to mind is to try an alternative way to install R.swift, for example, using Cocoapods or manually adding the R.swift library to your project. |
Archiving build for macCatalyst is always failed with error:
R.swift installed using SPM. M1 pro mac used.
The issue is reproducible only for archive builds and only for macCatalyst.
Update:
After some research, I found that the reason for the issue is a wrong path to rswift executable. :)
As you can see, the path to the executable is produced with
context.tool(named: "rswift").path
. And it generates something like this:...DerivedData/APP_NAME/Build/Intermediates.noindex/.../BuildProductsPath/Release/rswift
And an executable can be found with this path, but only while building for ios.
When archiving for MacCatalyst the right path should be:
...DerivedData/APP_NAME/Build/Intermediates.noindex/.../BuildProductsPath/Release-maccatalyst/rswift
So it seems like it is an SPM bug
The text was updated successfully, but these errors were encountered: