该应用程序不包含有效的包标识符。
我知道这个问题以前曾被问过,但我已经尝试过给定的解决方案,但没有一个有效。我正在切换开发计算机,并在我的新计算机上开始一个全新的项目。我们已经有了在旧计算机上使用的证书,因此我从旧计算机导出了开发人员证书,并将其安装在我的新计算机上。我在新计算机上为新应用程序创建并下载了配置文件。我正在尝试在测试设备上运行该应用程序,我将其 UDID 添加到配置文件中,因此它对此设备有效。
配置文件是使用我在线创建的 Apple ID 创建的,格式为 com.mycompany.projectname。
当我尝试在测试设备上运行应用程序时(它也无法在模拟器上运行),我收到一个错误弹出窗口,显示应用程序不包含有效的捆绑包标识符。
我的捆绑包标识符,我检查了两个目标 ->总结->标识符和 Info.plist 以 com.mycompany.projectname 的形式正确显示,公司名称和项目名称中都没有任何特殊字符。
我错过了什么吗?我已经用头撞墙有一段时间了......
I know this question has been asked before, but I have tried the given solutions, and none have worked. I am switching development computers, and starting a brand new project on my new computer. We already have a certificate that we used on the old computer, so I exported the Developer Certificate from my old computer, and installed it in my new machine. I created and downloaded a provisioning profile for my new application on the new computer. I am trying to run the application on a test device, whose UDID I added to the provisioning profile, so it would be valid for this device.
The provisioning profile was created with the apple ID I created online with the the form com.mycompany.projectname.
When I try to run the application on the test device(it does not work on the simulator either), I get an error popup that says The application does not contain a valid bundle identifier.
My bundle identifier, which I checked both the Targets -> Summary -> Identifier and the Info.plist is showing correctly in the form of com.mycompany.projectname, with neither the company name, nor the project name having any special characters in it.
Am I missing something? I have been beating my head against the wall with this for a while now...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我记得上次发生这种情况是当我们笨手笨脚地扔掉我们应用程序的 plist 时。幸运的是,我们在旧时间胶囊上有一个旧副本,并修复了它。但从那以后我们更改了捆绑包 ID,并且它一直向我们显示该错误。将证书与捆绑包 ID 相匹配至关重要。绝对确保证书上的名称与捆绑包 ID 匹配,或者检查组织者以查看证书是否首先安装。如果需要,作为绝对的最后手段,更改捆绑 ID 并获取新证书。
I remember the last time this happened to us was when we noobishly trashed our app's plist. Luckily, we had an older copy on the old time capsule, and restored it. But we had changed the bundle ID since and it kept showing us that error. Matching the cert with the Bundle ID is critical. Make ABSOLUTELY sure the names on the cert match the bundle ID, or check the organizer to see if the cert even installed in the first place. If need be, as an absolute last resort, change the bundle ID and get a new cert.
我们确保“the plist”和“general->identify->Bundle Identifier”具有相同的Bundle Identifier。并且Bundle Identifier的样式可能类似于“com.mycompany.projectname”
按照以下步骤操作:
查看plist是否有Bundle Identifier
查看General->identify->Bundle Identifier是否与Xcode中的plist相同
如果相同可能Bundle Identifier不合适。所以你可以设置Bundle Identifier像“com.mycompany.projectname”
We ensure that “the plist” and “ general->identify->Bundle Identifier ” have a same Bundle Identifier。and the Bundle Identifier's stytle maybe be like "com.mycompany.projectname "
Follow these steps:
look plist whether have the Bundle Identifier
look general->identify->Bundle Identifier whether the same as plist in Xcode
if the same maybe Bundle Identifier is inAppropriate。 so you can set Bundle Identifier like "com.mycompany.projectname "