Xcode 12.4 keeps loading..100% cpu m1 - apple-m1

I have tried all the solution I could find in the internet except that I was unable to set connect via network cuz when ever I start Xcode it will keep loading and not respond. I am using Xcode 12.4. CPU usage is showing 100%. Any solution?
I am using MacBook Pro m1 13".

After downgrading back to 12.3 its working well as before

Related

VS2019 Xamarin Forms Remote IOS simulator Black screen - How to fix?

Xamarin Forms Project
Microsoft Visual Studio 2019 Version 16.9
Xcode on Mac version 12.4
Using IPad Pro 11 inch running 14.4 as the simulated device and IOS version.
( I tried other simulators )
If I build and run Simulation on the Mac, it works. So i believe it is a remote simulation issue.
If you set IOS simulator to remote it starts and appears to run the simulation
in the simulator but it just shows a black screen.
Ive updated everything I can think of. Mac OS, XCODE on latest available.
Visual Studio, W10, all latest available and everything restarted...
Still it doesnt work. You do see brief at time of deployment dots spinner that reminds of the spinner when shutting down.
How do I fix the back screen simulation. ?
EDIT: With Latest Updates, it works again.
After upgrading to VS2022, upgrading Xcode on the mac.
Even the simulators are now ios15.x
Somewhere is all those updates the problem is gone.
You could have a try with Forget the Device first:
Next step, better need to reboot Mac .
Last, Pair to Mac again with Add Mac manually:
If it also can not work, maybe need to check the quality of network whether is well.

Xcode 8 simulator slow & laggy while building app

Xcode iOS simulator running incredibly slow while app is building. UI and response is very laggy.
I am using Xcode 8.0 release on OSX 10.11.6
Has anyone else experienced this? If so anyone have any solutions?
The iOS Simulator does not have access to the GPU. It makes use of the CPU for all rendering.
Compilation takes up a ton of your CPU and disk I/O bandwidth.
Given that, you should expect the simulator to run slower than normal than when you're not compiling because it is getting resource starved by the compilation.
I had the same problem and it was solved after upgrading to macOS Sierra 10.12.5 Beta

Xcode 7, simulator with black screen with apple logo

Ever since I upgraded to Xcode 7, I keep seeing this on my simulator every time I launch the simulator or I switch between the different simulators. Any reason why or how do I fix this? I've also made sure I don't have other apps running to use up my system resources.
Is this a hardware issue ? I'm using a '2.5 GHz Intel Core i5' MacBook Pro with 8GB RAM at home. At work I have a higher end retina display MacBook Pro (2.7 GHz Intel Core i7) with 16GB RAM and I don't encounter any delays when loading the simulator or switching between them .
There is nothing broken here, so there's nothing to fix.
The iOS 9 Simulator Runtime added the boot logo, so you will see it rather than a black screen on boot (just like on a real device). Older runtimes just show a black screen.
The first time you boot a device (sim or real), it will display the progress bar as it runs through some initial setup steps.

Xcode 6.1 and iOS Simulator 8.1 very slow to run

I'm using Xcode 6.1 and iOS Simulator 8.1. It takes a long time to run the simple apps that I've written using the iOS Simulator. Build process was ok but then the iOS Simulator will show the black blank launch screen then the app screen for like 5 minutes before the app launch. Many times it shows error "Lost connection to iPhone 6(/5/4s)". Tried to re-start Xcode and iOS Simulator, and MacBook Pro multiple times already. Tried to reset "Content and Settings" in the iOS Stimulator, but doesn't help.
What could be the possible causes? Any advice/solution? Thank you.
I suggest that you boot up the device that you want to use prior to the Build&Run in Xcode. If you hit Build&Run in Xcode while the device is not booted, you will need to wait for the device to boot. This can take a long time depending on your I/O load (eg: if Spotlight is indexing at the same time you are trying to boot, or if your home directory is on a slow volume like a network mount).
Just open up iOS Simulator.app ahead of time and select the device you want to test on from the Hardware->Devices menu. Then it will be ready when you need it.
Make sure 'slow animations' is not selected under the Debug tab in the iOS Simulator. That fixed the issue for me.
Googled on this issue and some said it's a Xcode bug with the 6.1 beta, but I had the 6.1 release version installed alreadt. I even try the 6.2 beta, hoping Apple has a fix for this, but no luck, still the same.
So desperate that I decided to upgrade my 3 years old MacBook Pro RAM and harddisk to SSD. Problem solved with the upgrade! The iOS Simulator runs normally now.

Running iPhone 5 Simulator on Snow Leopard

I am running the iOS6 SDK on my mac running Xcode 4.2 on Snow Leopard using steps from this Stack Overflow post.
I'm now trying to get the iPhone 4" screen to work. I have been able to get iOS 6 to show up in the iOS simulator under the Hardware > Version menu. When I try to load an iOS 6 device, I get the error: "The simulated application quit" - "Click Relaunch to try again". It then gives me an option to switch to a different SDK. If I choose iOS6, it again crashes. If I choose iOS 5, it loads correctly.
I also don't have an iPhone 4" screen option under the Hardware > Device menu.
I have copied the iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.0.sdk folder from the Xcode Disk Image to my computer.
I'm not able to upgrade my computer past Snow Leopard.
So I need to be able to:
load iOS 6 in the iOS Simulator
load an iPhone 4" in the simulator
Problem is Xcode 4.5 on your mac.
The original post says how to run ios 5.1sdk on "Xcode 4.2 on Snow leopard".
Xcode 4.5 is not available on snowleopard.
Install Xcode 4.2 and follow the steps again.
Another idea is to use Virtual Box and run XCode in it. Of course, running OS X on virtual box is quite difficult and not entirely legal (although you do have a Mac, so it can be justified). You can follow this link if interested.
http://www.sysprobs.com/guide-mac-os-x-10-7-lion-on-virtualbox-with-windows-7-and-intel-pc
It's for windows 7, but you should be able to get it to work on OS X as well.
I VMware Fusion 5 (and maybe 4 also, I don't remember) allows Mac OS X Lion and Mountain Lion to run in a VM. So you could install VMware Fusion, and use it to run a virtualized instance of Mountain Lion. Since the hardware is virtualized, it shouldn't matter that your Mac doesn't support anything newer than Snow Leopard.
Performance will likely be poor, though - my experience is that you need at least 4 gigs of RAM for VMware Fusion to run smoothly. If your Mac is too old for Lion and Moutain Lion, it'll probably won't have that amount of RAM installed.
It's said that Xcode 4.2 is the last supported version on Snow Leopard. So no it won't work and you'll have to get Lion.
I found the answer on another StackOverflow post
You would have to be under Lion in this case with both Xcode 4.2 and
4.5 installed. There should be no problem with this.
Don't forget...
As stated in a Stack Overflow post
"I installed Xcode 4.2 on a Snow Leopard and when iOS SDK was published I imported the iOS 5.1 SDK" Look at another Stack Overflow post
Use the 2nd post link. It works perfectly, just copy "6.0" instead of "5.1".
Don't forget that you could just use an external iOS device that can run iOS6
You could always ask for support from developer.apple technical support
Delete your simulator and re-download

Resources