Questions tagged [xcode-debugger]
21 questions
40
votes
10 answers
Debug Notification Extensions
I'm building a set of Notification Extensions (Service/Content).
I'm unable to connect to Xcode debugger or even log out to the device log or console.
Is there any way to see any kind of output?

dogsgod
- 6,267
- 6
- 25
- 53
22
votes
5 answers
Xcode errors disappear
I am having issues with errors in Xcode. I have purposely set errors in my code just so the errors show up, but they only appear for 5 seconds then disappear. Which is making debugging extremely difficult. Is this a bug in Xcode's lates release?

Zach Wilcox
- 233
- 2
- 7
14
votes
4 answers
How do I debug my Siri (Intents) extension?
I'm building a Siri aka Intents extension.
I do understand that I can attach the debugger to a running process after start, however, I never see my process. I do have the authorization for my app set to active and the extension must be running at…

dogsgod
- 6,267
- 6
- 25
- 53
7
votes
4 answers
Xcode 14 is not getting attached to Simulator in Debug mode
While debugging any iOS application, Xcode builds and run successfully, also launches a simulator but it is not able to attach debugger from Xcode 14 to Simulator iOS app.
It throws an error in Xcode:
Xcode console says:
Could not attach to pid :…

Mrunal
- 13,982
- 6
- 52
- 96
3
votes
1 answer
Xcode 12.5 with iOS 14.5.1 device getting xcode failed to start remote service com.apple.debugserver on device
I have created a new project and running the project on iOS 14.5.1 device with Xcode 12.5. But it is showing an error saying "Xcode failed to start remote service com.apple.debugserver on device"
I have tried all the below options
Unpaired, paired…

Anjaneyulu Battula
- 1,910
- 16
- 33
2
votes
1 answer
How could the movdqa/movdqu instruction write an incorrect value to memory?
I'm trying to implement AES encryption using the Intel AES Instruction Set, and I've encountered a strange issue when moving the contents of an xmm register to memory. I'm trying to move the contents of %xmm1 to the stack address in %rsi. Here's my…

jk9357
- 131
- 4
2
votes
0 answers
Xcode debugger doesn't stop at breakpoint in watchOS app
I've set a breakpoint in the applicationDidBecomeActive method in the WKExtensionDelegate class.
WatchExtensionDelegate.h
@interface WatchExtensionDelegate : NSObject
@end
WatchExtensionDelegate.m
@implementation…

Lukas Würzburger
- 6,543
- 7
- 41
- 75
1
vote
1 answer
See FPS gauge on Xcode 13.3.1
How can I enable the FPS gauge on Xcode 13.3.1.
Inside debug navigation I only see
CPU
Memory
Disk
Network
I know that in previous versions of Xcode there was FPS option...
I am running the Universel app with SwiftUI. (Try both mac and iPad…

Marko Zadravec
- 8,298
- 10
- 55
- 97
1
vote
0 answers
Xcode debugger shows values for only some variables. How to correct this behavior?
The debugger shows values of some variables correctly. However, for other variables, no value is shown.
As shown in the image, the debugger shows value for displayNameHairFront, whereas the value for displayNameHairBack is missing.
I have already…

Vaibhav Gupta
- 89
- 1
- 6
1
vote
1 answer
Xcode does't print any debug logs after Attach to Process by PID or Name
I use Xcode Version 10.2
Normal app debug print logs as expected, but when I want to test some delegate like
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:
(NSDictionary *)launchOptions
I attach to process by…

Alex
- 8,908
- 28
- 103
- 157
1
vote
0 answers
converting String it to a double but the value is nil (debugger says otherwise?)
I am creating a map on Xcode via Swift where I am creating markers from an API and am about to take the longitude and latitude from the JSON and convert such into a double so I can get the CLLocation and display the marker. Yet when I am getting…

Kengar
- 11
- 4
1
vote
1 answer
What's the easiest way to print the value of a variable of type UIInterfaceOrientation?
As I debug my app, I want to print out the value of a local variable orien of type UIInterfaceOrientation.
I tried print("\(orien") but it printed:
UIInterfaceOrientation
... which is obviously useless.
I then tried dump(orien), which produced…

Kartick Vaddadi
- 4,818
- 6
- 39
- 55
0
votes
2 answers
Xcode simulator black screen with error: "The operation couldn’t be completed. (Mach error -308 - (ipc/mig) server died)"
I'm having trouble running my app on the simulator, and I believe the issue started after I installed Xcode v14.3.
The first time I run the app, everything works fine. However, when I try to rebuild and run it again while the app is still running on…

Asi Givati
- 1,348
- 1
- 15
- 31
0
votes
1 answer
Terminal error MacOS: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/istream:1634:1: note:
An error is generated when I try to run my C++ program:
#include
#include //standard c++ library of time.h
using namespace std;
class DateCplusplus{
private:
int _day, _month, _year; //define variable
public:
void…
user11500906
0
votes
1 answer
`NSManagedObject` objects content never been shown directly in Xcode debugger
Is there any way to make the content for NSManagedObject objects visible without needing to use po or print the description for each attribute in the NSManagedObject object in a manual way ?!

jawad
- 775
- 6
- 16