ios-simulator

Why doesn’t stopping an application in iOS simulator trigger applicationWillTerminate:?

旧时模样 提交于 2019-12-19 05:20:48
问题 I have some code in my AppDelegate ’s applicationWillTerminate: method but I don’t know how to test if it works. Using Xcode to stop the simulator does not trigger it. How do I test the code in applicationWillTerminate:? Please note that this is specific to the simulator and not the device. 回答1: The simulator doesn't send applicationWillTerminate: because the springboard isn't sending you the kill code (SIGABRT), LLDB is. To trigger those delegate methods, you have to use the Home Button

IPhone core data simulator

纵然是瞬间 提交于 2019-12-18 21:32:43
问题 I've created an app that uses core data. Is there a way to view the sqlite db on the simulator? A tool perhaps that allows to query the sqlite db on the simulator? Like a data browser? Is there a way to browse the iphone simulator to the sqlite db location? 回答1: Xcode 5 I just downloaded a trial of Base and was able to point it at the .sql database from the simulator via: /Macintosh HD/Users/"username"/Library/Application Support/iPhone Simulator/"current iOS development version"/Applications

iOS Simulator devices listed twice in Xcode run destinations list

半腔热情 提交于 2019-12-18 21:12:24
问题 Xcode is showing duplicate entries in the run destinations list for each iOS Simulator device. Screenshot of the run destinations: Screenshot from Devices menu: I tried to completely closing and opening Xcode, and it did not solve the problem. Rebooting also did not solve the problem. I added iOS 7.1 SDK to the Xcode.app's bundle. 回答1: I suspect the issue will go away if you restart the service: Quit Xcode, Instruments, and the iOS Simulator and then run this in Terminal.app: killall -9 com

Testing 3D touch with iOS Simulator

天大地大妈咪最大 提交于 2019-12-18 20:05:23
问题 Questions: I was wondering if anyone has tried 3D touch feature on a simulator or rather anyone know whether it actually works there or not. I know it's a hardware based feature and support is there only for latest iPhone 6S & iPhone 6S Plus models. On an iPhone 6S simulator, I have tried with Hardware --> Force Touch Pressure --> Deep Press but no gain. 回答1: you must develop on a device that supports 3D Touch. Simulator does not support 3D Touch,the documentation from apple, if you need the

Simulator running in scaling mode for iPhone 6 Plus?

前提是你 提交于 2019-12-18 19:06:27
问题 My app starts and runs on the new iPhone 6 Plus (or iPhone 6) in the simulator, but elements that I know are supposed to be small on the big screen (i.e. hard coded CGRect s) are large, as if the whole app had just been scaled up for the larger screen. How can I get out of scaling mode in the simulator? 回答1: It looks like setting a launch screen file in the "App Icons and Launch Images" section of your project settings, or adding iOS 8 images to your launch image catalog, will enable "native"

The operation couldn’t be completed. (OSStatus error -600.) Cant run app in simulator

懵懂的女人 提交于 2019-12-18 18:59:46
问题 Using XCode 6.3.1 , SDK 8.3 Suddenly my app stopped running in (any) simulator and Xcode throws error The operation couldn’t be completed. (OSStatus error -600.) Tried cleaning, reset content and setting and even restarting my Mac. Is there anything I can do to run my app in simulator. 回答1: Just quit your iOS Simulator then reopen the simulator then build your source Now it will work. 回答2: I encountered this issue on a 9.1 simulator. I was able to successfully run my app after doing a CLEAN,

Is it possible to install iOS6 SDK on Xcode 6-beta?

こ雲淡風輕ζ 提交于 2019-12-18 18:53:28
问题 I noticed that there are no preview or simulator for iOS6 in Xcode 6-beta, so I was wondering is there any way that I could add it manually ? 回答1: No. Apple only support iOS7 and iOS8, and they're strict with that. As a result, only iOS7/8 simulators are available in Xcode 6. If you want to run on an older simulator, you need to develop on an older version of XCode. 回答2: Not possible. But: you can still test on a iOS 6 device from Xcode 6. I keep an old iPhone 4 for this (look at eBay). EDIT:

iOS Simulator Always resets Location to “None”

大兔子大兔子 提交于 2019-12-18 18:41:37
问题 I'm debugging a location-aware app, and getting frustrated with the iOS simulator. For some reason every time I run my app from Xcode the Location setting (under the Debug menu) resets to "None" (from "Custom Location…"). Anyone know how to prevent this? 回答1: In your project select edit scheme and go to the option tab. Edit default location to your liken. Check apple doc for other customizable option. If you want to create a permanent location create a GPX file with editor or online generator

Multiple Targets in Xcode: “Failed to launch simulated application: Unknown error.”

折月煮酒 提交于 2019-12-18 18:31:21
问题 I'm trying to build for multiple targets in Xcode, to simplify the process of creating a "lite" and "pro" version of my application. In theory, this is great and I can pass defines to GCC_PREPROCESSOR_DEFINITIONS for use in my code. However, I'm having problems actually getting it to work due to an error trying to launch the second target in the simulator: Failed to launch simulated application: Unknown error. Here is the simple process I'm using to create the additional target: Add #ifdef

Linker error (only simulator) with own library after update to iPhone SDK 4.0

时光怂恿深爱的人放手 提交于 2019-12-18 16:55:10
问题 I recently updated to iPhone SDK 4.0 and are no longer able to build my project for the iPhone simulator. The problem is that classes of one of my own libraries can no longer be found by ld: "_OBJC_CLASS_$_Book", referenced from: objc-class-ref-to-Book in Category.o (maybe you meant: ...) ld: symbol(s) not found collect2: ld returned 1 exit status I already read some other posts about similar problems, like e.g. here. "Unfortunately", my problem has nothing to do with a SDK framework, but