[ios]could not load nib in bundle in framework 해결방법
framework 에 xib를 넣어서 외부에서 라이브러리 형식으로 가져다 쓸려고 했다..
외부 프로젝트에서 라이브러리를 import 한 후, framework안에 있는 xib를 로드 할려고 했더니..
could not load nib in bundle 이라고 나온다..
자 그러면 어떤 bundle에 있는 xib인지를 알려줘야 한다..
라이브프로젝트 bundle identifier 명을 쓰고
let bundleID = "bundle identifier"
let bundle = Bundle.init(identifier: bundleID)
self.Controller = Controller(nibName: "xib명", bundle: bundle)
이렇게 하면 push해서 들어갈 수 있다.
'ios,swift' 카테고리의 다른 글
[xcode]Provisioning Profiles Location위치 찾는방법 (0) | 2022.04.05 |
---|---|
[ios]unsupported os version 15.3 해결방법 (0) | 2022.02.15 |
[SceneDelegate]삭제방법 (0) | 2020.05.29 |
[ios]swfit model version check 방법 (0) | 2020.04.27 |
[ios]swift uiimageview contentmode not working , translatesAutoresizingMaskIntoConstraints 연관 이슈해결방법 (0) | 2020.04.14 |