Error when running Xcode simulator - '[framework] CUIThemeStore: No theme registered with id=0'

spenumatsa picture spenumatsa · Oct 17, 2018 · Viewed 10k times · Source

I am developing an app with a single view and some labels. The app fails at the viewdidload() func and does not proceed further. The code is listed below.

override func viewDidLoad() {
    super.viewDidLoad()

    locationManager.delegate = self
    locationManager.desiredAccuracy = kCLLocationAccuracyHundredMeters
    locationManager.requestWhenInUseAuthorization()
    locationManager.startUpdatingLocation()

}

The error is '[framework] CUIThemeStore: No theme registered with id=0'

I am not using any themes or external frameworks in my code. I am running Xcode 10 on MacOS Mojave. I checked the setting in Xcode to see if it is referring to any external frameworks and I could not find any. Any help is very much appreciated.

Answer

iOS picture iOS · Mar 21, 2019

I also got the same issue.

Simply move your image(s) to Assets.xcassets folder.