Xcode没有构建二进制文件 [英] Xcode is not building the Binary

查看:218
本文介绍了Xcode没有构建二进制文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Xcode正在做一些奇怪的事情,我曾在某个时间点修复过,但是现在我一生都无法弄清楚出什么问题了.

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可以很好地构建我的项目-完全构建时没有错误.我所有的产品名称和info.plists都同意,所有设置似乎都是正确的.我只有一个构建配置(除非我必须实际发布某些东西,否则我总是删除所有这些配置-避免这些东西的许多看不见的问题).

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.

嗯?

我最近已在新计算机上签出了代码,并检查了所有路径以及应有的所有内容.

I have recently checked the code out on a new computer, and I checked all the paths and everything exists where it should.

任何帮助,我们感激不尽.它不会引发任何错误,也不会引发.app和.plugin的二进制文件(project.app/Contents/MacOS/此处没有内容).

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).

谢谢!

-斯蒂芬

推荐答案

UGH,所以答案是我的链接库之一本身没有指向正确的Dynamic Library Name.

UGH so the answer is that one of my linked libraries was not pointing to the proper Dynamic Library Name for itself.

类似于build/Proj.build/Development/blah...

它必须是/Library/Frameworks/$(EXECUTABLE_PATH),因为它是另一台计算机上的安装位置.

And it needed to be /Library/Frameworks/$(EXECUTABLE_PATH) because that's where it was installed on the other computer.

+1 @cdespinosa的荣誉,认为这是一个链接错误.

+1 Kudos to @cdespinosa for thinking it was a linking error.

经验教训:如果您将自己制作的内容包括在内,请始终otool -L.

Lesson learned: if you include anything you yourself make, always otool -L it.

-S!

这篇关于Xcode没有构建二进制文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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