extra tokens at the end of #sourceLocation directive

박근우·2021년 4월 17일
0
post-thumbnail

시뮬레이터는 정상 작동하는데 preview가 또 말썽이었다.

Compiling failed: extra tokens at the end of #sourceLocation directive

구글링해보니 xcode의 버그인데 클로저나 if문 등등 여는 괄호부분에 주석이 있으면 발생하는 오류라고 한다.
주석을 옮기거나 지워주면 해결가능하다.

profile
공대생의 은밀한 취미

0개의 댓글