When I was debugging with Xcode, iOS simulator is running slowly.
I encounter this issue every month, but I cannot find a step for reproduction.
This issue occurred when I debug my project though, I cannot provide the project, because it is our company’s property.
I recorded this on following URL.
http://www.youtube.com/watch?v=gAaclHi_vfE&feature=youtu.be
It looks like 'slow animations' is enabled. You can disable this in the simulator, top bar, Debug > Toggle Slow Animations
Related
As the heading states, I do not get the contents on my live preview appearing on the simulator. The issue does not seem to stem from a syntax error, as the simulator runs perfectly fine. Current solutions I have found have been completed using the storyboard, not the swiftUI.
I have only been able to "resolve" the error through a painstaking restart on my computer every time I update the code. Any solutions appreciated.
Update 1: The white screen persists across projects as well. It may be a software problem, so I am considering reinstalling XCode.
Update 2: "Hello World" works after a bit of waiting. It seems to simply be a really slow launch time..
I realised that all I had to do was run the simulator and then stop the simulator. Then, the updated form would appear within the app.
I have a weird bug with my game on iOS platform.
When I build it from xCode it works great no matter how many times I run it. When I leave that build on iPhone 6s for one day it can't be opened anymore. When I click on icon it only shows black screen and then returns to home screen. If I double click menu button, the game is in active tasks and I can see that the game was loaded. But it cant be opened. Its like its always minimised or that graphics are failing.
I am using Unity 5.3.4f1 and graphic api is set to OpenGLES 2.0.
Has anyone else run to a problem like this?
Any suggestions or fix?
Edit:
So after testing it turns out it only happens with build from xCode and not with version that is on app store. So I guess it has something to do with provisioning profiles or similar.
When I run the iPhone simulator, sometimes it doesn't move past the opening screen, and sometimes it does.
What I am calling the opening screen is the screen which has the app tittle on it.
I have tried closing and re-opening it. But it doesn't seem to solve the problem, as it still comes back.
I am using the new Xcode beta but this problem also happens to me often in Xcode 6.
The simulator in my opinion is a little buggy to me. This seems to happen to me a lot the first time I run the simulator. After that it seems a little more stable.
This happens to me too sometimes. Simply stop and directly press the "Run" button again.
You can also try to change the Device or uninstall your app on the selected device.
Also try to close the Simulator and open it again and try to run your app after that
My answer is you cannot make sure about that, since it is just a simulator.
This happen to me to when i use xcode6 sometimes, but when i use xcode 5.1.1 it is working perfectly.
I think xcode6 do not stop the current running app before running the other instead it just override the current "same" running app. here is my theory as i observe it.
Assuming simulator is running.
in XCode 5.1.1:
Stops the currently running app > Compile > Run
but in XCode 6:
Compile > Override the same running app
But you dont want to worry about that so much, as long as it doesn't appear in actual device it is all good.
I have been having this weird problem with Xcode 4.3.2, of course after the recent update.
After successfully building and running on the simulator several times, xcode seems to not be able to connect to the simulator and can't even stop the project; it's like the simulator does not exist. I have tried:
Stopping the project – doesn't work.
Quitting the simulator – doesn't work, xcode still shows it's running on the simulator even when I quit the simulator.
Cleaning the project – doesn't work.
I have to force quit xcode to get it communicate with the simulator. Nothing else works. It gets quite frustrating to do it every half an hour. This only started with 4.3.2.
I always stop before building and running, so it is not an issue of simulator/xcode getting thrashed by me.
Any suggestions?
I have found by chance, it is not a solution by any means -
When xcode hangs, saying it is running the app, but nothing is on simulator, opening the simulator from the dock by clicking on the dock icon (not using command+tab) seems to work.
It is very weird,but it works; atelast till xcode fixes it.
I had the same damn issue on XCode 4.5.1, but I resolved it just now.
When the program is running, it gets compiled but doesn't show anything on the simulator. just click on iOS Simulator icon in dock in order to bring it to front. Click iOS Simulator on top left -> Reset content and settings -> then force quit the iOS Simulator and run the program again. !!
Besides a restart, there is one other way I've managed to get around this:
Let's say your app hangs, go to the targets selector in the top of the Xcode window and change your sim target to a new SDK (or if you don't have another SDK, change it to a universal app and run on the opposite device simulator).
Then, when your app loads on the new device/OS completely, quit the sim, change your targets back, et voilà!
Uninstall application from Simulator and again run. Then it will works fine :)
This has frustrated me for -years- now but stumbled across what appears to get things going again for me:
Hide the simulator (iOS Simulator -> Hide iOS Simulator) or Cmd-H, then reopen the simulator.
The problem seems to happen when something CPU intensive is happening in the background (like a Time Machine backup) on my old 2 core MacBook.
Xcode 4.6.3 update (June 13, 2013) resolves the following issue:
Hang when debugging in iOS Simulator on OS X 10.8.4. 13722320
https://developer.apple.com/library/mac/#releasenotes/DeveloperTools/RN-Xcode/
You can try to update your Xcode to see if that works for you..
I have been putting accessibility labels into our source code so that we can automate using apples automation framework. When we first started this project, we were building using sdk 4.3 and I had troubles getting the simulator to show the labels in the application. Through advice on stack overflow I was able to fix it by altering the accessibility.plist in the simulator files.
Now that we have switched over to iOS sdk 5.0. I am having the opposite problem. I can no longer get the labels to show up on the device when I run our automation tests. They show up fine in the simulator. And I'm also able to confirm that they were properly compiled into the application by turning on VoiceOver on the device and doing a triple-double tab of and application window to show the elements.
I've looked over all the build settings and made sure everything was set to a debug build, and have tried going back to a build that I know worked when building for a 4.3 device and having the same exact settings(except for the sdk version of course) but the labels are still not being picked up.
So where do I go from here? Is there a library file that needs to be included into the application when building for iOS 5?
On the device, in "Settings > Accessibility > Triple-click Home", choose "Ask". This seems to turn on "enough" of the accessibility machinery to make things work, but not so much of it that it'll interfere with the normal functions of the device (ex. turning on VoiceOver works too, but changes the flow of the app in ways that break tests.)