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

SPM integration in macCatalyst #881

Open
myeyesareblind opened this issue Feb 1, 2024 · 0 comments
Open

SPM integration in macCatalyst #881

myeyesareblind opened this issue Feb 1, 2024 · 0 comments

Comments

@myeyesareblind
Copy link

myeyesareblind commented Feb 1, 2024

I'm integrating Rswift using 'RswiftGeneratePublicResources' plugin. As in Migration guide.

It works perfectly fine for me on iOS. Not so well for my MacCatalyst target, unfortunately.
Here is the relevant build failure:

PhaseScriptExecution R.swift\ generate\ resources\ for\ framework\ Math /Users/myeyesareblind/Library/Developer/Xcode/DerivedData/Vectornator-bstdkyysadugaocibnwvjnigazoy/Build/Intermediates.noindex/Standard.build/Debug-maccatalyst/Math.build/Script-255A358E2B6BC8F00077BFD3.sh (in target 'Math' from project 'Standard')
    cd /Users/myeyesareblind/Documents/vec3/Frameworks/Standard
    /bin/sh -c /Users/myeyesareblind/Library/Developer/Xcode/DerivedData/Vectornator-bstdkyysadugaocibnwvjnigazoy/Build/Intermediates.noindex/Standard.build/Debug-maccatalyst/Math.build/Script-255A358E2B6BC8F00077BFD3.sh

sandbox-exec: execvp() of '//Users/myeyesareblind/Library/Developer/Xcode/DerivedData/Vectornator-bstdkyysadugaocibnwvjnigazoy/Build/Products/Debug/rswift' failed: No such file or directory
Command PhaseScriptExecution failed with a nonzero exit code

The interesting part

ls /Users/myeyesareblind/Library/Developer/Xcode/DerivedData/Vectornator-bstdkyysadugaocibnwvjnigazoy/Build/Products
Debug-maccatalyst

for unknown reason, 'rswift' binary is build into the 'Debug-maccatalyst' & searched inside 'Debug' folder. Which doesn't work.
As far as I understand, this is a problem in the Xcode itself. (Why does it even build this tool for macCatalyst??)
In case there are known workaround - please let me know.

My teammate also has experimented with plugin tools recently. Apparently, binary target do work properly. So packaging rswift into binary supposedly will work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant