ios-simulator

How are XIBs loaded for localized apps?

此生再无相见时 提交于 2019-11-30 14:35:37
I found after a couple of days of successfully running and debugging localized apps on the Simulator it (or the XCode deployment process) got into a state where, if the Simulator was set to one of my supported local languages, it would crash on startup with the following stack: 3 CoreFoundation 0x01780e6a +[NSException raise:format:] + 58 4 UIKit 0x008050fa -[UINib instantiateWithOwner:options:] + 2024 5 UIKit 0x00806ab7 -[NSBundle(UINSBundleAdditions) loadNibNamed:owner:options:] + 168 6 UIKit 0x0060c17a -[UIApplication _loadMainNibFile] + 172 7 UIKit 0x0060ccf4 -[UIApplication _runWithURL

iOS simulator only uses the first app folder for localStorage files but creates a new app folder for everything else

邮差的信 提交于 2019-11-30 14:22:38
问题 I'm trying to delete the localStorage files of my app, and to do that I need to know where the app stores its cached data, but I don't consistently get the correct path in the iOS simulator, this only works consistently on the phone. I think this has something to do with the fact that Xcode renames the app directory when you rebuild. If I delete the entire /Users/john_doe/Library/Developer/CoreSimulator/Devices/ and start the app NSSearchPathForDirectoriesInDomains finds the correct folder.

Where does the iPhone simulator save the sqllite database

时光总嘲笑我的痴心妄想 提交于 2019-11-30 14:14:08
问题 I have seen this question asked a few times on SO - but the answer always seems to be roughly the same: /Users/myName/Library/Application Support/iPhone Simulator/4.2/ ... See related questions: iOS 4.2 simulator files? Where does the iPhone Simulator store its data? where database store in iphone simulator (for Mac OS)? Yet - when I don't seem to have this path on my machine. I don't have 'Library' folder in my User folder I can find a library folder in the root of the drive, with an

How does building for iOS device and simulator actually differ?

不打扰是莪最后的温柔 提交于 2019-11-30 14:11:21
问题 Since the iOS simulator is a simulator, why do I need to build specifically for it? Isn't the point of a simulator that it runs the real code in some sort of VM/sandbox? So what are the actual differences in how building for device/simulator works, and how the resultant built apps differ? 回答1: An application running natively on an iOS device is an ARM program. However, an application running in the iOS Simulator is an ordinary 32-bit (i386 architecture) Mac OS X program. In other words, the

Use of Blocks crashes app in iPhone Simulator 4.3/XCode 4.2 and 4.0.2

本秂侑毒 提交于 2019-11-30 14:01:47
Anybody else having trouble with the 4.3 iPhone Simulator in XCode 4.2(lion) or 4.0.2? I have code that has long been working, tested, and in production that uses blocks to specify completion actions. For example, I use UIView animate to fade out some text on top of the label as follows: [UIView animateWithDuration: 0.0 delay: 0.0 options: (UIViewAnimationOptionCurveEaseInOut | UIViewAnimationOptionTransitionNone) animations: ^{ videoTextLabel1.alpha = 0.0; videoTextLabel2.alpha = 0.0; videoTextLabel3.alpha = 0.0; } completion: ^(BOOL completed) { [self fadeInNextMeditationLine: 0]; }]; I

iOS 6 (iPhone/iPad) Image Upload “Request Body Stream Exhausted” with NTLM/Windows Authentication

天涯浪子 提交于 2019-11-30 13:59:05
I am working on trying to get iOS 6 to use XMLHttpRequest POSTs to upload images. This works on desktop and Android web browsers, but with iOS 6 I am getting an error on the page being posted to: "Request Body Stream Exhausted". (Using iOS Simulator with the Safari Web Inspector). Here is the basic code of the page: function fileSelected() { var file = document.getElementById('fileToUpload').files[0]; if (file) { var fileSize = 0; if (file.size > 1024 * 1024) fileSize = (Math.round(file.size * 100 / (1024 * 1024)) / 100).toString() + 'MB'; else fileSize = (Math.round(file.size * 100 / 1024) /

Xcode 5 not showing Scheme option to run Simulator on iOS 6

隐身守侯 提交于 2019-11-30 13:54:49
问题 Xcode 5 is behaving just fine, and I'm able to build and run apps on my iOS 7 device and in the iOS 7 simulator. However, I do want to support iOS 6.1, but I don't see any way to build and run the apps for an iOS 6 simulator. Things wot I've done: Set Deployment Target to 6.1 for both Project and Target Downloaded iOS 6 Simulator Copied the iOS 6 SDK into Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/ Reset Content and Settings for the simulator Originally, I was

Two iPhone Simulators at the same time? [duplicate]

左心房为你撑大大i 提交于 2019-11-30 13:50:57
问题 This question already has answers here : Is there a way to simulate multiple iphones using xcode/iphone sim? (10 answers) Closed 6 years ago . Is it possible to run the iphone app in two iphone simulator at the same time? If Yes Let me know?Please. 回答1: Yes there is. Download the script here and then run it before you open xcode in each users account. It will open the simulator in such a way that for every user you can run a simulator. Also, running multiple instances of xcode and debugging

startMonitoringSignificantLocationChanges not working in swift

本秂侑毒 提交于 2019-11-30 13:46:13
I'd added CLLocationManager in my app using Swift in the AppDelegate file. In the Appdelegate.swift file, import CoreLocation @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate, CLLocationManagerDelegate { var locationManager: CLLocationManager! In the didbecomeActive method: func applicationDidBecomeActive(application: UIApplication) { if((locationManager) != nil) { locationManager.stopMonitoringSignificantLocationChanges() locationManager.delegate = nil locationManager = nil } locationManager = CLLocationManager() locationManager.delegate = self locationManager

Xamarin iOS Simulator running old code

泪湿孤枕 提交于 2019-11-30 13:45:33
When I debug my Xamarin.iOS project from Visual Studio, it builds, installs on the simulator, and launches the app without issue. But on launching, I'm seeing a bunch of Debug tracing from a method that doesn't even exist in my C# code anymore. I can also set breakpoints on the class from which I removed the method at the same line numbers where this method used to be, and I will see the removed method in the call stack when the debugger stops. I've closed and reopened Visual Studio, reset the connection to the Mac build server, cleaned and rebuilt my solution, and manually deleted the