ios-simulator

How do developers produce iOS Simulator animated .gifs? [closed]

六月ゝ 毕业季﹏ 提交于 2019-12-02 14:18:05
I often see this a lot on GitHub. How can I reproduce this animated .gif effect? https://github.com/autresphere/ASMediaFocusManager You can record your screen with QuickTime and then convert that MOV file into a GIF. Open QuickTime and click on the "File" menu then "New Screen Recording". Drag your pointer to select the region of the screen you want to record, and then click the Start Recording button within the region. When you're finished, stop recording. To stop recording, click the stop button in the menu bar. Now, go back to "File" menu and click "Export". Save your screen recording as a

Screenshot Apps for iPhone simulator [closed]

不羁岁月 提交于 2019-12-02 13:54:50
I was wondering if there are any good recommendations on apps that takes screenshots of the iPhone simulator. I've tried apps like iPhone screenshot cropper but I'm looking for something that will allow me to make larger images. For example large enough to put on a poster. Any suggestions? phi Update : I think that my answer is not optimal anymore, thanks to this other answer from Gurpartap Singh (where cmd + S directly saves the image to your desktop). I'm not sure from which version of the iOS Simulator is this possible, but it's better and faster! You can also try cmd + ctrl + C while in

iPhone Simulator - Simulate a slow connection?

落爺英雄遲暮 提交于 2019-12-02 13:52:57
Is there a way to slow down the internet connection to the iPhone Simulator, so as to mimic how the App might react when you are in a slow spot on the cellular network? PyjamaSam An app called SpeedLimit https://github.com/mschrag/speedlimit Works great. chris. How to install Apple’s Network Link Conditioner These instructions current as of October 2019. Warning: If you just upgraded to new version of macOS, make sure you install the very latest Network Conditioner ( in Additional Tools for Xcode ) or it may silently fail ; that is, you will turn it on but it won’t throttle anything or drop

Bluetooth headphone music quality deteriorates when launching iOS simulator

我只是一个虾纸丫 提交于 2019-12-02 13:50:14
The situation goes a little something like this: I am programming Xcode whilst concurrently listening to music on my bluetooth headphones... you know to block out the world. Then, I go to launch my app in the iOS simulator and BOOM all of a sudden my crystal clear music becomes garbled and super low quality like it is playing in a bathtub 2 blocks away... in the 1940s. Note: the quality deterioration does NOT occur if I am playing music on my laptop or cinema display and I launch the sim. Seems to be exclusively a Sim -> bluetooth issue. The problem is more than just annoying. Because often

Xcode - free to clear devices folder?

可紊 提交于 2019-12-02 13:49:54
I am deleting some folders and files to make more space on my drive. I know that in path: ~/Library/Developer/CoreSimulator/Devices/ There are folders for each simulator and each version. This folder has around 11GB size for me. I know that I could delete simulators with old versions that I no longer use. But from that unique identifier I can't know which is the right one and which not. So my question is: Can I delete it all? It's okay if next time I wouldn't have any of my app in simulator but can I loose something more? Old versions of simulator? Or anything else? Thanks The ~/Library

How to uninstall downloaded Xcode simulator? [duplicate]

老子叫甜甜 提交于 2019-12-02 13:48:07
This question already has an answer here: Xcode Simulator: how to remove older unneeded devices? 15 answers How to uninstall one of the downloaded Xcode simulators? My iOS 7 Simulator won't boot ( Unable to boot the iOS Simulator ). I want to completely reinstall it. I tried: Deleting ~/Library/Caches/com.apple.dt.Xcode Deleting Xcode and downloading it again from the App Store. But the iOS 7.1 Simulator remains installed. How to remove it? Note that I also tried: Resetting the simulator content and settings. Deleting the simulator device and creating it again. and it didn't fix my problem.

EXC_BAD_INSTRUCTION only in iPhone 5 simulator

限于喜欢 提交于 2019-12-02 13:32:01
问题 Running my code on the iPhone 5 simulator throws the exception shown in the image. Running the code on any of the other simulators is just fine. I can't spot where I made a mistake in this unspectacular line of code. Does anyone else have this problem? 回答1: NSInteger (which is a type alias for Int in Swift) is a 32-bit integer on 32-bit platforms like the iPhone 5. The result of NSInteger(NSDate().timeIntervalSince1970) * 1000 is 1480106653342 (at this moment) and does not fit into the range

Is it possible to load a separate application into the iphone?

不想你离开。 提交于 2019-12-02 10:42:47
I am having a iphone and i have created an application using Xcode. Now i want to move this application into my iphone for my use. How can it be done? I tried to copy my application to the iphone Applications folder using the phone view software, but i'm not able to open my application in the iphone. It shows the error "Your Myapp.app cannot be open" Is there any other way to install my application into the iphone? Please guide me regarding this. Thanks You'll need to register as an iPhone developer to get the correct keys for signing and loading an application onto an iPhone. If you are

App crash on iPad simulator

感情迁移 提交于 2019-12-02 10:37:25
App works fine on iPhone device, iPhone simulator but when tested on iPad simulator it crashed and message got is [UIWindowLayer convertPoint:fromView:]: unrecognized selector sent to instance. Program received signal EXC_BAD_ACCESS on thread1 UIApplicationMain - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { self.window = [[[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]autorelease]; self.containerViewController = [[[ContainerViewController alloc]init]autorelease]; self.window.rootViewController = self

Issue with fetching the contacts list from Device

馋奶兔 提交于 2019-12-02 10:25:58
What's wrong with this code : NSMutableArray* contactArray = [[NSMutableArray alloc] init]; ABAddressBookRef addressBook = ABAddressBookCreate(); CFArrayRef allPeople = ABAddressBookCopyArrayOfAllPeople(addressBook); // Over here it returns zero count. CFIndex nPeople = ABAddressBookGetPersonCount(addressBook); for (int i = 0 ; i < nPeople; i++) { NSMutableDictionary* dicContact = [[[NSMutableDictionary alloc] init] autorelease]; ABRecordRef ref = CFArrayGetValueAtIndex(allPeople, i); } It works perfectly in Simulator but not able to get the list of contacts in Device. Where I am missing out