Xcode builds but does not run

Hi folks,


I'm having trouble with Xcode,

Whenever I try to lauch a project it builds correctly and then only says "running <name>:<name>".

Some time ago, I worked on some iOS projects and back then everything was working correctly.

Not even they do run anymore.

I have no idea for which reason it stopped working, in the simulator the app ist just a blank screen.

Mac OS Projects with Cocoa do not even launch the built application. Console Applications do not work either.


I had this behaviour with XCode 7, then tried the 8 Beta which also had the problem.

This morning I decided to uninstall XCode and reinstalled XCode 8 Release from App Store.

The problem does persist.


Im running OSX 10.11.6 and Xcode Version 8.0 (8A218a).

Please help me out, I am getting desperate. I can not develop this way.


Best Regards,

Alex

MacBook Pro (Retina, 13-inch,Early 2015), OS X El Capitan (10.11.6)

Posted on Sep 15, 2016 1:50 AM

Reply
8 replies

Sep 15, 2016 7:08 AM in response to alexfromtheoldtown

Hello Alex,

The most common cause of a problem like this is not using the appropriate project template. Try to create a new "hello world" style project that doesn't do anything. The templates are automatically setup to build such a project. If that works, then you just need to rebuild your projects. Create new projects with the correct templates and the same names as existing projects. Then move over your code and resources.

Sep 15, 2016 7:39 AM in response to etresoft

Sorry if my first post was not clear,

this is exactly what I did, if I create an empty macOS/Cocoa Application project I should be able to launch it.

But if I do, the build is fine but it won't run. If I try to close Xcode then it says there is a task running and won't shut down. If I force close Xcode the program will launch, but obviously I can not debug this way and do not intend to force close&restart Xcode everytime I want to launch the application.

Any other ideas?

Sep 18, 2016 6:11 AM in response to alexfromtheoldtown

I was able to solve the problem, so here's what fixed it in case anyone else runs into this.

As I wrote I could run projects just fine under a different User Account.

1. Create a new User Account (Admin)

2. Login to new User

3. Go to System Settings and Remove the old user

4. Create a new User with the SAME Name and shorthand as the old one

4.b There should be a window saying there already is a folder with the same name and if you want to use it. Press YES

5. Logout and maybe Restart

6. Login to old user again, it should work now


EDIT: The problem seemes to be because of an .lldbinit file

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Xcode builds but does not run

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.