yonaskolb / Mint

A package manager that installs and runs executable Swift packages

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error with R.swift on Mac M1

ibr-murad opened this issue · comments

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.

Screenshot 2022-02-15 at 18 46 07

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

Screenshot 2022-02-15 at 18 52 07

  • 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

Screenshot 2022-02-15 at 19 02 02

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

Screenshot 2022-09-01 at 14 29 53

Duplicated #201