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

[해결] m1 맥에서 SwiftLint BuildScript 실패 이슈 #20

Open
tngusmiso opened this issue Feb 2, 2023 · 0 comments
Open

[해결] m1 맥에서 SwiftLint BuildScript 실패 이슈 #20

tngusmiso opened this issue Feb 2, 2023 · 0 comments
Assignees
Labels
꿀팁💖 에러 해결, 생산성 향상 꿀팁

Comments

@tngusmiso
Copy link
Collaborator

이슈

@josushell 님 제보 :)
m1에서 SwiftLint가 설치되어 있는데도 동작 안함.

해결 방법

인텔맥에서는 바로 SwiftLint 설치 경로를 찾기때문에 스크립트 정상 동작 함.

if which swiftlint >/dev/null; then
  swiftlint
else
  echo "warning: SwiftLint not installed, download from https://github.com/realm/SwiftLint"
fi

m1은 brew path가 별도로 설정되어있어서 직접 경로를 설정해 주어야 함.

if test -d "/opt/homebrew/bin/"; then
  PATH="/opt/homebrew/bin/:${PATH}"
fi

export PATH

//...

image

개선 방향

  • 인텔과 m1 모두를 아우르는 스크립트???
@tngusmiso tngusmiso added the 꿀팁💖 에러 해결, 생산성 향상 꿀팁 label Feb 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
꿀팁💖 에러 해결, 생산성 향상 꿀팁
Projects
None yet
Development

No branches or pull requests

2 participants