-
Tuist 설치시 오류 - dylib not founddeveloping study 2023. 4. 11. 12:46
Tuist를 적용하기 위해 튜토리얼대로 설치하는 도중 다른 맥에서는 잘 되던 것이 내 맥에서 설치하는 도중
같은 오류가 계속 발생하면서 애를 먹었던 기록... 결과만 보면 좀 어이없었다...에러 내용은 이렇다.
Error: The 'swift' was interrupted with a signal 6 and message: dyld[22737]: Library not loaded: @rpath/libswiftCore.dylib Reason: tried: 어쩌구 ~ /.tuist/Versions/3.17.0/libswiftCore.dylib' (no such file), '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib' (no such file),
1. 첫번째 시도
tuist github이슈에서 찾아보니 Mac Monetry버전에서 설치 오류가 있다고 한다. (처음에는 설치를 잘못했나 하고 몇번을 다시 설치해봤다...) 맥 버전을 업그레이드 하던가 Xcode를 업데이트 해야하는 상황. Xcode14.2버전이었음. 그래서 맥 버전을 업데이트 했다.
Unable to run latest tuist release 2.2.1 on Xcode 13.0/Swift 5.5 · Issue #3676 · tuist/tuist
Describe the bug Pin tuist version to 2.2.1 by adding .tuist-version and set content to 2.2.1, then run tuist generate and got following error The 'swift' command exited with error code 1 and messa...
github.com
GitHub - tuist/tuist: 🚀 Create, maintain, and interact with Xcode projects at scale
🚀 Create, maintain, and interact with Xcode projects at scale - GitHub - tuist/tuist: 🚀 Create, maintain, and interact with Xcode projects at scale
github.com
그리고 다시 설치 진행.
결과 해결 안됨.
2. Xcode 업데이트
=> 이것도 해결 안됨.
3. 그리고 마지막 오류 내용에 대해서 찾아보는데 계속 다른 사람들은 Xcode세팅에서 Embedded Content Contains Swift Code 를 YES로 바꾸면 된다는데 나는 Tuist를 설치하는 상황에서 발생하는 문제여서 다른 상황.
그래서 든 의심.....
dylib이라는게 다이나믹 라이브러리를 설치하려는데 찾지 못한다는 건데 그렇다면 Xcode에 설치된 라이브러리가 없는건가 혹은 Xcode를 찾지 못해서?라는 의심이 들었다.이게 Xcode App이 설치된 경로가 Application이 아닌 다른 path에 있으면 얘가 못찾을 수 있을 것 같았기 때문.
(그리고 내 Xcode는 Application에 설치돼 있지 않아서 앱 아이콘이 금지모양처럼 나오는 상황이었음)
그래서!!!
Xcode앱 경로를 설정해줌 -> Tuist 설치 명령어 실행 -> 그리고 됐다..... 굉장히 어이없는 문제였음...
어쨌든 이번 기회에 dylibrary와 static library도 공부했다. 이건 추후에 다시 정리해야지.
경로 잘 설정하자'developing study' 카테고리의 다른 글
Swift - reduce (0) 2024.01.04 SwiftUI - trim() (0) 2023.04.16 [Swift] CGRect (0) 2022.08.28 [Swift] Frame, Bounds (0) 2022.08.28 [CI/CD] Fastlane Match 적용하기 (0) 2022.08.03