我的 iOS 应用程序的名称中有一个 +.捆绑因此无效.需要帮助解决 [英] My iOS app has a + in its name. Bundle is invalid due to this. Need help resolving

查看:16
本文介绍了我的 iOS 应用程序的名称中有一个 +.捆绑因此无效.需要帮助解决的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我确实在这里找到了几个非常相似或相同的主题,但它们似乎在完全解析之前就结束了.

I did find a couple of very similar or identical threads here but they seemed to end before full resolution.

我的应用在我的设备上运行良好,没有构建错误.我正在尝试提交应用程序以供批准,但出现以下错误,此捆绑包无效.由 CFBundleExecutable 在 info.plist 文件中报告的可执行文件名称可能不包含任何这些字符..... +".所以我打开了我的 info.plist 文件并将 info.plist 文件的可执行文件名从宏 ${EXECUTABLE_NAME} 更改为我的应用程序的名称,没有 +.我做了一个新的存档,但收到一条错误消息,提示代码设计失败,退出代码为 1".

My app runs fine on my device with no build error. I am trying to submit app for approval and I get the following error, "This bundle is invalid. The executable name, as reported by CFBundleExecutable in the info.plist file may not contain any of these characters ..... +". So I opened my info.plist file and changed the info.plist file executable name from the macro ${EXECUTABLE_NAME} to the name of my app without the +. I did a new archive but then get an error saying the "codesign failed with exit code 1".

在另一个线程中,我读到只是更改目标名称,从那里删除 + 并将 info.plist 文件与可执行文件名称的宏一起保留,重新启动 Xcode,然后再次存档.这让我可以存档,但我在 iTunes Connect 中收到了同样的错误.

In another thread I read to just change targets name removing the + from there and leaving the info.plist file with the macro for the executable name, restarting Xcode and then archiving again. That allowed me to archive but I received the same error in iTunes Connect.

我一整天都在研究这个,但没有找到解决方案.任何人都可以指出我正确的方向吗?感谢您的帮助.

I have been working on this all day and don't find the solution. Can anyone please point me in the right direction? Thank you for any help.

推荐答案

您必须在 Build Settings 中更改 ${PRODUCT_NAME}.您必须在 Info.plist 中的 Bundle Display Name 中设置显示名称.

You have to change ${PRODUCT_NAME} in Build Settings. And you have to set name for display at Bundle Display Name in Info.plist.

请参阅此处了解更多详情:捆绑包名称、可执行文件名称、产品名称……还有其他吗?

See here for more details: Bundle Name, Executable Name, Product Name...anything else?

这篇关于我的 iOS 应用程序的名称中有一个 +.捆绑因此无效.需要帮助解决的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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