- Total
꿈꾸는리버리
[Error 해결] Launch screens may not set custom classnames 본문
[Error 해결] Launch screens may not set custom classnames
rriver2 2023. 2. 19. 17:10
상황
Kerning이 추가된 customLabel을 추가하고 이 customLabel을 launch Screen에 사용하니까 아래와 같은 에러가 발생했다.
Launch screens may not set custom classnames
해결 방법
우측 하단의 Use as Launch Screen을 클릭하고 다시 빌드를 한다.
문제이유
앱이 로드되는 기간동안 lauchScreen을 돌리고 있기 때문에 아직 앱이 모든 로드가 끝나지 않아서인 듯 했다. 그래서 lauchScreen 버튼을 해지하면 custom했던 label을 불러올 수 있게 된다.
추가적인 의문
근데 저 버튼을 없애게 되면 lauchScreen으로써의 역할을 못하게 되는 것 같은데,
나는 전에 lauchScreen이 1초 정도 노출되게 코딩을 해뒀기 때문에,, 런치스크린이 보이는 듯했다...
그냥 lauchScreen에는 custom label을 쓰지 않는 게 좋을 듯 하다.
출처
https://stackoverflow.com/questions/37764156/launch-screens-may-not-set-custom-classnames
Launch screens may not set custom classnames
I tried to add a custom class to my Table View Cell, but after I added it it gives the following error: I often read that I can't use custom classes in the LaunchScreen but I haven't touched this ...
stackoverflow.com
'오뚝이 개발자 > Error 모음 (iOS)' 카테고리의 다른 글
[Error 해결] Undefined symbol: OBJC_CLASS$_ (0) | 2023.07.02 |
---|---|
[Error 해결] SwiftUI Onone Swift optimization level to use previews (0) | 2023.06.13 |
[Error 해결] Embedded binary's bundle identifier is not prefixed with the parent app's bundle identifier. (0) | 2023.02.08 |
[Error 해결] failed to get the task for process (0) | 2023.01.04 |
[Error 해결] Failed to create IXPlaceholder for app bundle ID (0) | 2022.08.29 |