Xcode 没有构建二进制文件
Xcode 做了一些奇怪的事情,我曾一度修复了它,但现在我无法弄清楚出了什么问题。
Xcode 正在构建我的项目,并且在干净的构建中没有错误。我的所有产品名称和 info.plist 都一致,所有设置似乎都是正确的。我只有一个构建配置(我总是删除所有这些配置,除非我要实际发布某些东西 - 这些东西会带来许多看不见的问题)。
只是它没有为我的代码生成二进制文件。
呃哇?
我最近在一台新计算机上检查了代码,检查了所有路径和所有内容都存在于其应有的位置。
任何帮助表示赞赏。它不会抛出任何错误,并且 .app 和 .plugin 的二进制文件都不会抛出(project.app/Contents/MacOS/THERE IS NOTHING HERE)。
谢谢!!!
-史蒂芬
Xcode is doing something bizzare which I at one point in time fixed but now for the life of me I can't figure out what's wrong.
Xcode is building my project fine - no errors on a clean-all build. All my product names and info.plists agree, all the settings appear to be correct. I've only got the one build configuration (I always delete all of them except when I got to actually release something - waay to many invisible problems with these things).
Except that it is not generating binaries for my code.
Eh wot?
I have recently checked the code out on a new computer, and I checked all the paths and everything exists where it should.
any help is appreciated. It is not throwing any errors and neither the binary for the .app nor the .plugin (project.app/Contents/MacOS/THERE IS NOTHING HERE).
Thanks!!!
-Stephen
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
打开构建结果窗口,查看构建日志,然后找到“链接”步骤。单击右侧的脚本按钮可显示链接器调用的实际命令行。仔细看看它说它在做什么。如果通过检查发现问题并不明显,请将“链接”构建步骤拖放到此处的回复消息中,以便其他人可以看到它。
Open your Build Results window, look at the Build Log, and find the "Linking" step. Click the transcript button on the right to show the actual command line of the linker invocation. Look carefully at what it says it's doing. If it's not obvious what the problem is by inspection, then drag and drop the "Linking" build step into a reply message here so others can see it.
http://wiki.panotools.org/Build_a_MacOSX_Universal_Hugin_bundle_with_Xcode
这将帮助您..
http://wiki.panotools.org/Build_a_MacOSX_Universal_Hugin_bundle_with_Xcode
This will help u..
我将创建一个新的空项目并从其他项目复制源代码文件。如果没有构建日志,很难诊断这里的问题。
I would create a new empty project and copy the source code files from the other project. It's hard to diagnose the problem here without the build log.
呃,所以答案是我的链接库之一没有指向其本身正确的
动态库名称
。它类似于
build/Proj.build/Development/blah...
并且它需要是
/Library/Frameworks/$(EXECUTABLE_PATH)
因为那是它的安装位置在另一台计算机上。+1 感谢@cdespinosa 认为这是一个链接错误。
经验教训:如果您包含自己制作的任何内容,请始终
otool -L
它。-S!
UGH so the answer is that one of my linked libraries was not pointing to the proper
Dynamic Library Name
for itself.It was something like
build/Proj.build/Development/blah...
And it needed to be
/Library/Frameworks/$(EXECUTABLE_PATH)
because that's where it was installed on the other computer.+1 Kudos to @cdespinosa for thinking it was a linking error.
Lesson learned: if you include anything you yourself make, always
otool -L
it.-S!
在 Xcode 3.2.5 上,在成功构建 25 次之后,我开始想知道发生了什么。
事实证明,我必须进行构建和存档。之后,您会在管理器中看到一个我以前从未见过的窗口(已存档的应用程序)。在那里,我选择了应用程序,然后选择了存档构建,然后选择了在查找器中显示的上下文菜单。就这样,它顺利上传到 iTunes。
更新:
从同一屏幕“已存档的应用程序”中,您可以验证应用程序并将其直接提交到应用程序商店。不再需要应用程序加载器。毫无疑问,这个过程不会那么令人畏惧。
On Xcode 3.2.5, after building 25 times with successful Builds I started to wonder what was going on.
I had to do Build and Archive, as it turns out. After that you get a window in the Organizer which I've never seen before (Archived Applications). There I selected the App and then the Archived build and then context menu with Show in finder. There it was and it uploaded fine to iTunes.
Update:
From that same sceen, Archived Applications, you can Validate and Submit your App straight to the App store. no more Application Loader. Makes the process less daunting, that's for sure.