iphone-simulator

iPhone Multiple Columns in UITableView

Hi, I have multiple rows and columns of data. But iPhone UITableView contains only single column and multiple rows. How do I display my multi column data following Apple's Human Interface Guidelines? Any ideas? ...

How can I install a .ipa file to my iphone emulator

Hi, I have an iphone simulator running on my Mac. I have a .ipa file, can you please tell me how can I install it on the emulator? Thank you. ...

GPRS on iPhone Simulator

I want to activate/enable GPRS on the iPhone programmatically. What are the APIs I can look into? There is no "Network" option in the settings application on the simulator so do I need to test out the application on the device itself? ...

iPhone Simulator - set HTTP proxy

I'm coding an iPhone app that needs to make small HTTP requests to the Internet. Within our corp LAN, all HTTP traffic has to go through Squid. The simulator is clearly capable of using a proxy - since Mobile Safari works. But, how do I get/set the proxy settings in code? A bunch of the headers are commented out for the simulator. Fo...

iPhone simulator fails

I have a fresh iPhone project. When I "Build and Go": Error from Debugger: Failed to launch simulated application: iPhone Simulator failed to install the application. Why is that?! ...

Threading works in simulator but not on iPhone

Hi I'm trying to display a UIActivityIndicatorView while background processing takes place. The below simplified code works when I try it in the simulator(the alert is displayed)..but when I download it to my phone from Xcode, the background thread does not seem to get called at all. (the alert never gets displayed) Any ideas? -(voi...

MPMoviePlayerController retainCount goes from 1 to 3 to 2. Then hangs my app

Inside the simulator, I load up my movie using the method described here: https://developer.apple.com/iphone/library/codinghowtos/AudioAndVideo/index.html#VIDEO-INITIATE_VIDEO_PLAYBACK_IN_MY_CODE I'm doing an NSLog to show the retainCount before/after the play call, as well as before/after the release call in the notification. The count...

File location of compiled iPhone app?

Hi, I'm writing an iPhone app in simulator/debug mode at the moment. I'd like to know, after I build it, where does the binary go? I want to send this file to my friend to show him what I'm doing so far. Also, how do I package apps into .dmg files? That seems to be the better format to send app to other people? ...

How do I load webpage this way?

In a UIWebView, I provide a link to http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSString_Class/Reference/NSString.html. In the simulator, TOC doesn't load. A space for it appears then quickly hides. However, on the iPhone, TOC loads and doesn't hide. User has to click the hide TOC link. What is the si...

iPhone app crashes from Finder

Hi, I've written an iPhone app and only tested it with the simulator as I don't have an actual iPhone. If I Build and Go, I can see the app running. But if I go to Finder and then open it through the project's build folder, it just crashes immediately. Does anyone know the reason for this? ...

Cleaning up the iPhone simulator

Is there a straightforward way to clean up the directory where xcode deploys an app when building for the iPhone simulator? I have a sqlite database that gets copied into the Documents folder on startup if necessary. The problem is that I might change my schema, but the new database won't get copied, because one already exists. Ideally...

Multiple Targets in Xcode: "Failed to launch simulated application: Unknown error."

I'm trying to build for multiple targets in Xcode, to simplify the process of creating a "lite" and "pro" version of my application. In theory, this is great and I can pass defines to GCC_PREPROCESSOR_DEFINITIONS for use in my code. However, I'm having problems actually getting it to work due to an error trying to launch the second tar...

what is the optimal hardware to use for iphone app building?

I have never programmed on a mac; i did program on a NeXT machine using objective-c tho. I want to learn to develop iphone apps what is the recommended optimal (read lowest cost versus best developer experience) hardware to buy from Apple for iphone development? thank you in advance. ...

iPhone: Failed to launch simulated application: Unknown error.

This is a new iPhone project, only 1 target (different from this question) On build we get: Failed to launch simulated application: Unknown error. The google again gives us nothing, lots of people have encountered this and there are lots of crazy ideas to try "oh clean the build", "clear the cache", "twiddle this flag" and none of th...

iPhone - strange error when testing on simulator

Hi I was testing my app on the simulator when it crashed on clicking a button of a UIAlertView. I stopped debugging there, made some changes to the code and built the app again. Now when I run the application, I get this error in the console Couldn't register com.myApp.debug with the bootstrap server. Error: unknown error code. This ge...

Reading a file from a hard drive in iPhone simulator

Is it possible to read a file (from my normal file system) into a iPhone App running on the iPhone Simulator? I understand that the iPhone itself has not got a (user accessible) file system but this is simply for testing and will only ever be run in the simulator. The file will be a text file that can be edited while the application is...

Xcode error: Failed to launch simulated application

Problem statement: Unlike people have asked at here and here I got this error after a brand new installation of leopard(hackintosh), this problem really driving me crazy.... and nowhere else to find an clue, I googled and visited every article related with this, still cann't get it solved After the first time install iPhone SDK 2.2.1...

how to take a snapshot of iPhone simulator showing a selected row

Hi, I'm trying to take a snapshot of the iPhone simulator when a row in a table view is selected, before the new view appears. I have been unable to find a point where I can stop the simulator, with the row selected, so that I can take a snapshot of it. How do I do that? Thanks for your time. ...

Playing sample file from simulator using avTouch sample code.

I am trying to play the sample sound file in the avTouch sample code from the Apple dev site. I can't move the app to my phone as i am in the enrollment process and don't yet have access to the phone. The code below is from the sample code. NSURL *fileURL = [[NSURL alloc] initFileURLWithPath: [[NSBundle mainBundle] pathForResource:@"sa...

Sprites appear blue using cocos 2d-iphone, but only in the simulator

I'm running this sample code located here: http://monoclestudios.com/cocos2d_whitepaper.html using cocos 2d-iphone 0.7.2, and the sprites are being drawn coloured blue. But this is only happening on the simulator. On an actual device, everything looks fine. Has anyone else run into this problem? ...