Mint icon indicating copy to clipboard operation
Mint copied to clipboard

Error with R.swift on Mac M1

Open ibr-murad opened this issue 3 years ago • 6 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!

ibr-murad avatar Feb 15 '22 16:02 ibr-murad

Same exact thing happens to me also. Any update on this?

AkisArou avatar Apr 06 '22 22:04 AkisArou

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.

AF-cgi avatar Apr 08 '22 01:04 AF-cgi

We are facing same error. Any solutions / updates?

abin0992 avatar Aug 30 '22 14:08 abin0992

@abin0992

We are facing same error. Any solutions / updates?

What do you get if you run mint run R.swift --help?

AF-cgi avatar Aug 30 '22 14:08 AF-cgi

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

abin0992 avatar Sep 01 '22 12:09 abin0992

Duplicated #201

ykws avatar Nov 27 '22 18:11 ykws