此应用包含带有非法捆绑包标识符的应用扩展

此应用包含带有非法捆绑包标识符的应用扩展

本文介绍了“此应用包含带有非法捆绑包标识符的应用扩展”问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有点困惑,因为我更改了应用程序名称,捆绑显示名称和捆绑标识符名称...现在我的应用可以正常运行,但是今天的小部件却无法正常工作。

I'm a bit mixed up, since I changed the app name, Bundle Display name, and Bundle identifier name...and now my app works properly, but my today widget won't.

每当我今天尝试运行小部件时,它都会成功构建,但不会启动,而是说

Whenever I try to run today widget, it builds successfully, but instead of being launched, it says

但是,我检查了Info.plist,我的捆绑包标识符为

However, I checked Info.plist and my bundle identifier is

,而我今天的窗口小部件的捆绑包标识符是

and my bundle identifier of my today widget is

这不是刚刚好吗?我一遍又一遍地清理和建造..但它根本行不通。

Isn't this just right?? I cleaned and built again and again..but it just won't work.

而且没有GOOGLE结果!我是唯一遇到此问题的人吗?

And NO GOOGLE RESULT! Am I the only person with this problem??

如果出现问题,我的捆绑包名称不是'myappname'。

My bundle name is not 'myappname', if it is the problem.

我们将不胜感激。

事情变糟了,我不知道该去哪里看看!

Something's gone bad and I don't know where to look!

推荐答案

我在股票扩展中的捆绑标识符遇到了类似的问题

I ran into a similar problem with the Bundle identifier in a share extension

app Info.plist: com.company.product.$(PRODUCT_NAME:rfc1034identifier)
ext Info.plist: com.company.product.$(PRODUCT_NAME:rfc1034identifier)

所以我结束了

app Info.plist: com.company.product.product
ext Info.plist: com.company.product.product_ext

通过了构建检查,但拒绝在出现错误的设备上运行:

which passed the build checks but refused to run on a device with error:

一旦我删除了多余的产品,版本运行在设备上。

Once I removed the extra product, the build ran on a device.

app Info.plist: com.company.$(PRODUCT_NAME:rfc1034identifier)
ext Info.plist: com.company.product.$(PRODUCT_NAME:rfc1034identifier)

app Info.plist: com.company.product
ext Info.plist: com.company.product.product_ext

我不小心更改了应用程序 Info.plist 而不是扩展名 Info.plist时发现了我的错误。为了帮助调试问题,请在应用程序 Info.plist 中引入错误,并且您应该得到带有 Bundle标识符

I discovered my error when I accidentally changed the application Info.plist instead of the extension Info.plist. To aid in debugging the problem, introduce an error into the application Info.plist, and you should get a build error with the Bundle identifier of the app and extension:

 ERROR.com.myname.myappname

这篇关于“此应用包含带有非法捆绑包标识符的应用扩展”问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-13 08:24