Mint
Mint copied to clipboard
Error with R.swift on Mac M1
Hi all!
Environment: MacBook Pro 13 M1 2020, macOS 12.2.1, Xcode 13.2.1
I have a problem with build project when I added R.swift with Mint. Xcode get me this error.

My steps:
-
Download and install Xcode
-
Install homebrew and do:
-
echo 'eval $(/opt/homebrew/bin/brew shellenv)' >> ~/.zprofile
-
eval $(/opt/homebrew/bin/brew shellenv)
-
-
Install mint with homebrew
-
Add
github.com/mac-cain13/R.swift
to my Mintfile -
Add script in Xcode
-
Do
mint bootstrap
-
Try to build the project and get error (first screenshot)
I guess problem this path or shell, because when I run mint list
in terminal I see Installed mint packages

Thanks a lot for any help!
Same exact thing happens to me also. Any update on this?
Hi guys, I think their is a mistake on the documentation from R.swift. I think the command mint run R.swift rswift generate "$SRCROOT/R.generated.swift"
should be replaced with mint run R.swift generate "$SRCROOT/R.generated.swift"
.
I have installed R.swift on my machine via Mint. As I run mint run R.swift --help
I figured out that their is no command rswift
. Maybe that's the issue.
We are facing same error. Any solutions / updates?
@abin0992
We are facing same error. Any solutions / updates?
What do you get if you run mint run R.swift --help
?
We fixed this by adding the following before R.swift run phase script
if [ `uname -m` == 'arm64' ] && [ -d /opt/homebrew/bin/ ]; then
export PATH=/opt/homebrew/bin:$PATH
fi

Duplicated #201