ios-simulator

iOS Simulator interface blurry in Xcode 6 GM iOS 8

大城市里の小女人 提交于 2019-12-21 20:36:13
问题 I've been testing my apps under the iOS 8 Simulator in Xcode 6 GM but for some weird reason, the app interface is displaying blurry, like its been slightly zoomed. Even the status bar is zoomed in the same way. Edit: When the Launch Image loads, the zoom is correct and everything including the status bar is sharp, but then once the app loads fully, everything zooms. Has anyone else noticed this or have a fix? Thanks! 回答1: I suppose you have not added launch images for iphone 6 and iphone 6

Open pdf with other apps

主宰稳场 提交于 2019-12-21 20:35:10
问题 I am displaying a pdf file in an app. I want to show "open with" option on nag bar showing apps installed on iPhone that can open same pdf and if user selects any of the app (for e.g. pdf viewer) then the pdf should get open with pdf viewer app. How do I do this? Please help Thanks in advance. 回答1: This code will present the OpenIn interaction you're looking for. It works for iPhone and iPad. On iPad its in a popover. I'm generating the PDF but if you're just using one you have you don't need

forgot to put regular image but it has Retina @2x image

帅比萌擦擦* 提交于 2019-12-21 19:27:37
问题 I have submitted my app which support both regular and retina display edition. I forgot to put one of regular image file (a.png) but it has (a@2x.png) Retina image. Is it going to be regular iPhone able to show (a@2x.png) image or not? I have no clue since I don't have 3GS or iPod Touch, but on iPhone regular simulator came out to be show that image. Any experience? Thank You. 回答1: When iOS loads an image it will check the file name for the correct image ie. on a retina display device, it

Keychain Services API fails with errSecNotAvailable in iphonesimulator 6.0

谁说胖子不能爱 提交于 2019-12-21 17:26:51
问题 Calls to the the Keychain Services fail with errSecNotAvailable when executing a target using the command line tools and the iphone simulator is set to Hardware version 6.0 (10A403). If I change the simulator version to other previous version (4.3, 5.0, 5.1) and re-execute using the same command line script the calls succeed. I'm running latest XCode 4.5 and the command line tools were downloaded from within XCode. To reproduce this error just do the following: Setup an ios library project

Unable to boot device in current state : Creating

拜拜、爱过 提交于 2019-12-21 12:29:00
问题 I'm getting an error while running an application in Xcode 6 for iOS 8 simulator. The error states that 'Unable to boot device in current state: Creating' . I have tried to reset the content of simulator. Also, I have rebooted mac after installing Xcode 6. What might be fix? 回答1: This is mentioned in the Xcode 6.1 Release Notes Simulated devices can get stuck in a “Creating” state in some circumstances. This problem can occur either when creating new devices or when resetting existing devices

Unable to boot device in current state : Creating

僤鯓⒐⒋嵵緔 提交于 2019-12-21 12:26:01
问题 I'm getting an error while running an application in Xcode 6 for iOS 8 simulator. The error states that 'Unable to boot device in current state: Creating' . I have tried to reset the content of simulator. Also, I have rebooted mac after installing Xcode 6. What might be fix? 回答1: This is mentioned in the Xcode 6.1 Release Notes Simulated devices can get stuck in a “Creating” state in some circumstances. This problem can occur either when creating new devices or when resetting existing devices

Will installing XCode 4.5 remove iOS Simulator 5.1?

青春壹個敷衍的年華 提交于 2019-12-21 09:29:53
问题 I have 2 machines. On one of them I updated to xcode 4.5, but doing so uninstalled my iOS simulator for 5.1. I'm hesitant to update my other machine as I have a project that requires the 5.1 simulator. Are my assumptions correct or did I do something to remove the older simulator without knowing? 回答1: You can redownload the simulator in the Xcode preferences. 回答2: Download Xcode 4.3.3 for lion and open the dmg, and click and show package contents,and copy the Contents\Developer\platforms

iOS simulator: double click home button does not work sometimes

梦想的初衷 提交于 2019-12-21 07:23:15
问题 With the iOS simulator version 10, double clicking the home button to bring up multitasking (running apps) sometimes does not respond. Even hitting (cmd + shift + h)x2 to simulate home button double click also works sometimes. I have verified this with a work mate and they have the same issue. I am not sure if this is a bug in the simulator or if there is a setting somewhere on for example the delay between the clicks? The answer from here did not make a difference. 回答1: I have this problem

Simulating low battery for iPhones

时间秒杀一切 提交于 2019-12-21 07:03:26
问题 I am working on a mobile game, which appearantly crashes when the Low Battery alert is displayed. It works fine on low memory, incoming calls and other messages. Its a pain to test and debug this, since I can find no terminal or iPhone simulator way of simulating this situation, so I have to charge my phone up a little bit, launch the app, wait for it to drain its power, and start all over again. Does anyone know of a way to produce this error in a realistic way? Hopefully something that isn

How to download iPad Mini simulator

孤人 提交于 2019-12-21 06:51:36
问题 I want to test my application on iPad mini screen in Xcode 8.2, but I could not find the simulator for the same. I have also tried to add simulator Hardware > Device > click bottom add menu but here I do not see any option to download the iPad mini simulator. 回答1: By popular demand, Xcode now includes the iPad mini Simulator. It is not created by default, but you can use the Xcode Devices & Simulators window or xcrun simctl from the command line to create one. For example, to create an iPad