Installing iPhone App to iPhone - iphone

I followed the tutorial from this site:
http://theappleblog.com/2008/08/04/tutorial-build-a-simple-rss-reader-for-iphone/
to make my first iPhone application, now I would like to test this application on my iPhone, what steps do I need to take in order to do this?

You have two choices. You can register to become an iPhone developer like most people do on the iPhone Dev Center, and then deploy directly to the device by selecting "Device - iPhone OS 2.2" in the Overview menu and then hitting Build and Go.
If you're not using any 2.2-specific APIs, you can compile with "Device - iPhone OS 2.1" and then send your app bundle over to a jailbroken iPhone via SFTP, and fake the codesign process using the ldid utility, allowing you to mess around with your apps on the device without registering to become a developer, and without having the headache of installing the open toolchain.

Become a registered iPhone developer. You can't deploy to the phone without doing this first.
http://developer.apple.com/iphone/

Related

test iPhone app without an iPhone

I've been sent an iPhone app package (.zip file) that I would like to test. The app is not yet available in the app store and I don't own an iPhone. What are my options for testing this app? I can probably get my hands on a Mac (with some difficulty), but ideally I'm looking for a way of running the app under windows/Linux.
I was hoping to find a website that would allow me to upload the package, and I could then test the app in a browser, but haven't found anything like this so far.
You try what you want, the app code will not run on any other platform then an iOS device.
The best option is the get the source code so you can run the app on a Mac with Xcode and the iOS simulator.
But this is no real replacement for device testing.
Also be aware that iOS ad-hoc app arre linked to device and can there not be installed on device which are not in the profile with which the app is build. The devices are identified by there UDID.
The app you linked is indeed an ARM only binnary and can only be installed on devices that are in the profile used to build the app.
Festivals.ie: Mach-O executable arm
I also took a look at the app bundle and it seems that the app is native, there for you can not simply extract any thing an present it as a webpage. There is no known app to HTML tool available.
In order to test an iOS app the developer of the app must add your UDID to his Member Center under devices. Without that limit everyone could share apps around the globe with no real use for the appstore.
There's no way for you to test it, even if you'll get a Mac and an iPhone.
If not an iPhone, you can test it on an iPad or an IOS simulator... NO other way possible at all...

Phone Gap Iphone development

I am just starting out experimenting with using Phone Gap to create an Iphone app, and in the Get Started guide it says a requirement is Mac OS X Snow Leopard (10.6).
Link
I thought it was possible do Phone Gap development on any machine using HTML/CSS/Javascript?
Phone Gap can build the app for you in is own server: https://build.phonegap.com/ . With that you don't need a mac to develop your app.
If you need private apps, this feature isn't free.
PhoneGap is an HTML5 app platform that allows you to author native applications with web technologies and get access to APIs and app stores. If the platform is supposed to produce a native iOS app (that can be submitted to AppStore) then you need to have Mac OS because Objective-C is supported on Mac/XCode.
More from their website:
The process for completing iOS builds is slightly different than that
for other platforms: all iOS builds need to be signed by a developer
certificate and a provisioning profile, that is tied to your Apple
developer account and the device you wish to test on. This document
covers how to set this up.
Note: Since PhoneGap Build uses Apple's standard development process
to build applications, you will need to sign up for their developer
program to build iOS applications on PhoneGap Build. You will also
need a Mac to configure your certificate and provisioning profile.
actually using phonegap application u can run your application in iPhone , Android & so many Phone application with single code which is written using html-5 ,css , jQuery , javaScript & jQuery mobile.
but if you want to post your application on apple app store then you have to have XCode which can run in only mac os.
so while you are designing or implementation time you not need mac os. all you need is notepad & html 5 supported browser.(for testing) Thats it.

Should I obtain a Mac to develop or test my iPhone web app?

I've been developing an iPhone web app on a Windows XP box using
MobiOne Test Center and Safari for testing and debugging and
occasionally using a real iPhone for testing. The problem is that
MobiOne, Safari (desktop), and the iPhone all produce different
errors. Obviously I am most concerned with the errors that occur on
the iPhone, since that is the target device. (An example of the type
of error encountered is that an image that ordinarily appears as
expected occasionally cannot be displayed, so the little question-mark
icon appears instead.)
I have the opportunity to obtain a Mac for development, but I need to
know whether using a Mac will make a difference.
Have any of you moved to the Mac for developing or just testing a web-only iPhone app?
Is doing so worthwhile? Why?
Does the iPhone simulator in the SDK simulate an iPhone better than Safari on the Windows desktop?
Is there a reason I would need a paid subscription to the Apple iOS Developer Program?
Thanks!
In short: no, I don't think a Mac is necessary for developing iPhone web apps, especially seeing as you have access to a device to test on, and you seem to be fine in your progress of development.
If you're not aware, there's a debug console available on Mobile Safari on your iPhone. Go to Settings > Safari > Developer (at the bottom) > Debug Console and turn that on.
When developing an iPhone web app, you do not need to pay for the iOS Developer Program. That program is for developing native apps to deploy either to your company or the App Store only.
Web apps, on the other hand, are nothing more than web sites that are designed (i.e. include certain meta tags, have mobile-friendly interface designs) to be run similarly to native apps on a device, and harness certain Web technologies such as geolocation that are available to devices. Users view them in Mobile Safari like any other web site, but for the best experience are asked to tap on the + sign and add your web app to their home screens to be accessed as such.
The iPhone Simulator certainly does a better job than desktop Safari on either Windows or Mac OS X since its user interface shares that of the iPhone device, but I don't think you'll need it for testing and debugging if you have a device to test on.
The iOS SDK has a tool called Dashcode but I don't think it's much of a difference from the web dev IDEs that the rest of us use every day. As far as I can tell, Dashcode doesn't give your web app any additional features that can't already be implemented using the standards we're familiar with.
I would not buy a Mac or a paid subscription to the Apple iOS developer program unless I was writing native iPhone applications.
You should be fine with your current configuration. Just make sure you do the bulk of your testing on the actual iPhone, that is what your customers will be using.
Does the iPhone simulator in the SDK simulate an iPhone better than Safari on the Windows desktop?
Yes - there are some significant differences between MobileSafari and Safari for Mac/Windows - but you've got an iPhone to test on. The iPhone Simulator offers no additional debugging tools for iPhone web apps, so you're not going to be better off having it available than just testing on the device.
Testing on an actual device is better than testing on any of the Simulators, since that is what you mobile customers will actually be using.
If you are strictly building web apps, your money might be better spent on more test devices (devices with and without a Retina display, iPad, maybe an old used iPod Touch running some prior version of iOS for regression testing, etc.) If you are choosy about your colors, the color can vary quite a bit across devices, so it may help to find one warm display and one cold one (from old/different manufacturing lots, etc.).
So you don't NEED a Mac (unless you have other reasons for acquiring one).
Buy an iMac. You will enjoy the experience better.
It is my understanding that your application needs to be compiled on a mac before it can be sold in the app store.

iPhone application installation

i am not a member of iPhone developer, i installed one iPhoneOS 2.2 in my computer, and i developed one application. and i created it as a .ipa file and i installed my iPhone but it is not working.
i am sure i am not a iPhone developer, not register in iPhone developer.
is it that problems.
In order for you to be able to officially install applications on the iPhone that you have developed, you need to be part of the iPhone Developer program which costs $99/year.
Without the certificates and provisioning profiles you get by being part of the program, you cannot officially push software to device or submit your software to Apple to be in the App Store.
You can test the applications within the iPhone Simulator without being part of the program.
Other options all include Jailbreaking the iPhone - which I don't know anything about and cannot help you with.
Yup, you have to register with the iPhone developer program (and pay $99) in order to be able to sign the app and run it on your iPhone.

Is it possible to load a separate application into the iphone?

I am having a iphone and i have created an application using Xcode. Now i want to move this application into my iphone for my use. How can it be done?
I tried to copy my application to the iphone Applications folder using the phone view software, but i'm not able to open my application in the iphone. It shows the error
"Your Myapp.app cannot be open"
Is there any other way to install my application into the iphone? Please guide me regarding this.
Thanks
You'll need to register as an iPhone developer to get the correct keys for signing and loading an application onto an iPhone. If you are writing an application that you plan to sell via the AppStore then this is $99 to register, if it's for internal use only then $199.
First did you use the real SDK or the simulator?
The simulator SDK only hides some OS X calls that don't exist on iPhone, but is otherwise the normal OS X SDK. So first make sure you link against the (ARM) iPhone SDK.
Then comes the licensing bit. Afaik in a non jailbroken iPhone you can only load signed apps (via the AppStore, or using a license obtained from Apple to sign your own)
Xcode will automatically install and run an application on your iphone if you use the correct project setting.
Project -> Set Active SDK -> iPhone Device 3.0
Note that you will need a provisioning key before this becomes possible.
visit http://developer.apple.com/iphone to view some easy-to-understand tutorials on how to get one of these.
I assume you have signed up as an iPhone developer on that website (costs $99).