Xcode 4 not starting the application?

Today, after installing Xcode 4 with the 4.3 SDK, I tried to run the application. However, the application will build and iOS Simulator will appear, but I get a message in a window in Xcode that says “Attach to YourApp”, which remains there indefinitely. How can I fix this problem?

+4
source share
10 answers

This happened to me for iPhone apps. I myself opened the simulator and switched the device to the iPhone Retina Display , and from that moment it worked. I tried switching back, but it didn’t work, so I had to keep it on the Retina Display simulator, and if I need to test not the Retina Display, I will use the iPad simulator.

+3
source

I had the same problem, that is, when I ran the application in the simulator, Xcode was visible while waiting for the simulator to start. The simulator showed a black screen - there was nothing.

Note that this is a project that works great on Xcode 3 and is the exact set of files used to create the application that is currently on sale in the App Store.

So here is the main problem and my solution:

My application name was "ultimateTimer.app", as shown in Xcode in the Products folder. However, this was not the name in the project file.

Here's how to find out: Click on your project in Xcode (usually at the top, for example mine is called ultimateTimer.xcodeproj). In the "Assembly Settings" section, find the "Packaging" area and, in particular, for the "Product Name" variable. In the Product Name section, I had three entries:

  • Debug
  • Distribution
  • Release

In the Debug section, the value of TalkUltimateTimer was old. When I changed it to "ultimateTimer" to match "ultimateTimer.app" as above, I found Xcode attached to the simulator correctly.

+5
source

I shot a message, and so far these are two solutions:

I think I understood the problem:

I went to "Edit Schemes", and for some reason, the scheme I used pointed to BumpDev.app as an executable file instead of bumpdev.app. Changing this did the job. Perhaps there is a problem converting from proj xc3 files?

In any case, the application now loads in the simulator. Hooray!

And another solution in this post:

Did your project accidentally link to a folder with images in it?

For me, the problem arises when I have a link to a folder in a project. When I delete the link to the folder and instead add the folder to the group, clear the project and hit that everything is working fine. In the Copy to Link phase, each image is then displayed separately, whereas when I had a link to a folder, the entire folder was specified.

It took me a lot of time to figure it out. It was rather unpleasant, but I'm glad that I have a workaround until the error is fixed.

+2
source

Simulator reboot worked for me

+2
source

I had the same problem after replacing the mouse with a new one. restarting my iMac resolved the issue.

+1
source

I just upgraded to Xcode 4.3.2 and had the same problem with new projects. After deflating and comparing projects, I found out that new projects were configured on dbugger LLDB, and the projects that worked used GDB.

After changing the debugger for a new project in GDB, it worked. I have yet to find out what the differences are, but at least now I can launch my new projects.

+1
source

Make sure you run the correct circuit.

I am. E. When using CocoaPods, starting the Pods scheme does not start the emulator.

+1
source

This is a known issue. Take a look at thread on the official forum.

0
source

Hey, upgrade Xcode to 4.0.2. The problem is resolved :)

0
source

I had the same problem, I tried every solution here, but there was no work. Finally, after restarting my computer, the problem disappeared.

0
source

Source: https://habr.com/ru/post/1343474/


All Articles