ios-simulator

Why is app icon white?

本小妞迷上赌 提交于 2019-12-06 06:38:57
Some recent version of iOS caused my app icon to turn white. I've gone through everything in regards to images and can't find the issue. I'm running Xcode 3.2.5 with sdk 4.2. I do have an entry for "Icon files" in Info.plist with 5 keys: Item 0 myapp.png Item 1 myapp@2x.png Item 2 myapp-72.png Item 3 myapp-Small-50.png Item 4 myapp-Small.png Item 5 myapp-Small@2x.png All the above have proper dimensions. I see the image in 'Copy Bundle Resources' and also in the .app file for the simulator version. It is properly reference by name in 'Icon files', Item 0. It is not named Default.png since it

UIViewController's viewDidAppear not being called after a modal close

别说谁变了你拦得住时间么 提交于 2019-12-06 06:04:53
问题 A UIViewController (View A) invokes another view controller (View B) by invoking it as a modal control. [self presentModalViewController:ViewB animated:TRUE]; And View B exists by invoking: [self dismissModalViewControllerAnimated:TRUE]; When this occurs everything looks right EXCEPT that View A's viewWillAppear and viewDidAppear does not get called (they are called during app init though). Weird thing is... i believe ive done this before, but im not sure what is going on now. Is there

UIImageView rotates image with retina 4 iPhone simulator but not retina 3.5/regular simulator

巧了我就是萌 提交于 2019-12-06 04:40:36
The way UIImageView autorotates some images and not others (or autorotates images at all) completely baffles me and I can't find the settings to turn off this autorotate behavior. As a test I created a project using the iOS6 SDK targeted to iPhone 5 with the following steps: I took a photo using my iPhone 4's front facing camera with portrait orientation transferred it to my desktop using DropBox imported it into my project and specified it in StoryBoard as the source for a UIImageView. These are the layout settings for the imageView: Running it in the simulator for the retina3.5 and iPhone 5

Iphone Simulator Xcode 6 on IOS 8 visualize two black bars

这一生的挚爱 提交于 2019-12-06 04:28:09
问题 I have tried new app in Xcode 6 and not use storyboard. But when I have ran the app, with Iphone 5,5s,6 and 6 plus, in Iphone Simulator visualize two black bars on the top and below. Only Iphone 4s there aren't black bars. Do you have an idea to resolve my problem? Thanks 回答1: You need to add a Default-568h@2x.png image file that is 640x1136 to your project. I added an all black one that was in an older project. I didn't have to set anything else, which was nice. If you are building for iOS8

Xcode 4.5 doesn't run / load app on simulators or device

 ̄綄美尐妖づ 提交于 2019-12-06 03:57:42
问题 I'm running Xcode 4.5 on OS X Lion 10.7.5 on a Mid 2007 Mac Mini. I've run into this problem before where the simulators as well as actual devices don't run the app when I build. I'm writing a couple of different applications using Phonegap 2.1, HTML, JS, Jquery Mobile. I've reinstalled Xcode 2-3x after following the instructions from OSX Daily and SO How to fully remove Xcode 4. This worked for a while, but then my 300gb SSD drive died & I had to reinstall the OEM 120 GB hard drive &

ios-sim: How to access command line arguments in my iPhone application?

大兔子大兔子 提交于 2019-12-06 03:55:08
I am making use of the awesome ios-sim found on github . It allows you to run the simulator via the command line and it also allows you to select which simulator (iphone or iPad) to use. I am able to run my application flawlessly with it. However, I am unsure how to use the arguments passed to my application via the command line. Has anyone done this or knows how to do this? ./ios-sim launch iTest.app --family ipad --args argument1 argument2 How do I access argument1 and argument2 in the iPhone application? in the main.m File you can print the arguments with: int main(int argc, char *argv[]) {

Xcode sometimes crashes when I try to debug in iPhone Simulator after I upgrade Xcode6

谁说胖子不能爱 提交于 2019-12-06 03:10:57
问题 I am developing an iPhone app and using iPhone Simulator most of the time. When I try to debug one of my project in iPhone Simulator(does not matter what type and OS version) for debugging, Xcode sometimes suddenly crashes. After this error happens, changing code just one line and recompiling solves crash, but Xcode6 always crashes when I try to debug the project in iPhone Simulator if I don't recompile the project. Then, after continuing programming for a while, same crash happens. I might

Testing custom location with simulator

馋奶兔 提交于 2019-12-06 02:56:16
I just spent the last hour searching - thinking that there has to be an answer - and didn't find much, so I'm asking here. I'm trying to get the sample app Regions to trigger enter and/or exit regions updates via the simulator. I'm familiar with setting a specific latitude and longitude with Debug > Location > Custom Location but that doesn't seem to do much, although it does seem to work in the LocateMe sample app. At this point I don't know if the problem is a limitation of the iOS Simulator or of the way the sample app handles region detection (I'm still rather new to iOS). I've come across

Unable to install and run iOS app on Simulator from command line - Simulator of iOS 6.1 Xcode 5 on mavericks

邮差的信 提交于 2019-12-06 02:46:07
问题 I've tried various methods and scripts to launch my iOS compiled app via commandline but unable to do so, help will be appreciated. I tried the following: This command line: ./Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone Simulator.app/Contents/MacOS/iPhone\ Simulator -SimulateApplication App.app/App This shell script Attempted on: Simulator app v7.0 iOS 6.1 Mac OSX Mavericks No luck :/ 回答1: You could use ios-sim (can be installed via Homebrew brew install ios-sim

iPhone Simulator Default Hardware Version

浪尽此生 提交于 2019-12-06 02:30:53
I have been playing around with the iPhone SDK recently. At first I wasn't taking advantage of anything that required version SDK version 2.2. However, I recently started using some features that were added or modified in 2.1 and 2.2. I installed the new 2.2 SDK and changed my project settings to target SDK 2.2. However, when I hit "Build and Run" in Xcode, the simulator launches with version 2.0 selected. I can change it to 2.2 and my app works as expected, however doing that kills the debug session which would have to be reattached. Am I missing a setting somewhere that will cause the