Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 474
spenumatsa Avatar asked Oct 17 '18 17:10

spenumatsa


1 Answers

I also got the same issue.

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

like image 73
Naresh Avatar answered Oct 19 '22 14:10

Naresh