重命名项目后更改 Watchkit 扩展包 ID
Changing Watchkit extension bundle id after renaming project
将我的项目从 "apple watch company tutorial" 重命名为 "Project x" 后,我遇到了一些麻烦,我通过检查 , and
解决了一些问题
iPhone 申请 Info.plist:
Bundle identifier: com.company.projectx
Watchkit 扩展 Info.plist:
Bundle identifier: com.company.projectx.watchkitextension
WKAppBundleIdentifier: com.company.projectx.watchkitapp
RemoteInterfacePrincipalClass: com.company.projectx.watchkitextension.InterfaceController
WatchKit 应用程序 Info.plist
Bundle identifier: com.company.projectx.watchkitapp
WKCompanionAppBundleIdentifier: com.company.projectx
我的入门界面被命名为 InterfaceController
但现在我遇到了麻烦
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
我认为我的问题仍然与重命名项目和手动更改包有关,但我不知道我做错了什么。
似乎有必要在界面中更改 class 的模块。它被命名为以前的模块,在我点击名称时 xcode 已经建议的新模块更改后,它正在工作。
将我的项目从 "apple watch company tutorial" 重命名为 "Project x" 后,我遇到了一些麻烦,我通过检查
iPhone 申请 Info.plist:
Bundle identifier: com.company.projectx
Watchkit 扩展 Info.plist:
Bundle identifier: com.company.projectx.watchkitextension
WKAppBundleIdentifier: com.company.projectx.watchkitapp
RemoteInterfacePrincipalClass: com.company.projectx.watchkitextension.InterfaceController
WatchKit 应用程序 Info.plist
Bundle identifier: com.company.projectx.watchkitapp
WKCompanionAppBundleIdentifier: com.company.projectx
我的入门界面被命名为 InterfaceController
但现在我遇到了麻烦
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
我认为我的问题仍然与重命名项目和手动更改包有关,但我不知道我做错了什么。
似乎有必要在界面中更改 class 的模块。它被命名为以前的模块,在我点击名称时 xcode 已经建议的新模块更改后,它正在工作。