ios-simulator

Testing in iOS 3.1.3 with the latest Xcode

我的未来我决定 提交于 2019-12-03 16:22:52
How do you test an app in iOS 3.1.3 with the latest Xcode build? Is it possible to do this in the Simulator? If not, is it possible to downgrade a device to iOS 3.1.3? Yes, you can downgrade a device. It is not officially supported but I've done it on two 3Gs with success for testing on 3.1.3. First find a tool called RecBoot by someone called the0rkus, runs on Intel macs only. This brings the phone out of recovery mode once you have loaded the 3.1.3 software. Find the .ipsw file for your device, as you know it is a different file for iPhone 3/3GS or iPod Touch. Load this software to the phone

MkMapView drop a pin on touch

余生颓废 提交于 2019-12-03 16:21:18
问题 I am struggling to unearth a standard way to drop a pin on a MkMapView based on a touch input. There probably isnt a standard way, but it is always worth asking. If I have to implement this myself is the best approach to add a Gesture Recogniser to pick up a tap on the map view. 回答1: Yes, you can use a UILongPressGestureRecognizer to do this. This previous answer of mine has details with sample code: How to add a push pin to a MKMapView(IOS) when touching? To animate the drop, in

Xcode Instruments: peak RAM of iPhone apps running in Simulator?

僤鯓⒐⒋嵵緔 提交于 2019-12-03 16:14:04
Is Activity Monitor (a.k.a. Memory Monitor) the only tool in Xcode Instruments that can measure the total app RAM usage of an iPhone app running in Simulator? Just that line showing momentary wired RAM? And how accurate is that versus iPhone hardware, especially given OSX paging i/o to VM? I'm seeing 7-8MB wired RAM figures for just the default Xcode iPhone project templates (other than OpenGL) compiled and running. At the same time Object Allocations shows well under 1MB for all objects. Nope, there's a much better way to do it. Go to the Run menu and select Run with Performance Tool then

Pass deep link into iOS Simulator

主宰稳场 提交于 2019-12-03 15:44:01
问题 I would like to find an easier way to call deep links in the iOS simulator. On Android you can use ADB to pipe links into the simulator by using the console. Is there a similar way or a workaround to do that with the latest iOS simulator? Best Regards and thank you very much! 回答1: You can type this into your Terminal : xcrun simctl openurl booted <INSERT_URL_HERE> You can even share documents using the builtin Share Extension from the Finder to the iOS Simulator. 来源: https://stackoverflow.com

The spoiled simulator xcode 9. As a broken TV

为君一笑 提交于 2019-12-03 15:41:25
Almost every launch of the application on any Xcode 9 simulator results in that in the screenshot: Maybe someone encountered this problem and solved it? You can try to switch render engine to OpenGl instead of metal Use this command in terminal. defaults write com.apple.CoreSimulator.IndigoFramebufferServices FramebufferRendererHint 2 (1 = Metal, 2 = force use of OpenGL, 3 = OpenGL) Or if your gpu is HD3000 you need to use defaults write com.apple.CoreSimulator.IndigoFramebufferServices FramebufferEmulationHint 1 来源: https://stackoverflow.com/questions/46831145/the-spoiled-simulator-xcode-9-as

Resign First Responder on ScrollView Touch

◇◆丶佛笑我妖孽 提交于 2019-12-03 15:26:22
How can I hide the keyboard on ScrollView touch event... Scenario is like that... ->View ->ScrollView ->Textfield I want to hide the keyboard on touch of scrollView. I tried to override the class for scrollview but still i can't do it. Doing like this will help: @interface MyClass <UIScrollViewDelegate> { } @implementation - (void)viewDidLoad { yourScrollView.delegate = self; } - (void)scrollViewWillBeginDragging:(UIScrollView *)scrollView { [myTextField resignFirstResponder]; } If you really want to handle the touch event, then you need to subclass the UIScrollView and override the method: -

Is it possible to run iOS simulator on a Mac without Xcode installed?

江枫思渺然 提交于 2019-12-03 15:14:41
问题 There are a few questions relating to this topic but nothing quite the same when it comes down to the details: We would like to use the iOS Simulator without installing the rest of XCode on a macbook. It is an in-house laptop, and will be used by employees, but not engineers. We already know how to run applications on the simulator without the source code and compiling required, but it would be nice to be able to install a 100MB app and application support that can run our in-house

How to test memory low condition on real iphone/ipad device (not simulator)?

六眼飞鱼酱① 提交于 2019-12-03 15:05:34
I know that there is a "Simulate Memory Warning" on the simulator. However, many people said that the app should be test on real device. How can I test the memory low condition on real device? Running as many apps as possible in background? Any better way? Thanks. You can use private API to send low memory message: [[UIApplication sharedApplication] _performMemoryWarning]; Though remember to remove from release otherwise your app might get rejected ;) Kudos goes to: http://forum.148apps.com/showpost.php?p=8603&postcount=3 The previous answer doesn't compile on my machine. The workaround is to

Optimization for newest iPad Pro Simulator

梦想的初衷 提交于 2019-12-03 14:55:29
I have installed the newest Xcode 7.1 beta and trying to run my project on the iPad Pro Simulator. Everything is right and all of the features work correct. But I have an issue with the screen size... On the main screen of application I run the next log: NSLog(@"%f", self.view.bounds.size.width); I have 1024 for landscape orientation. But when I create a new application in Xcode 7.1 and run the same code on the main screen I get another value: 1366. Today I plan to find diffs between project files created in old Xcode (6.4) and newest beta 7.1 using Araxis Merge. Do you now how to fix this

XCode 4.2 is missing the iOS5 SDK for the Simulator

对着背影说爱祢 提交于 2019-12-03 14:53:58
I created an empty Single View application using Xcode 4.2 on OSX Lion 10.7.2 targeting iPhone 5. The project built happily however when launching the simulator I receive the following error message: iOS Simulator could not find the SDK. The SDK may need to be reinstalled. I then tried targeting the iPad with the same results. I removed Xcode using the terminal and downloaded a fresh copy from the AppStore. The clean installation generates the exact same error. It seems that the SDK is not being deployed during installation. Any advice or tips on how I can correctly install the iOS 5 SDK for