WatchKit应用程序不包含任何WKAppBundleIdentifier匹配的WatchKit扩展。

3

这是我收到的错误代码:

WatchKit App doesn't contain any WatchKit Extensions whose WKAppBundleIdentifier matches "com.rshelver.tallyCounter.watchkitapp". 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.

非常抱歉,目前我对Swift并不是很熟悉,因为我是新手,只是想要学习。


错误提供了具体的指示:“验证您的 WatchKit Extension 的 Info.plist 中的 WKAppBundleIdentifier 的值是否与 WatchKit App 的 Info.plist 中的 CFBundleIdentifier 的值匹配。” 您已经完成了这个步骤吗? - jnpdx
我知道。我找不到CFBundleIdentifier。我查看了所有的.plist文件,但它不存在。 - Rshelver
如果你在Xcode中查看它,通常会显示可读的键,而不是真正的底层键。你看到了"Bundle Identifier"吗? - jnpdx
https://stackoverflow.com/questions/66984050/how-to-set-bundle-ids-app-identifiers-and-provisioning-profiles-to-publish-a-wa/66985435#66985435 - lorem ipsum
@jnpdx 是的!在构建 watchOS 应用程序时,它们都是应该的方式。 - Rshelver
嗯,好吧,Xcode不这么认为。如果你坚信没有任何差异(包括大小写敏感性),我建议你先进行一次“清理”,然后再尝试构建。 - jnpdx
1个回答

1

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接