R.Swift with SPM setup error SourcePackages/checkouts/R.swift/rswift: No such file or directory

719 Views Asked by At

Receiving this error:

/SourcePackages/checkouts/R.swift/rswift: No such file or directory
Command PhaseScriptExecution failed with a nonzero exit code

Use SPM for installation and this run code in Build Phases

"${BUILD_DIR%Build/*}/SourcePackages/checkouts/R.swift/rswift" generate --disable-input-output-files-validation "$SRCROOT/NameProj/Resources/R.generated.swift"
1

There are 1 best solutions below

2
On

I think you won't be able to use R.swift with spm. If you want it to be a dependency do try adding it via pods. Any other way will require you to add R.swift binary manually into the project.

Reference: https://github.com/mac-cain13/R.swift