Executable not found?
I'm trying to run my iOS project. Everything builds fine, but when I try to run it, I get an error in the Build pane which says "Executable not found for build configuration ....". This is an XCode 4 project with everything as is when I opened it. The build configuration is Debug, Simulator - iOS 4.2, Standard, iPhone. Any ideas what might be going wrong?
thanks!
John Watson
Please sign in to leave a comment.
John,
Is it possible to attach a poject.pbxpoj file or just a sections of it (/* Begin PBXNativeTarget section */, /* Begin XCBuildConfiguration section * /)?
Please also check where exactly the your compiled app is put (more likely somewhere under /projdir/build/...).
Please also attach Build Console log.
As my question is redirected here, I'm going to give more information about my problem here...
Here's what I get when I build my very simple test app:
I'm using Xcode 3.2.5.
Here's the excerpt from my project file:
I can see that appCode is building into the correct build folder (outside the project structure) however when it comes down to running the app, it is trying to locate the executable in the projdir/build directory, which doesn't exist.
Please first clean the project and attach Console logs for the next build (current log is not enough).
Is it possible to attach project.pbxproj file?
Hi Anton,
No problem at all. It's a small test project anyway.
Here's the console output:
Attachment(s):
project.pbxproj.zip
Yagiz, thanks for the files.
I cannot reproduce the problem, though, on my environment.
Does the problem recur consistently?
If so, please check if AppCode looks for executable under '/Workspace/CommonBuildOutput/Release-iphonesimulator/Asteroid.app' (you can see the expected path in the error message 'Executable not found') and that app is actually exists under this path.
I'm seeing a similar problem. My OS X app builds, and the resulting binary is where one would expect (build/Debug/MyApp.app/contents/MacOS or similar, the point is, its in the .app bundle), yet its unable to open it, as for some reason, its looking for a differently named executable. The project, which I imported from Xcode, has the target named differently than the project. appCode is looking for the name of the Target, and not the name of the executable.
Anton,
It is looking for /Workspace/Test/Asteroid/build/Release-iphonesimulator/Asteroid.app.
In my Xcode's Preferences, in the Building tab, "Place Build Products in:" is set to "Customized Location" and not "Project directory" (the default). I can see appCode placing the build files to the correct location, but it doesn't look for them there.
Other projects using the same configuration produce the same result.
I have an old project that had a now-unused build subfolder. When I run this project, I get the following error:
So I assume appCode is finding the old executable.
If I change the "Place Build Products in:" setting back to "Project directory" in Xcode then all projects work fine.
Thanks for the investigation,
I've created a youtrack issue (http://youtrack.jetbrains.net/issue/OC-548).
Thanks for your help Anton. I'm sure you'll iron out these little problems. You guys rock. Keep up the good work.
If I set me output path to the default value, then everything works fine. Sounds like the bug has been identified. Thanks!
John