Search code examples
iosswiftrenamewatchkitapple-watch

Changing Watchkit extension bundle id after renaming project


After renaming my project from "apple watch company tutorial" to "Project x", i had some troubles, i solved some by checking this answer, and this one

iPhone Application Info.plist:

Bundle identifier: com.company.projectx

Watchkit Extension Info.plist:

Bundle identifier: com.company.projectx.watchkitextension

WKAppBundleIdentifier: com.company.projectx.watchkitapp

RemoteInterfacePrincipalClass: com.company.projectx.watchkitextension.InterfaceController

WatchKit App Info.plist

Bundle identifier: com.company.projectx.watchkitapp

WKCompanionAppBundleIdentifier: com.company.projectx

my starter interface is named as InterfaceController

but now i am having trouble

 2015-08-05 08:38:21.758 projectx WatchKit Extension[24714:1080879] WatchKit error - unable to find interface controller class '_TtC46Apple_Watch_Company_Tutorial_WatchKit_Extension19InterfaceController' to instantiate

I think my problem still related to renaming project and manually changing bundles , but i do not know what i am doing wrong.


Solution

  • Seems like changing module of class in interface was a necessity. It was named as previous module, after the change of new module which is already suggested by xcode when i click the name, it is working.