Skip to content

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

Description

@tngusmiso

이슈

@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 모두를 아우르는 스크립트???

Metadata

Metadata

Assignees

Labels

꿀팁💖에러 해결, 생산성 향상 꿀팁

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions