Xcode错误地声称CFBundleExecutable为(null) [英] Xcode falsely claims CFBundleExecutable to be (null)

查看:150
本文介绍了Xcode错误地声称CFBundleExecutable为(null)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试为beta测试创建一个特别构建的iPhone应用程序。

I'm trying to create an ad-hoc build of an iPhone app for beta testing.

在他们的结尾,他们看到如下错误:

On their end, they're seeing an error like the following:

xxx申请的info.plist指定了一个CFBundleExecutable(null),它不存在

"The info.plist for application at xxx specifies a CFBundleExecutable of (null), which does not exist"

以下是实际info.plist的摘录:

Here is an excerpt from the actual info.plist:

<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>

它显然不是空的。

我在这里做错了什么?

推荐答案

工作解决方案就是这个(只有这个):

The WORKING SOLUTION is this (and only this):

在Xcode中,从项目层次结构中选择可执行文件。单击项目可执行文件,然后按Command-I。选择常规选项卡并将工作目录设置为构建产品目录。

通过BrainwashInc找到,他们归功于MacHackShack。我认为这些有价值的信息太重要了,不能随意留在博客上。

Found via BrainwashInc, who credits MacHackShack. I thought this valuable information was way too important to leave floating around on random blog.

似乎有时候XCode可能会翻转这个设置,因为我突然开始遇到这个问题,并修复上面的修复。将其更改回项目目录每次都会为我重现问题。

It seems like sometimes XCode may flip this setting, as I suddenly started having this issue, and the fix above repaired it. Changing it back to "project directory" reproduces the issue for me, every time.

我还必须重新启动XCode,以便在此修补程序安装应用程序后调试器正常工作,这可能是无关的。

I also had to restart XCode to get the debugger to work once this fix installed the app, that may be unrelated.

这篇关于Xcode错误地声称CFBundleExecutable为(null)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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