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

Error with R.swift on Mac M1 #233

Open
ibr-murad opened this issue Feb 15, 2022 · 6 comments
Open

Error with R.swift on Mac M1 #233

ibr-murad opened this issue Feb 15, 2022 · 6 comments

Comments

@ibr-murad
Copy link

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!

@AkisArou
Copy link

AkisArou commented Apr 6, 2022

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

@AF-cgi
Copy link
Contributor

AF-cgi commented Apr 8, 2022

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.

@abin0992
Copy link

abin0992 commented Aug 30, 2022

We are facing same error. Any solutions / updates?

@AF-cgi
Copy link
Contributor

AF-cgi commented Aug 30, 2022

@abin0992

We are facing same error. Any solutions / updates?

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

@abin0992
Copy link

abin0992 commented Sep 1, 2022

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

@ykws
Copy link

ykws commented Nov 27, 2022

Duplicated #201

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

5 participants