Xcode is not building the Binary

笑着哭i 提交于 2019-12-13 20:12:54

问题


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


回答1:


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.




回答2:


http://wiki.panotools.org/Build_a_MacOSX_Universal_Hugin_bundle_with_Xcode

This will help u..




回答3:


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.




回答4:


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!




回答5:


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.



来源:https://stackoverflow.com/questions/3006891/xcode-is-not-building-the-binary

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!