ios-simulator

XCode using GUID instead of iOS version number in Simulator Selection

浪尽此生 提交于 2019-11-28 06:44:44
Somewhere during the various updates of XCode in the last month, the iOS versions dropped from my simulator selection (image below.) Anyone know how to resolve this? How to fix it Xcode uses the device version to disambiguate devices with the same name. If two devices have the same name and version number, it will use the devices' UDIDs. You have 4 of each of a bunch of devices (eg iPhone 5s). I suspect that some of them are for the same iOS version. You should delete some of the duplicates. Check out xcrun simctl list and xcrun simctl delete or use the device manager within Xcode.app (click

The Simulator can't be launched because it is already in use

妖精的绣舞 提交于 2019-11-28 05:36:01
I'm working with xcode 5, and often get The Simulator can't be launched because it is already in use. when it's not running or open (i.e. after i do: quit simulator). I stopped the application & don't have any other project that is open, running or using the simulator (please avoid these kind of suggestions). this happens after i get and exception. how can I "free" the simulator process without having to reboot my computer (right now that is the only solution i found) I've tried: simulator -->services-->a reset content and settings closing xcode and re-opening xcode --> developer toos -->

UIDocumentInteractionController not working in iPad Simulator (XCode 3.2.3)

随声附和 提交于 2019-11-28 05:16:50
问题 The UIDocumentInteractionController appears to be non-functional in iPad Simulator ("iPhone Simulator" version 4.0, shipping with XCode 3.2.3, using iOS Version 3.2). I have a simple sample code presenting a PDF preview using UIDocumentInteractionController . It works on the device. On iPad presentPreview just returns NO, the UIDocumentInteractionController's delegate methods are not invoked. Any hint how to make it work? 回答1: Confirming the same behaviour over here: calling - (BOOL

Xcode 6 simulator ,unable to boot error

折月煮酒 提交于 2019-11-28 05:04:41
问题 I have installed latest Xcode 6 and try to run my project on iOS 8 simulator.It gives error as "unable to boot iOS simulator". I have tried all stack overflow answers but not able to fix this. 回答1: I was facing the same issue and finally it is resolved. Thanks to apple who helped me. For those who are still looking for solution, here is the one which helped me: Just unset DYLD_INSERT_LIBRARIES environment variable in the /etc/launchd.conf or ~/.launchd.conf file. Which you can edit by "sudo

iPhone Simulator: SpringBoard failed to launch application with error: 7

有些话、适合烂在心里 提交于 2019-11-28 04:48:44
Building an iPhone project results in: Failed to launch simulated application: SpringBoard failed to launch application with error: 7 And the app doesn't install on the simulator. What's this all about? What's SpringBoard and what is error 7? I had the exact same problem - I reset the iphone simulator and then quit the simulator (i.e. command q) then started it again. Worked. Boy, is the answer to this one hard to find, but I came up with a workaround. The simulator gives this error if it has any problems with accessing files in ~/Library/Application Support/iPhone Simulator/. This could be a

Not including non-retina display images in an iPhone project

╄→гoц情女王★ 提交于 2019-11-28 04:46:43
问题 I have an iPhone Xcode project that currently only contains images for retina display (twice the size as normal and with a @2x.png suffix). When I run the app on the iPhone Simulator (non retina) the images are still being displayed. Does this mean I don't need to worry about including two sets of images: retina and non-retina? This all seems a bit odd. I would assume that no images would appear on a non retina device if there are no non-@2x files included. Note: I have not tested my app on a

Reset iOS Simulator application data to run app for first time

耗尽温柔 提交于 2019-11-28 04:27:48
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.. 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 the home screen of the simulator, uninstall the app in the same way you would on a physical device, by

Run iPhone/iPad Simulator for Continuous Integration

走远了吗. 提交于 2019-11-28 04:11:07
I am attempting to run the iOS simulator from the command line. I have found the location where the iPhone Simulator can be run from. My question is whether or not it can receive parameters to specify which device should be launched and what app it should run. $ ./Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone Simulator.app/Contents/MacOS/iPhone\ Simulator Does anyone know if there are tricks to this. Knowing more about this would really help with our Continuous Integration process. We now use WaxSim to automate our iOS applications during CI Builds Erwin Coumans

iOS weird error: dyld: Symbol not found: __dealloc?

纵然是瞬间 提交于 2019-11-28 03:48:49
问题 I suddenly getting the below error, which is not allowing any application to run in simulator. The app just crashes. dyld: Symbol not found: __dealloc Referenced from: /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation Expected in: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk/usr/lib/libobjc.A.dylib in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation Please suggest !

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

给你一囗甜甜゛ 提交于 2019-11-28 03:26:04
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([PokerAppDelegate class])); } } The debug console shows nothing besides (lldb) (So I suppose its stopping, not crashing