In one project, 'capture view hierarchy' and 'pause program execution' buttons are simply not working. 1 out of 20 times it's showing blank screen saying Unable to capture view hierarchy, but other times no response. Capturing memory graph button is working but it's taking forever to load. I have macbook with M1 chip with Xcode 13.3. Before that I had Xcode 13.3.1, which wasn't working as well. This situation is happening for one project only Tried to reinstall xcode-select, tried with different simulator ios versions, tried to run with Rosetta didn't work as well. For intel chips capturing works fine, it's only issue with M1. Any ideas?
Related
I have a 2019 16-inch Macbook Pro with an i7. My iOS simulator is showing terrible behavior on Xcode 12 and 13. The rendering happens only partially. I start typing but only top part of the TextField updates. When I pull my modally presented controllers up and down, it leaves glitches and artifacts in the render whenever I release the mouse pointer from the window. Only when I drag and click something in the simulator, only then the screen updates properly.
I have tried resetting the simulator and the machine, and different versions of Xcode AND or simulator iOS and nothing helps. I also have not found too specific mentions of this issue online.
This is a known issue that was fixed in Xcode 13. It primarily affects the iPhone mini so you can workaround it by using a different simulator.
I have a problem with debugging any app using Xcode 11.3.1.
The app builds very quickly (about 3 seconds), but after that, the device displays a white blank screen for a minute or two. On the Report navigator tab, it says that the app is running and debug is already in process but there are no logs. It happens with any app, even a newly created one.
Tried reproducing it on iPhone XS and iPhone 11 pro with 13.3.1 iOS version (the latest one at the moment) - the result is the same.
After this pause, I can debug the app as nothing happened. This behavior happens only during the debug session (no matter using cable or WiFi). If an app was already installed and launched directly from the phone - everything is fine.
For almost half a year my simulator is often very slow and hangs for a couple seconds when I'm touching the running app. This happens a lot when touching TableViews or MapViews (zooming, swiping).
For example I run the app go to a mapView try to zoom in and swipe then always for 5-10 seconds the app hangs and shows the beachball (loading cursor). Then the app continues to work for a bit and it hangs again, continues to work, etc.
My colleagues don't have this problem on the same macbook (Pro late 2013, 2.3Ghz i7, 16gb, OSX 10.11.2) and same xcode project.
I've reinstalled Xcode (running latest), iOS Simulator (both iOS 8 and 9 and 9.2 have these problems).
I cannot find anything in the console and I have this with other xcode projects as well.
Hope someone can help me with this otherwise I will have to reinstall my macbook pro.
So I've tried:
Reinstall Xcode
Reinstall Simulators
Looking at the console app -> all messages
Tried other Xcode projects
Tried other iOS version simulators
Remove all my plugins
Checking the CPU and Memory loads -> nothing
There is a known bug in the simulator in Xcode 7.1 and 7.2 related to accessibility. When various accessibility introspection tools are enabled, the simulator app performs poorly. I suggest you use the Xcode 7.3 beta or disable the tool that is triggering the issue.
See https://forums.developer.apple.com/thread/24274
I downloaded the Swift languages's GuidedTour.playground.zip file from
https://developer.apple.com/library/ios/documentation/Swift/Conceptual/Swift_Programming_Language/GuidedTour.html
Unzip it as GuidedTour.playground,
open it in Xcode 6.1.1, then the error message:
Error running playground.
Unable to find suitable target device.
I click OK button to close the error message window,
get back to the playground with the title "A Swift Tour". There is no output for any of the embedded code there. And every time I try to edit any of the code, the error message will pop up again and again.
Some people on the web had the same problem and solved it by adding some devices under the menu Window -> Devices -> SIMULATORS. I did it, but the error keeps showing.
If I click File -> New -> Playground to create a testing playground, this error message will not appear, and the testing code will run.
A week ago, I had replaced the HDD in my Early 2008 iMac with a SSD (solid state disk), recovered the whole system to the SSD from my Time Machine backup. Everything looks good until I found out that Xcode begins to refuse to run the tutorial "A Swift Tour". Before the SSD replacement, Xcode would run it. This might be related?
Thanks a lot for Raptor's kind response. I have solved this problem. I found out that I just added not enough simulators so that Xcode was unable to find suitable target device. After I added all the 10 simulators for iOS 8.1, the error is gone and the output appears.
At first, it seems that I will have to add all of them to make it work. Then after quite a few experiments by removing and adding some back and forth and restarting xcode, I cannot make sure exactly how many simulators are needed. Maybe 3 or 4.
playgrounds will run fine, assuming at least one of the following simulators are configured: iPhone 6, iPhone 6+, iPad Air, resizable iPhone, or resizable iPad.
Delete the contents of ~/Library/Developer/XCPGDevices (typically it contains a directory with a name which is the UDID of the simulated device)
At Xcode 7:
Step 1: Window > Devices > bottom left corner plus icon > add iPad Air or iPad Air 2.
Step 2: Quit and restart Xcode.
I am using Xcode Version 6.0.1. I reboot Mac (only restart Xcode didn't help) and this issue is resolved.
Hope this helps.
I have combed through the entire internet looking for this answer , and have found nothing, so I have decided to post.
EQUIPMENT: Mac Mini (2011) , running OSXLion (10.7) , 8gb ram, 500gb hd
XCODE: version 4.2, running IPAD 4.3 and 5.0 simulators
I have developed an Ipad app using the program HYPE (html 5 designer/generator), this program was developed by an APPLE team. I then brought it into Xcode using the PhoneGap template. I had developed this app in a previous version of Xcode (4.0 using MAC osx snow leopard) and was able to transfer everything into Xcode 4.2 (including the phonegap template) successfully.
All was running fine. I launched my app in the app store successfully (Five Element Clinic Book HD - http://itunes.apple.com/us/app/five-element-clinic-book-hd/id495512918?alreadyRedirected=1&ign-mpt=uo%3D2&mt=8)
I noticed some issues I wanted to change (namely the external hosting was not working - my embeded youtube video (iframe) was not working, links to external websites not working and an iframe bringing in a counter script (javascript) also not showing - so I decided to take a look at everything to see if I adding more detailed URLs in the phonegap.plist external hosts area would work.
I didn't even get that far. When I opened Xcode again (after about 2 weeks, so there must have been some kind of API change) - I had a tone of errors that lead me to the information of needing to Convert my files over to Objective C ARC.
So I did this, with no errors or issues. Everything converted seamlessly. All files are showing converted to Objective C ARC.
I CLEANED then reBUILT - with absolutely no errors or warnings - and RAN my app in the IPAD simulator (4.3 and 5.0).
This is what happens. The simulator opens, my app launches, the start up screen shows, the app begins to load the rest of the app and just goes to a WHITE SCREEN. Forever. It goes no where else.
So I have quit the app, restarted the app, deleted the app, tried everything again. Same issue. If I quit the app it just goes to a black screen. I have also restarted Xcode and my computer, ran my disk warriors to fix file permissions, etc.
I still have my old project in my old laptop (Xcode 4.0, MAC OSx Snow Leopard). So I went back there to see if I could just work from the old environment. Nope. Same errors that require me to convert files to Objective C ARC. So I converted with zero issues and zero errors. Cleaned, Built - no errors) and ran the program in the simulators. None of them work, everything loads the start-up screen and goes to a white page.
Does ANYONE know what is going on?
And thank you.
Mine was not a white screen - but a black screen.
In applicationDidFinishLaunching I was using the result of
UIWindow* window = [[UIWindow alloc] initWithFrame:mainBounds];
as a local variable.
Converting to ARC released it.
Instead it needed to be assigned to a property of my app delegate:
#interface MyAppDelegate : NSObject <UIApplicationDelegate> {
UIWindow *mainWindow;
}