본문 바로가기
🍎 iOS/문제해결

SwiftUI: Circular dependency between modules..(해결)

by @Eddy 2022. 6. 7.
728x90

처음 생성한 프로젝트명과 import된 라이브러리명 간의 충돌.

 

흔히 공부하려는 내용을 프로젝트명으로 설정하다가 생기는 오류.

 

따라서, 새 프로젝트를 (다른 이름으로) 생성하여 기존의 코드를 그대로 옮기면 해결이 되는 간단한 문제.

 

**참고자료**

https://stackoverflow.com/questions/52545418/circular-dependency-between-modules-realm-and-realmswift-error-in-swift

 

Circular dependency between modules 'Realm' and 'RealmSwift' error in Swift

I installed RealmSwift via Cocoapod. Even though I did not add Realm (Objective-C version) frame work to the Podfile, it still installed Realm with RealmSwift. When I imported RealmSwift, it gave m...

stackoverflow.com

 

반응형

댓글