ios-simulator

iOS 5 Black screen after segue

◇◆丶佛笑我妖孽 提交于 2019-11-27 15:50:42
I have an iOS 5 application with a storyboard and two scenes. Scene 1 is a selection list while Scene 2 shows details for each selection In Scene 1 I need to pass a variable and I do that with: //Handles the selection -(void)tableView:(UITableView *)tableView accessoryButtonTappedForRowWithIndexPath:(NSIndexPath *)indexPath { Guests *myGuests =[guestList objectAtIndex:[indexPath row]]; selectedGuest = [[NSString alloc] initWithFormat:@"You have selected %@", myGuests.guestID]; [self performSegueWithIdentifier:@"TGG" sender:self]; } -(void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id

UITextField auto correction crash in iOS 4.3 on simulator

爱⌒轻易说出口 提交于 2019-11-27 15:39:59
问题 The UITextField's auto correction crashes my app on the simulator with iOS 4.3 sdk build target. Works fine on the device and in the simulator with iOS 4.2 sdk. Anyone else experiencing this issue? I'm figuring its a bug with the 4.3 sdk? As soon as I type the second character. Stack Trace #0 0x01c01000 in objc_assign_ivar () #1 0x03b7ec34 in -[AppleSpell init] () #2 0x007e7538 in -[UITextChecker _checker] () #3 0x007e8de9 in -[UITextChecker checkSpellingOfString:startingAt:language:wrap

iPhone simulator - how to detect when app is running on simulator (so can setup test data)?

北城余情 提交于 2019-11-27 15:39:33
问题 Any sample code that would show me how to, in my iPhone application code: How to detect if the application has just been DEPLOYED to be run to a simulator (and not a device) [if "Deployed" isn't available, then just detecting when the app is being run on the simulator as opposed to a device) Where about in my iPhone app code would I put the lines that setup my test data in the simulator - this is noting I wanted the test data to be effectively wiped clean/re-instated each time I recompile and

Run app in iOS 6 Simulator in Xcode 6

老子叫甜甜 提交于 2019-11-27 15:27:15
问题 My application supports iOS 6.1. How do I find and install that simulator in Xcode 6? 回答1: In Xcode 6 beta 3, iOS simulator for iOS version 6.x seems to be deprecated. Apple deprecates old technologies very aggressively. Formaly saying, you should deprecate support for older version of OSes such as 6.x. Anyway in practice, we have situation that we can't do it. If the Xcode doesn't provide older version of simulator, then the only regular way to do this is installing older version of Xcode.

Swift does not support the SDK 'iPhoneSimulator9.3.sdk'?

China☆狼群 提交于 2019-11-27 15:14:06
问题 I have just installed the xcode 8.0 and upgrade my project to swift 3. I was using swift 2.2 and xcode 7.3.1. But getting following error: Swift does not support the SDK 'iPhoneSimulator9.3.sdk' Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc failed with exit code 1 回答1: This happened to me when I had simultaneously installed both Xcode 7 and 7.3 and after automatic update I was left with 8.0 only. One indication that something got messed

Core Data file's Location iOS 10

核能气质少年 提交于 2019-11-27 14:46:56
问题 I am trying to us SQLite Browsers to see my Core Data objects. I am not able to find where does the core data save its sql file. I looked into the app documents folder but there is nothing there. Do you know where does the core data in IOS 10(simulator) save its SQLite files on? 回答1: I tested it on XCode 8 Swift 3 OS macOS Sierra IOS 10 In Your Appdelegate.swif t func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?)

Where Does Simulator 8.0 Store Files

孤者浪人 提交于 2019-11-27 14:38:21
问题 I cannot find the directory for the new simulator data in Xcode-6 Beta for IOS 8 It is not in ~/Library/Application Support/IPhone Simulator/ Where does the iPhone Simulator store its data? 回答1: Something like this: /Users/{YOUR NAME}/Library/Developer/CoreSimulator/Devices/{DEVICE ID}/data/Containers/Data/Application/{APPLICATION ID}/ The Device ID can be a bit hard to find (basically, there's one folder with a random-looking name for each simulator you have). To get to the correct folder, I

How do I remove redundant iOS simulator entries from Xcode?

亡梦爱人 提交于 2019-11-27 14:37:42
问题 How do I remove all these extra simulators from my Xcode menu? 回答1: XCode > Window > Devices : Then use the delete key or click the gear icon to remove simulators. 回答2: If you want to do this quickly I'd recommend fastlane tools you can reset simulators with one line fastlane snapshot reset_simulators install fastlane tools sudo gem install fastlane Make sure, you have the latest version of the Xcode command line tools installed: xcode-select --install (https://docs.fastlane.tools/actions

What is Generic iOS Device in Xcode 7.1 run destinations list?

孤人 提交于 2019-11-27 14:17:23
问题 I found a strange option in my simulators list in Xcode I've never seen before. Generic iOS Device in Build Only Device Interesting, but when I try to build for this device - I get error: A build only device cannot be used to run this target. Please select an available device or choose a simulated device as the destination. Can anyone explain - for what purposes do I need this option? I have Xcode 7.1 and iOS 9.1 回答1: The purpose of that target is to build for iOS devices, even if your phone

Invalid Device State - Xcode/iOS Simulator error

假如想象 提交于 2019-11-27 14:15:41
Problem: I cannot simulate an Apple watch interface. Whenever I try and test my Apple watch app on the iPhone 6 simulator, Xcode successfully finishes and builds the app, attempts at opening simulator and fails with an error message which reads 'Invalid Device State'. I believe simulator has a watch simulator that opens along with the compatible iPhone simulator models that can communicate with Apple watch (example: iPhone 6) Although I have yet to see it work. I have built a universal interface for iPad and iPhone and another for the watch, so it's not a matter of the app being for the wrong