ios-simulator

IOS 8 Simulator unable to boot

为君一笑 提交于 2019-11-27 05:29:45
When I try to run my app with Xcode 6 Beta 4 on the Simulator iOS 8.0 I always get this error: Unable to boot the iOS Simulator Actually I found some similar questions on this site and I tried all the answers and I still couldn't solve it. I had the same error with the Beta 2 version of Xcode 6 so I decided to wait. But now this is not normal anymore. Did anyone find a reason why this is happening and found the solution? Pooja M. Bohora I am very happy that finally my issue resolved. Thanks to apple who helped me. For those who are still looking for solution, here is the one which helped me:

Reset iOS Simulator application data to run app for first time

半世苍凉 提交于 2019-11-27 05:23:33
问题 I just finished writing some code that checks if it is the first time the app is running then display a message, if it is not the first time then display another message.. How do you reset the simulator on Xcode so that I can test the app when it runs the first time? I tried cleaning the build folder but it didn't work.. 回答1: In the iOS Simulator, press iOS Simulator in the menu at the top of the screen, and press ' Reset Content and Settings... '. This will clear the entire simulator. Or, on

iOS app crashing every other launch, can't find error

一个人想着一个人 提交于 2019-11-27 05:11:09
问题 First time I launch the app, everything seems to run fine. I'll hit the stop button, do some work and when I go to launch it again, it seems to crash before it can even load anything. Press stop, hit Run again, and it works fine. Until I repeat the process. This is where xcode is highlighting the error with "Thread 1:signal SIGABRT". Obviously nothing useful here. int main(int argc, char *argv[]) { @autoreleasepool { return UIApplicationMain(argc, argv, nil, NSStringFromClass(

How to use Charles Proxy on the Xcode 6 (iOS 8) Simulator?

╄→尐↘猪︶ㄣ 提交于 2019-11-27 04:59:06
问题 It seems that the directory for the iOS Simulator has changed. It used to be in ~/Library/Application\ Support/iPhone\ Simulator/ and now it's in ~/Library/Developer/CoreSimulator/Devices/ . 回答1: Update: Charles 3.9.3+ has a built-in function to configure your iOS Simulators (i.e. installing the Charles SSL Certificate). This can be found in the Help menu within the Charles application. ( Help > SSL Proxying > Install Charles Root Certificate in iOS Simulators ) The following applies to

Error: Error Domain=NSURLErrorDomain Code=-1001 “The request timed out.”

匆匆过客 提交于 2019-11-27 04:48:08
I am working on an application in Xcode 6.1, iOS 8.1; the application was working completely fine till 2 days before, but today as I executed it I got an error in the web service & the error is printed below. Error: Error Domain=NSURLErrorDomain Code=-1001 "The request timed out." UserInfo=0x7c6899b0 {NSErrorFailingURLStringKey=, NSErrorFailingURLKey=, NSLocalizedDescription=The request timed out., NSUnderlyingError=0x7c688f60 "The request timed out."} I had used AFNetworking 2.x and following code snippet to make network call: AFHTTPRequestOperationManager *manager =

llvm-gcc-4.2: error

房东的猫 提交于 2019-11-27 04:34:46
问题 The Project build & runs fine on a real device but a build for the iphone simulator finishes in this error 'llvm-gcc-4.2: error'. Any ideas? llvm-gcc-4.2: error trying to exec '/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/../llvm-gcc-4.2/bin/arm-apple-darwin10-llvm-gcc-4.2': execvp: No such file or directory Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/llvm-gcc-4.2 failed with exit code 255 thx, Fabian 回答1: The first thing to do when things don't

iOS 5.1 with Xcode 4.3.1: [UIColor colorWithPatternImage:] strange behavior only on device

老子叫甜甜 提交于 2019-11-27 04:15:37
问题 When I compile my app in Xcode 4.3.1 with iOS 5.1, I notice there is a strange behavior with background textures only on actual device. There is a 1px gap in between texture tiles shown in screenshot below. My texture are 150x150 and 300x300 at 2x. So far I've tested the same build on: Simulator iPhone/iPad both 5.0/5.1: No bug iPhone/iPad running 5.0.1: No bug iPhone/iPad running 5.1: Buggy 回答1: I've been getting the same problem since 5.1 aswell. I solved it by doing the following to the

Simulate memory warnings from the code, possible? [duplicate]

ぐ巨炮叔叔 提交于 2019-11-27 04:13:02
问题 This question already has answers here : iOS Development: How can I induce low memory warnings on device? (10 answers) Closed 5 years ago . I know i can simulate a memory warning on the simulator by selecting 'Simulate Memory Warning' from the drop down menu of the iPhone Simulator. I can even make a hot key for that. But this is not what I'd like to achieve. I'd like to do that from the code by simply, lets say doing it every 5 seconds. Is that possible? 回答1: It is pretty easy actually,

Unable to run app in Simulator : An error was encountered while running (Domain = LaunchServicesError, Code = 0)

时光毁灭记忆、已成空白 提交于 2019-11-27 04:12:35
I am unable to run my app in simulator after having trouble with the provisioning profile. I'm doing swift coding in Xcode 6 - beta 4. This was fine before the trouble in the certificate's profile. I have tried cleaning the build. Checked the command line to xCode6-beta4 for running. Checked the build deployment, set to 7.0 so swift won't complain for compatibility Fixed the error in provisioning. This happens if your extension's bundle ID isn't prefixed with your app's bundle ID. For example if you app is com.mycompany.appname , your extension should be something like com.mycompany.appname

Launch iOS simulator from Xcode and getting a black screen, followed by Xcode hanging and unable to stop tasks

江枫思渺然 提交于 2019-11-27 04:08:56
I'm having trouble running my basic iPhone application (while going through the Stanford iTunes CS193p lectures) in the iOS simulator. I've been searching for a while (both Google and SO), but unable to find a solution so far. There are many similar bugs, but the solutions don't seem to fix this. In Xcode I click "run". It compiles and builds successfully, launches iOS simulator but it never gets to loading the app. Only the status bar at the top. With a black screen. I've only written very basic code (following along with the lectures) and can't get past this problem. To confuse matters more,