开发者

iPhone project "No launchable executable present at path"

I downloaded one of the sample apps for iOS and it gives me the above error. No launchable executable present at path /Users/..../MyProject/build/Debug-iphonesimulator/MyProject.app

What i do have is the MyProject/build/MyProject.build/Debug-iphonesimulator/GeneratedResources.build/ some files.

No build errors.

When I see in the finder the directory is indeed not even present. What could be the problem ?

Update: Yes, i did tr开发者_如何学Cy cleaning & deleting Build directory, doesn't help


I also had this same error code for my project. I was using a number in the Target -> Product Name. Once I changed the Product Name of the target to letters only everything worked fine.


Try opening the Info.plist and removing "executable name" value if it's filled with custom string instead of string variable (the one that should look like ${FOO_BAR}, but doesn't).


I had this problem. it turned out I had the active target set incorrectly, in my case to a cocos library instead of to my own app.


After trying the things mentioned here, also make sure you click on "Clean All Targets" then quit XCode and restart XCode. This fixed it for me and many others on the web!


I had the same problem. In my case, I had an additional target for the same project (which contained test libraries). At some point xCode always tried to launch the test binary, regardless of what binary it compiled.

Removing the pbxuser and perspective files (inside project.xcodeproj) solved it for me.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜