ios-simulator

How to Install Older iOS Simulators in XCode 4.2.1 (SDK5.0)

廉价感情. 提交于 2019-11-27 03:56:13
I have just bought a new iMac. I then downloaded the latest SDK 5.0 and installed XCode 4.2.1. Everything is working fine. Though I realized that there are only iPhone and iPad Simulators 5.0 available for debugging. So I went on clicking the More Simulators... I click Install for all items and a while passed, and when I came back, it indicated as "Installed". But when I go back to my XCode, there are still just Simulators 5.0 in the list. So, how do I go about installing the older simulators in XCode 4.2.1? Did I miss any steps? Or do I need to install older SDKs? Please help. Thanks. X-Code

Push Notifications in Mavericks iOS Simulator

ぃ、小莉子 提交于 2019-11-27 03:50:43
I can't find anything about this, and I have never done anything with push notifications (but I know vaguely how they work). In Mavericks, now that OS X can receive push notifications from various things like websites, can iPhone Simulator receive push notifications? I've found plenty of answers from mid-2013 and earlier saying "no", but all of them are outdated because Mavericks was just recently released with its new push features. I'm about to start working on an app for a school project that should use push notifications unless I want to be cheap and just poll the server. I understand that

simulator name is shown with id instead of os name in Xcode 6.2

对着背影说爱祢 提交于 2019-11-27 03:44:38
问题 I've installed additional ios simulators(7.1) just after installing Xcode 6.2 and now the simulator names look like this: How do I change the names? 回答1: Xcode uses the device version to disambiguate devices with the same name. If two devices have the same name and version number, it will show the devices' UDIDs. You have 4 of each of all your device types, so 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

FBSOpenApplicationErrorDomain Code=3

淺唱寂寞╮ 提交于 2019-11-27 03:01:29
问题 I just added a Watch app to my project and try : override func awakeWithContext(context: AnyObject?) { super.awakeWithContext(context) let res = WKInterfaceController.openParentApplication(["key" : "value"]) { (replyInfo, error) -> Void in print("replyInfo : \(replyInfo) + error \(error)") } print(res) // true here } In my AppDelegate I wrote : func application(application: UIApplication, handleWatchKitExtensionRequest userInfo: [NSObject : AnyObject]?, reply: ([NSObject : AnyObject]?) ->

Timeout when running xcodebuild tests under Xcode 6 via SSH

柔情痞子 提交于 2019-11-27 03:01:27
I seem to be having issues with integrating Xcode6 with jenkins, I currently have this setup and working with Xcode 5. With xcode 6 running remotely via SSH the simulator time-out, when I run locally it succeeds. Command xcodebuild -workspace PROJECTNAME.xcworkspace -scheme BGO_Tests -destination 'platform=iOS Simulator,name=iPhone 5s' -derivedDataPath ./Build clean test 2014-08-19 10:46:36.591 xcodebuild[33966:381f] iPhoneSimulator: Timed out waiting 120 seconds for >simulator to boot, current state is 1. Testing failed: Test target BGO_Tests encountered an error (Timed out waiting 120

App running on iPad while its iPhone-Only

三世轮回 提交于 2019-11-27 02:56:39
问题 I made an iPhone App with Xcode. The devices setting is set to "iPhone". But in iTunes Connect it is rejected because it doesn't run on the iPad. That is weird because it is an iPhone app, but when I checked it in Xcode, I can run it with the iPad simulator,however I think that normally this is not possible with an iPhone app. I have added pictures to make my question clearer: So what is gone wrong and how can I fix it? EDIT: Picture from resolution center: 回答1: Thanks all, I Found the

Unique identifier for an iPhone app

耗尽温柔 提交于 2019-11-27 02:56:06
For an iPhone app that submits images to a server I need somehow to tie all the images from a particular phone together. With every submit I'd like to send some unique phone id. Looked at [[UIDevice mainDevice] uniqueIdentifier] and [[NSUserDefaults standardDefaults] stringForKey:@"SBFormattedPhoneNumber"] but getting errors in the simulator. Is there an Apple sanctioned way of doing this? What errors are you getting? [[UIDevice currentDevice] uniqueIdentifier] ( edited to fix API, thanks Martin! ) is the officially recommended way of doing this. Jason Harris You can also use CFUUID to

ScrollView not scrolling when dragging on buttons

早过忘川 提交于 2019-11-27 02:55:35
I have a scroll view that used to scroll when it didn't have buttons all over it. Now it does, and when dragging the mouse (on simulator) nothing happens (i think because the buttons are being pushed). How can I make this right? Roman Kishchenko This is happening because UIButton subviews of the UIScrollView (I assume buttons are added as subviews in your case) are tracking the touches and not the scroll view. UIScrollView method touchesShouldCancelInContentView is the key here. According to its description: "The default returned value is YES if view is not a UIControl object; otherwise, it

Simulator slow-motion animations are now on?

一曲冷凌霜 提交于 2019-11-27 02:54:36
A while ago I was experimenting, trying to see if i could get navigation items to animate and scroll between each other. I don't know if this is related but suddenly without touching the simulator options I'm getting this message Simulator slow-motion animations are now on and moving between views is very slow, like 3 seconds. This occurs with all animation effects. Any idea what I need to do to stop this ? The shortcut as of Xcode 6 is Command ⌘ + T . This toggles it between on and off, so to turn it off just punch that combination. Just figured this out: You can toggle slow-motion animations

Adding a self-signed certificate to iphone Simulator?

左心房为你撑大大i 提交于 2019-11-27 02:53:39
I have a self-signed certificate at the endpoint of my API. I'm trying to test some things using the simulator but am getting "untrusted server certificate". I have tried to use safari on the simulator to download the .crt file, but that doesn't seem to work. Where does iPhone Simulator get its keychain from? How can I add a trusted certificate so my application will work? UPDATE I got it to work by creating a CA and then adding a CA certificate using the iPhone provisioning tool. Then I was able to have a certificate signed by that CA certificate on the API server and the NSConnection just