ios-simulator

iOS simulator — swap from retina iPhone to non-retina iPad in a single step

不想你离开。 提交于 2019-12-04 19:37:50
I program for both iPhone and iPad. When doing iPhone stuff, I prefer the retina iPhone simulator. When doing iPad stuff, I prefer the non-retina simulator. Swapping between them is a two-step process for me. I have to switch xCode from the "iPhone simulator" target to the "iPad simulator" target. The problem is that when I do this, the simulator switches from retina iPhone to retina iPad. I therefore also have to go into the simulator app and change the hardware to non-retina iPad. Is there a way to accomplish that in a single step? Yes! and its super easy. In Xcode 4+ click the dropdown with

Simulating an update in iPhone SDK?

风流意气都作罢 提交于 2019-12-04 19:21:09
I have created an app, and then later changed the core data model. I changed the model and this all works fine during development. However to my surprise, when users download the updated version (with the new core data model), the app keeps the old model from the previous version. This causes the app to crash. Is there some way to simulate an update as if it was updated from the app store? I need to be able to do this in order to test my possible solutions to the problem. You cannot simulate update in XCode, look at this: https://developer.apple.com/library/ios/technotes/tn2285/_index.html You

iPhone : run .app to iPhone Simulator

浪尽此生 提交于 2019-12-04 19:19:59
I got a .app folder from a developer friend. I would try his application and run .app to my iPhone Simulator, without XCode. Is there a way to run this .app to my iPhone Simulator ? Of course this .app has been built for iPhone Simulator target. Try something like this: /Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone\ Simulator.app/Contents/MacOS/iPhone\ Simulator -SimulateApplication path_to_your_app/YourFavouriteApp.app/YourFavouriteApp 来源: https://stackoverflow.com/questions/7362852/iphone-run-app-to-iphone-simulator

Xcode 6 iOS Simulator does not remember app settings

孤者浪人 提交于 2019-12-04 18:32:13
问题 I just installed Xcode 6.0.1 (coming from Xcode 5.1.1) and tried to run my iOS app on iPhone 6 simulator for the first time. It builds and runs, but I cannot change its settings. I use NSUserDefaults for my settings. Each time I change settings, go back to the list of settings and then select my app's settings again, they are set according to the default settings. When I tried to figure out why this could happen I noticed that changing settings of the standard iOS app Maps does not work

Xcode 9 - no iOS 11 simulator

十年热恋 提交于 2019-12-04 17:26:50
问题 When I open up the new Xcode 9 and go to Preferences > Components I don't see an option to download iOS 11 simulators. I'm 100% sure I have the latest Xcode 9 beta 4 I did some research and found out that Xcode downloads an index to determine what it is able to download. For me that was: https://devimages-cdn.apple.com/downloads/xcode/simulators/index-9.0.0-CA351AD8-3176-41CB-875C-42A05C7CDEC7.dvtdownloadableindex Basically one is able to use it for any Xcode version by determining the

Xcode 4.5 - CopyPNGFile persists. Need new ideas

∥☆過路亽.° 提交于 2019-12-04 17:17:33
问题 I'm making an iPad app and it runs on the simulator, but fails when i try building it for the device. the error is below: These are the things i've tried to rectify this issue: went through every PNG file with Photoshop and saved them again w/o the interlace Deleted all the images in my Resources folder and added them again by dragging/dropping the images again Deleted ALL PNG images (left the JPGs) and it works...when i add one PNG, Xcode throws a hissy fit. Deleted the derivedData in my

UITabBar images visible on simulator, disappear on the device

孤街浪徒 提交于 2019-12-04 17:14:45
in an iPhone app, I have a UITabBar with three tabs. One has a system image, two more have custom images. These are PNGs, 30x30, palette-based, mostly transparent. These images show up fine in the simulator, but on the device, all I see is a grey gradiented square on a tab. The shapes on these images are grey to begin with, but they do show up as expected on the simulator. Any ideas, please? The image should be white on transparent. It's in the UI design guide. In my case, it was grey on transparent. Simulator forgives that, the device does not. The device itself is pickier about image formats

iPhone Programming in Mac OS X running not in a Mac Computer

送分小仙女□ 提交于 2019-12-04 16:43:06
I want to try some "programming for iphone". For that I need a Mac OS X, no question about it.. But I have a problem I don't have a Mac Computer. I have a Intel Dual-Core PC, running XP. Snow Leopard its for Intel, but for Intel Mac computers, right?. If I manage to install Mac OS X Snow Leopard in my Notebook. Do you think I can still install and do programming for Iphone, as well in a Mac Computer? There will be any problems in the programming or debugging? And there is another thing.. I don't have an iphone. That will may be a problem right? There's a commercial environment which allows to

Xcode 5: Multiple test targets in one scheme: “Simulator already in use”

笑着哭i 提交于 2019-12-04 16:22:29
问题 In Xcode 5, I have a workspace with multiple projects and a scheme that should run all the test targets of the various projects. When I kick off the tests about 3 test project targets pass. So far, so good. But at the fourth test target I get an error message from Xcode telling me that the simulator can't be launched because it is already in use. Is there any way to kill the simulator between each test target(!) in a single(!) scheme? Or are there other solutions? Edit: I have opened a rdar

iPhone camera in simulator

允我心安 提交于 2019-12-04 16:17:29
Is there a way to test code using iPhone camera in the simulator? (Somebody must have written something - you could have a replacement component that simulates the camera) In the simulator there are some sample photo library images that you can access. Use: UIImagePickerControllerSourceTypePhotoLibrary If you want to test your actual camera API usage, you would have to closely emulate a fairly large non-trivial portion of the AVFoundation framework. If you just want to test the rest of your app, you could just ifdef out all the camera related stuff and replace your image capture and preview