TermiWatch icon indicating copy to clipboard operation
TermiWatch copied to clipboard

Build error

Open ghost opened this issue 5 years ago • 12 comments

When I go to project > run, it let me an error:

WatchKit App doesn't contain any WatchKit Extensions whose WKAppBundleIdentifier matches "com.(me).TermiWatch". Verify that the value of WKAppBundleIdentifier in your WatchKit Extension's Info.plist matches the value of CFBundleIdentifier in your WatchKit App's Info.plist.

what can I do ?

ghost avatar Mar 14 '20 08:03 ghost

Please see issue #9 .

kuglee avatar Mar 14 '20 09:03 kuglee

Yeah but when I do cmd+f and I search kuglee, I see nothing to replace with my apple indent

ghost avatar Mar 14 '20 09:03 ghost

These are the places where you have to change to identifiers:

  • TermiWatch WatchKit App's Info.plist: WKCompanionAppBundleIdentifier

  • TermiWatch WatchKit Extension's Info.plist: NSExtension > NSExtensionAttributes

kuglee avatar Mar 14 '20 09:03 kuglee

Thanks for helping me, I look at both theses places but I've already replace them :( still don't work

ghost avatar Mar 14 '20 09:03 ghost

Try to clean your project (Xcode > Product menu > Clean Build Folder).

kuglee avatar Mar 14 '20 09:03 kuglee

done, still don't work

ghost avatar Mar 14 '20 09:03 ghost

Do you have com.(me).TermiWatch.watchkitapp in NSExtension > NSExtensionAttributes > WKAppBundleIdentifier?

Also, select the project in the Navigator and check it the Target have the correct Bundle Identifiers.

kuglee avatar Mar 14 '20 10:03 kuglee

I have this: com.(me).TermiWatch.watchkitapp, but I don't know how to "check it"

ghost avatar Mar 14 '20 10:03 ghost

It's in the How to Install guide > Configuring the project section. The targets have to have the following bundle identifiers.

  • TermiWatch: com.(me).TermiWatch
  • TermiWatch WatchKit App: com.(me).TermiWatch.watchkitapp
  • TermiWatch WatchKit Extension: com.(me).TermiWatch.watchkitapp.watchkitextension

kuglee avatar Mar 14 '20 10:03 kuglee

IT WORKED ! I was missing this one com.(me).TermiWatch.watchkitapp, thank you so much for helping me so far <3

ghost avatar Mar 14 '20 11:03 ghost

No problem. I'm glad I could help.

kuglee avatar Mar 14 '20 11:03 kuglee

@kuglee I'm still getting the same error after checking 3 bundle identifiers...

wangqiaowen avatar Apr 23 '22 15:04 wangqiaowen