ios-simulator

Simulator running in scaling mode for iPhone 6 Plus?

假装没事ソ 提交于 2019-11-30 17:41:05
My app starts and runs on the new iPhone 6 Plus (or iPhone 6) in the simulator, but elements that I know are supposed to be small on the big screen (i.e. hard coded CGRect s) are large, as if the whole app had just been scaled up for the larger screen. How can I get out of scaling mode in the simulator? It looks like setting a launch screen file in the "App Icons and Launch Images" section of your project settings, or adding iOS 8 images to your launch image catalog, will enable "native" resolution. Adding a correctly sized LaunchImage seems to be enough (setting an incorrectly sized image won

Is it possible to install iOS6 SDK on Xcode 6-beta?

天涯浪子 提交于 2019-11-30 17:35:34
I noticed that there are no preview or simulator for iOS6 in Xcode 6-beta, so I was wondering is there any way that I could add it manually ? No. Apple only support iOS7 and iOS8, and they're strict with that. As a result, only iOS7/8 simulators are available in Xcode 6. If you want to run on an older simulator, you need to develop on an older version of XCode. Not possible. But: you can still test on a iOS 6 device from Xcode 6. I keep an old iPhone 4 for this (look at eBay). EDIT: there is another way - install Xcode 5 on a virtual machine (e.g. VMWare Fusion) running Mavericks. iOS6

Apps manually installed in simulator crashes upon load

不问归期 提交于 2019-11-30 17:34:37
I'm installing MyApp on the iOS simulator (Xcode 7, iOS 9) using xcrun simctl install booted MyPath/MyApp.app . This works as expected and the app is installed on the simulator. However, launching the app either manually or using xcrun simctl launch booted com.company.MyApp fails. Giving back the error: An error was encountered processing the command (domain=FBSOpenApplicationErrorDomain, code=1): The operation couldn’t be completed. (FBSOpenApplicationErrorDomain error 1.) The app is exported from Xcode (note that running the app from Xcode or re-building the app from its source code is not a

Xcode 9 iOS Simulator becoming black screen after installing Xcode 10 beta

不打扰是莪最后的温柔 提交于 2019-11-30 17:31:28
I know that so many people have asked this question earlier. But I think my situation is different. In my case Xcode 9.2 was already installed and I upgraded macOS from 10.13.2 to 10.13.5. Then I installed Xcode 10 beta. Now when I'm running any project on Xcode 9.2 and try to use simulator, its becoming black though I can see the xcode logs. Things I have tried so far, Uninstalled Xcode 10 Beta Uninstalling & reinstalling Xcode 9.2 Uninstall Xcode 9.2 and install Xcode 9.4 Reset Content & Settings from simulator menu Restart Device from simulator menu Resizing simulator. Followed this post

Why isn't UIAlertView Showing?

走远了吗. 提交于 2019-11-30 17:31:11
问题 For some reason screen gets dark and freezes, alert is not shown... can someone please help? Thanks in advance! } else { UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Hello!" message:@"Hello!" delegate:self cancelButtonTitle:@"Done" otherButtonTitles:nil]; [alert show]; [alert release]; } 回答1: You are probably calling show from a background thread, call it on the main thread like this: UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Hello!" message:@"Hello!" delegate

iPhone simulators crash on app launch

喜欢而已 提交于 2019-11-30 16:06:51
问题 I'm having some issues with the iPhone simulators after upgrading to Lion and XCode 4.1. When I launch the simulator for 4.0, 4.1 or 4.2 (which I restored from Time Machine), I get an EXC_BAD_ACCESS error pretty much immediately on this: 0x003c23dc <+0012> call 0x3c23e1 <__springboard_unimplemented+17> On 4.3, I also get an EXC_BAD_ACCESS error immediately, on objc_msgSend , and from what I can tell, it's happening before the application even launches. I've tried cleaning the targets to no

Embed youtube video in iOS App

a 夏天 提交于 2019-11-30 15:40:15
I want to embed a youtube video into a webviewer whenever I press a button. I have this code - (IBAction)testBtn:(id)sender { NSString *code = @"<iframe width=\"560\" height=\"315\" src=\"//www.youtube.com/embed/1iBIcJFRLBA\" frameborder=\"0\" allowfullscreen></iframe>"; [[self youtubeWebPlayer]loadHTMLString:code baseURL:nil]; } My problem is, whenever I press the button nothing happens. The webviewer remains blank. I have put breakpoints in the code to double check that the code is called by my app and it is indeed called. EDIT* * * I have fixed the problem by replacing [[self

iPhone simulators crash on app launch

大城市里の小女人 提交于 2019-11-30 15:39:21
I'm having some issues with the iPhone simulators after upgrading to Lion and XCode 4.1. When I launch the simulator for 4.0, 4.1 or 4.2 (which I restored from Time Machine), I get an EXC_BAD_ACCESS error pretty much immediately on this: 0x003c23dc <+0012> call 0x3c23e1 <__springboard_unimplemented+17> On 4.3, I also get an EXC_BAD_ACCESS error immediately, on objc_msgSend , and from what I can tell, it's happening before the application even launches. I've tried cleaning the targets to no avail, and NSZombieEnabled doesn't seem to help. The app runs perfectly on my iPhone. EDIT : Uninstalled

How to customize carrier name in iOS 6 simulator?

对着背影说爱祢 提交于 2019-11-30 14:52:27
问题 How can I customize the default Carrier name to something else, e.g. AT&T ? 回答1: There is a way to change the carrier name without using any objective c code or image editor app: https://github.com/toursprung/iOS-Screenshot-Automator/blob/master/changeCarrierName This solution works great with all versions of iOS (including iOS 6 and 7) The key point is sudo plutil -convert xml1 SpringBoard.strings We don't necessarily have to convert it back to binary code since Mac OS accepts both formats.

Updated to Xcode 10.1 on Mojave and now my app always asks to use the microphone

♀尐吖头ヾ 提交于 2019-11-30 14:41:53
问题 I am running a AVAudioSession which I suspect is activating the microphone request, but I only use it for sounds and music. When running Xcode 10.1 Simulator on macOS Mojave , why does it activate a request to access the microphone? I haven't written a single line to even ask access to it. My app doesn't need access to it nor do I want it to. Here's the code to play the music: AVAudioSession *title = [AVAudioSession sharedInstance]; [title setCategory:AVAudioSessionCategoryAmbient error:nil];