I've recently started working on an existing objc project and wanted to check the memory graph debugging tool. As I started a debugger with the app I realised it doesn't show in the debugging tools.
I tried it with another project (created a new swift project) and the icon suddenly did show again. But only for this project.
So my question now is if there're any settings in a particular project that can prevent the memory graph debugging tool from showing?
Any hints are appreciated.
I tried a lot of different simulators (iOS 9/10/11). I event tried rebooting my macbook because I read somewhere this could help ;-)
I'm using an objc only project with Xcode 9.1 or Xcode 9.2 beta 2.
This is my diagnostics selection in the scheme if that's related:
Step 1: shut down and restart your iPhone.
Step 2: quit and reopen Xcode.
This should make the button reappear.
For some reason, the button is not there when I test on the device, but it's there when I test on the simulator.
Hi I was having the same issue. It's actually hidden here:
It appears that the memory debugger will only work for newer devices. It definitely does appear on the iPhone 8 running iOS 11. On some of my older devices it does not appear. I'm not sure at this time what the cutoff is.
Related
I have this issue while I run my playground. However, it doesn't display on the right side. So, I searched many forums and the only way that worked for me was
to delete the comments. I use the iOS platform. My Xcode version is 9.4.1 on macOS High Sierra.
Xcode 9 has some issues in playground and sometimes it stuck at lunching simulator or running playground or etc. The best solution is update to Xcode 10+. Many bugs like this has been resolved in the current version of Xcode.
I've ran into this as well. I usually have to quit Xcode (cmd + q) or quit from the menu and reopen the playground. That usually runs the simulator.
I am working with a project using Xcode 8.0 and Swift3.
I want to use Memory Graph Debugger but it shows nothing:
Expected appearance (from tutorial):
Why can't I use this feature?
This project was created using Xcode 8 (not migrated from old version of Xcode).
Is bitcode related to this problem?
I am trying to use Memory Graph with "Debug" configuration and bitcode on "Debug" is enabled(YES).
Computer restart is what you have to do.
It happened for me too, and no amount of tweaking the settings fixed it - disappointingly, the only thing that worked was a complete restart of the computer.
This could be because you haven't enabled the things that need to be enabled for your requirements. You could try these two steps:
First, launch scheme editing by clicking on "Edit Scheme" as in this screen shot:
Second: go to "Diagnostics" and enable the things that you need to work (sometimes I need these two things):
Close out of editing schemes and try again.
Props to this answer for shaking my own memory awake on this one.
Restart computer is nor work for me.
And it can work on simulator, so I try to restart my device, and it worked.
on Xcode 10.
Restart your device
Changing to a different simulator helped in my case.
I have not done any detailed research but still I wanted to share my solution; I had the same problem recently with Xcode 9.4.1 / Swift 4.1. Restarting the computer did not help in my case. However, changing the simulator to 'iPhone 7 - 11.4' (I had used 'iPhone 8 - 11.4' before) solved the problem in my case.
I'm trying to debug an iOS project in XCode 6.4. Recently, none of the breakpoints are working (they did before), while I'm running the iOS Simulator. The debugging area only starts if I manually attach it to the process. I've looked through the project build scheme and settings, and there's nothing to suggest that I've turned off or changed the debugger in any way.
The problem only occurs with this specific project in XCode. I even reinstalled XCode to no avail, so I assume the problem must be specific to this project/workspace.
Any ideas why the debugging is not automatically attaching to the process? Or a workaround?
Thanks!
I recently tried to run a simulation of a new iOS 7 app on Xcode 6.1.1 using my MacBook Pro during a visit to Indonesia. The app was based on AddMusic and made iOS 7 compatible. When I tried to run the simulator abroad iOS simulation targets available while testing in Australia had simply disappeared from the pulldown menu in Xcode. Moreover since I came home these simulators only reappeared when I removed, downloaded and reinstalled Xcode.
Until I reinstalled Xcode the only option Xcode offered was to run the app on an iOS device but I wasn't prepared to do this in front of clients without first being able to test a revision on a simulator.
Thankfully on this occasion I was able to demonstrate earlier versions I had installed on an iPhone 4 and iPhone 5 C before I left home. But it would be really good to know what I might be able to do to avoid this situation during my next visit abroad.
I suspect the issue may have been brought on by differences between my Internet connections at home and abroad.
Has anyone else experienced a similar problem that might be related ?
Top to your Right Click on
Window > Devices
You will see that no devices will be showing Do the following
Bottom Left
Click on the +
And then start adding your devices.
Just closing the projects from the File Menu, quitting Xcode and restarting Xcode worked for me
the version is the latest Xcode 7
Some things which might help you
Check deployment target in your project settings. Switching to lower versions of OS might help you get back all simulators.
Check your xcode version used in the command line tools. Go to Xcode -> Preferences -> Locations -> Command line tools
Quit Xcode and restart your system.
Hope these things help !!
I have an application built against iOS 7, but targeted for iOS 5.1 since I only have an iPad 1 available for testing. It's an all native library, with very minimal iOS dependencies. I am able to run the app on my iPad just fine, but when I try to Profile it, XCode 5 immediately changes the status to 'Finished running on iPad', and the Instruments window shows a warning saying 'This device does not support this instrument'. I see this behavior regardless of which instrument I choose from the Instruments panel.
I have tried other suggestions from similar issues posted on Stackoverflow such as
1. Cleaning my app and rebuilding
2. Restarting XCode
3. Deleting my app from the device
4. Changing the deployment target from 'iPhone/iPad' to just 'iPhone'
None of these have helped me get over this problem. Is there something fundamentally not supported in the configuration that I am trying to run ? Since the app runs correctly on the iPad, this seems like just a problem with Instruments compatibility, so I welcome any comments / suggestions on resolving this.
Thanks.