I'm using {N}5.1.0, and I'm trying to debug some memory leaks that I have in the application.
I've followed the instructions here. The problem is that when I press on 'profile', the instrument pane opens, the application is deployed to the device (a simulator) but it's not started. And if I click on the icon of the app on the simulator to manually start it, it shows the splashscreen and then silently stops.
I'm using xcode 10.1
I've already tried to wipe out all simulator data, restart simulator and xcode with no results.
Am I missing something?
I had to go to Product>Scheme>Edit Scheme then select Profile and switch Build Configuration to Debug
Related
I updated my Mac and Xcode recently to Monterey 12.4 and 13.4.1 respectively, and now every time that I try to build an application on Xcode, even if I have the message build succeed, the simulator stays on the dark screen with the apple and the loading bar and this window opens in Xcode:
I tried on apps with absolutely nothing such as the one created when starting an app from scratch, I also tried to erase all content and settings from my devices. Please help :)
I am developing an android app with react native. It is successful and already uploaded on play store. Now I am trying to build it in iOS version, but when I am opening the simulator, the app crashed, only splash screen that showed up and then forced close automatically. There is no any error showed in terminal in xcode. I am using macbook air M1 and xcode 14.2. Do you know why that happened and how to fix it? Thank you
Check if your Build Configuration for Run is "Debug" and not "Production"
Inside Xcode. Go to Product -> Scheme -> Edit Scheme
Attaching screenshot for reference
Is it possible to have Xcode automatically launch an app on my iOS device from Xcode 4.6 without attaching its debugger to the app? I'm working on an automated build system, so manually launching the app is not an option.
I've found Run Without Building under the Product -> Perform Action menu, but that still attaches the debugger. I can edit the scheme to make Xcode wait until the app is launched manually before attaching the debugger, but that's basically the opposite of what I want.
If you want to launch an app from Xcode without launching the debugger, I would uncheck the “Debug executable” option in the Xcode scheme:
If you want to launch an app manually, you can:
Select your device in the "scheme" dropdown;
Build the app (don't run);
Open the organizer and go to the "devices" tab;
Drag your app from the "Products" folder in the main Xcode project navigator to the device in the organizer window and it will be installed; and
You can then run the app manually from the device at that point.
This process can be useful when diagnosing startup performance and you want to run the app on the device completely separate from Xcode (and the debugger, if you have a debug build).
xcode 6.3.1
unselect the debug execute, then you could run without debugging.
Just Build and run and once it launches press stop and open the app manually. It will then be the app you built but not connected.
Having a strange issue with XCode 4.5 on OSX 10.8.2.
When I run an application on the mac, it doesn't launch and I get the following error in console consistently.
10/01/2013 17:26:26.478 Xcode[7884]: ERROR: Failed to create an alert for ID "enabled" based on defaults: 1
When I run an iPad/iPhone app, the simulator launches, but the app just shows a blank screen. I thought there was an issue with my apps (although very unlikely) so attempted to create a vanilla mac app and iOS app. Both experience the same issues. Running/Debugging any iPad project directly on the iPad through Xcode works however.
I've attempted to:
Delete everything in ~/Library/Developer/Xcode/DerivedData/
Delete the Xcode app and download it again from the AppStore
Delete all of my Xcode preferences
Xcode Build and stop buttons also become unresponsive so I have to force quit xcode to try again.
Nothing seems to be working, Xcode works fine however on my mac pro at work and all projects build just fine! Any help would be much appreciated!
Never mind, setting the debugger to GDB instead of LLDB seems to have fixed this. It would however be good to get an answer as to why LLDB doesn't work as the default debugger and what's changed in xcode to make it no longer work as expected.
I am facing very strange problem.
On my mac machine which has xcode 3.2.5 installed with iOS SDK 4.2. I am working on a universal application that runs fine on iphone 4 [can debug too] but not on iPad. When I run the application on ipad in debug mode then the application stops at splash screen with no error in console.
I can run the application by tapping on the application icon on home screen in ipad but not through xcode.
What may be the reason behind it?
Thanks
Arnieterm
Try restart the ipad. This is due to the debug process in ipad is sucked.
Your build scheme may not be in debug... Check your build scheme..
In XCode 4, goto Product -> Edit Scheme, then set Scheme to 'Debug'...