Study/Swift
[swift error] NSBundle principal class is nil because all fallbacks have failed
minulbora
2024. 12. 19. 00:04
NSBundle file:///Library/Developer/CoreSimulator/Volumes/iOS_22A3351/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS%2018.0.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/MetalTools.framework/ principal class is nil because all fallbacks have failed
NSBundle : 특정 번들을 관리하는 클래스
principal class is nil: 번들에서 기본 클래스(주 클래스)를 찾지 못했다는 의미.
all fallbacks have failed: 번들을 로드하는 다른 대체 방법도 모두 실패했다는 뜻.
해결방법:
호환성 문제라면 업데이트를 해서 맞추고, 아니라면 clean(Shift + Command + K) 과 rebuild(Command + B) 하면 간단하게 해결!