“此应用包含带有非法捆绑包标识符的应用扩展”问题 [英] "This app contains an app extension with an illegal bundle identifier" issue

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

问题描述

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

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


此应用程序包含带有非法捆绑软件标识符的应用程序扩展程序。
应用程序扩展捆绑包标识符的前缀必须由包含其应用程序的捆绑包标识符的
加上。组成。

This app contains an app extension with an illegal bundle identifier. App extension bundle identifiers must have a prefix consisting of their containing application's bundle identifier followed by a '.'.

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

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


com.myname.myappname

com.myname.myappname

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

and my bundle identifier of my today widget is


com.myname。 myappname.mywidget

com.myname.myappname.mywidget

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

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:


此应用包含带有非法捆绑包标识符的应用扩展。应用程序扩展包标识符必须具有包含其包含的应用程序包标识符的前缀,后跟'。'。

This app contains an app extension with an illegal bundle identifier. App extension bundle identifiers must have a prefix consisting of their containing application's bundle identifier followed by a '.'.

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

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

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

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆