iOS Simulator and Instruments freeze - iphone

I'm trying to do an iOS app and when I press CMD+I to launch Instruments to check for memory leaks the simulator freezes after a couple of gestures and so does Instruments.
Sometimes after a minute (or more) it works, but it's driving me nuts :(
I have Mac OS Lion and Xcode 4 (Lion version downloaded from Apple's dev portal).
Please help!
Thanks in advance!

Try the fix from here:
Bug with starting Instruments via Profile under XCode 4.1 Build 4B110
Basically, after Instruments starts your app, Command-Tab to Xcode and back. I had the same problem but this fixed it.

Related

iOS simulator takes over 1 hour to run an app

My Xcode and iOS simulator suddenly came to take too long time to run an app.
The build itself can complete within 15 mins even if full-build, but after that, the Xcode's message box shows "Waiting for iPhone X to start" (of course, "iPhone X" is an example). Even after the boot of a simulator, the app installation is not started for a long time.
Before the problem, the app installation was started once a build finished and a simulator booted.
I doubted my code, so I also tried with another very simple code, but the same problem remains.
Do you have any insights to help me?
Xcode and iOS simulator: 10.1 /
Mac: MacBook 2017, CPU 1.4GHz i7, Memory 16GB, macOS Mojave 10.14.4
Maybe your memory is saturated, or your stockage is saturated. Contact Apple if your problem is still here. You can discuss with them here : https://www.apple.com/shop/help
Try to reset your simulator and all its settings.
Open the simulator and click on the menu bar option Hardware -> Erase All Content and Settings…
I tried the update to Xcode 10.2.1, and the problem is resolved... I’m completely not sure the reason, but the old Xcode might have some problems during the transition period to the next version... Thank you all for your advices!!

iOS Simulator could not find the SDK, SDK may need to be reinstalled

Here I am stuck in another problem,am working on an iOS Application today and as i run my Application for iPhone 5.0 Simulator got some weird issue on that simulator only.
There were two window pop Over alert on my MacBook Screen when i was trying run again and again getting same issue for that simulator only.that pop over alert windows showing below quotation.
"iOS Simulator could not find the SDK. The SDK may need to be reinstalled."
"The simulated application quit."
It seems that this issue occurring due to the improper installation of that simulator.
Please help me by suggesting related to this issue.
Whether i have to reinstall that simulator again on my Xcode or need something else.
Any suggestion would be appreciated from the bottom of my Heart.
I've seen this on coworkers computers and it was because they had dock icons not pointing to Applications/Xcode.app/Contents/Applications/iPhone Simulator.app
I would try launching the simulator from that directory or deleting the Application/Xcode.app and reinstalling from the Mac App Store.

How can i deal with instruments hanging issue?

I am stuck with instruments for iPad app.I am developing app with map view.I can run instruments with iPhone for memory leaks and it's work fine.But problem is that for same code and same app instruments is not running with ipad.I checked my entire code but there is no such problem.Even Instruments is running with iPad simulator for same code.
If i start interments after loading my app on my device than it will give following message.
Failed to start Instruments daemon for 'iOS' on 'iPad (v4.3.5)' ((null))
I am using Xcode 4.0.2
Please Help me,
Thanks In ADvanced.

Xcode - No provisioned iOS device is connected

I was using Xcode this afternoon and debugging an app on my device just fine. When I got home from the office and plugged in my phone to keep working, XCode would no longer let me debug on my device. The error I received was:
Error Starting Executable. No provisioned iOS device is connected.
So I hopped over to the Organizer, and here is what I saw:
So what gives? Anyone seen this before?
Thanks!
Well I don't know why this helped, but if anyone else sees this thread the thing that "fixed" the problem was to remove the SDK from my machine, restart XCode, then plug in the device. XCode then popped up an alert view asking to collect the debugging symbols from the device, which I allowed it to do. From then on it worked like a charm.
You may be testing your application on simulator and accidentally, device is selected instead of simulator. It help me to sort out this problem.
Make sure you have upgraded to the latest Xcode 3.2.5 with iOSK 4.2.1 SDK.
I had another way of fixing this problem.
I tried upgrading my device to iOS5 Beta 7 ...to test my app in iOS5
Once i finished testing it, wanted to get back to iOS4.3.5 on my device...
it took a little pain but managed to restore it back to the original
but then the debugging didn't work and got the same error as mentioned here.
So i wanted to see what i see in that snapshot that you have : and there it was...
A button called "enable for debugging" if i'm not mistaken.
Worked like a charm.... :)

My app reboots iPhone on 4.1 iOS

I've upgraded my iOS on iPhone 3G to 4.1 and now I run my app on the device.
Firstly, I couldn't install it becouse Xcode was saying I don't have certification etc. (I have jailbroken iPhone). Finally, I succeeded and installed it.
But know something strange happens....
After I had installed my app on the device I run it.
Then, "cocos2d" image appears on the screen and just a second later device switch off! It simply reboots.
What's more - when the device launchs again and I run my app - it works!
I have no idea what's going on. This app works fine on 3.1.3 iOS (even with the same Xcode - 3.2.5)
What should I do?
Do you think the problem is caused by Xcode or iPhone itself?
Maybe reinstalling Xcode may help?
It could be one of two problems.
It could be a problem with your device. Maybe something got sort of wonky with your jailbreak.
Secondly, it could be a problem with your app. Maybe it's crashing. Have you checked your crash logs?