Archive

Posts Tagged ‘iphone’

iPhone Application (app) Development for Beginners – How To Get Started?

February 19th, 2012 No comments

I’m often asked the questions “How can I get started creating iPhone apps?” or “What’s the best way to start developing for iOS?” Well, this post is for you.

This week I ran across a website put together by Apple to help guide new iPhone developers through the complicated process of developing their first application.

Here is the link to the site: https://developer.apple.com/library/ios/#referencelibrary/GettingStarted/RoadMapiOS/Introduction/Introduction.html

This site was created to help you from the very beginning with tutorials for installing the XCode development platform. The site includes tutorials for creating a basic ”Hello World!” application. You will find tips about user interface, Objective C, and the tools you have at your disposal. Lastly, the site shows you how to upload your app and submit it to Apple for their approval.

I hope you’ll find this site helpful. Good luck!

About Brad

Brad is a tech professional and hobbiest. He's a husband, father, and a Mormon. Connect with Brad on Google+

Share

Where Do I Find My iPhone/iPad/iPod Touch Device UDID (iOS Device Identifier)?

May 12th, 2011 No comments

The easiest way to find your Device UDID (Unique Device Identifier) is in iTunes. Plug your device into your computer and launch iTunes. I believe a picture is worth a thousand words, so this is where you’ll find it. If the serial number is displayed there instead, then click on the serial number and it should toggle to the UDID.

iTunes Location for UDID

iOS Device Identifier

About Brad

Brad is a tech professional and hobbiest. He's a husband, father, and a Mormon. Connect with Brad on Google+

Share

An Easy, Simple iOS/iPhone Cocos2D Tutorial

April 3rd, 2011 No comments

Wanted to pass along this amazing tutorial that I’m following to learn the basics of the iPhone Cocos2D gaming framework. Check it out: http://www.raywenderlich.com/352/how-to-make-a-simple-iphone-game-with-cocos2d-tutorial.

About Brad

Brad is a tech professional and hobbiest. He's a husband, father, and a Mormon. Connect with Brad on Google+

Share
Categories: iPhone Dev Tags: , ,

SVN Error: Error while performing action: commit failed (details follow): Checksum mismatch for …

March 31st, 2011 No comments

I went to commit my iPhone app code using RapidSVN, and as I performed a routine commit to the SVN server (I use beanstalk), I got this error message: “Error while performing action: commit failed (details follow): Checksum mismatch for …” Very annoying.

Temporary Fix
The temporary fix is to check out another copy of your project from the SVN server and copy/replace the file with the checksum mismatch. Then recommit and you should have no issue.

Permanent Fix (at least for Xcode projects)
You can set your subversion config file to ignore certain file types on commits. To do this, find your subversion/config file and set this property:

global-ignores = (and set whatever file types you want)

You can use wildcards like * as well. So in my case, for the example shown above in the screenshot, I added *.perspective* to my global-ignores property. Should fix that issue!

To quickly find the config file on a mac, open the terminal and type:

cd ~/.subversion/
open config

On a PC, I believe it’s located here (but I have not verified):

C:\Documents and Settings\<user>\Application Data\Subversion

I hope all this helps!

About Brad

Brad is a tech professional and hobbiest. He's a husband, father, and a Mormon. Connect with Brad on Google+

Share

Simple iPhone Tutorial: Password Management using the keychain by using SFHFKeychainUtils

May 23rd, 2010 14 comments

Keychain is really a pain to use, and I didn’t want to spend the time to figure it all out, so I went looking for a framework that would do the dirty work for me. I found SFHFKeychainUtils and it has been super slick! In this tutorial, I’ll show you how to leverage SFHFKeychainUtils in order to save a username/password to keychain and also retrieve the password given the username. Just follow these simple steps:

1. Get SFHFKeychainUtils

I found it on GitHub at http://github.com/ldandersen/scifihifi-iphone/tree/master/security/ – just get the SFHFKeychainUtils.h and SFHFKeychainUtils.m files and add them to your project.

2. Import it

In the implementation file where you want to save or retrieve the password, be sure you import the SFHF Keychain Utils header file as shown below:

#import “LoginViewController.h”
#import “SFHFKeychainUtils.h”
@implementation LoginViewController

3. Save a Username/Password

xCode SFHFKeychainUtils iPhone Keychain Example





Here you can see how simple it is to add the username/password to the iPhone’s keychain. The storeUsername:andPassword:forServiceName:updateExisting:error method will take care of all the work for us if we give it the correct parameters. I am getting the username and password from two UITextFields in the app called usernameField and passwordField, respectively. The Service Name can be anything you want, as long as you remember it as you’ll need to enter that same string value in order to retrieve the password (see step 4).

4. Retrieve the Password from Keychain

xCode SFHFKeychainUtils iPhone Keychain Example




As you can see, it’s not any more difficult to retrieve the password from keychain using SFHFKeychainUtils. I specified my username “Gorgando” and the same service name we used before “myApp”. The password that corresponds to this username and service name in the keychain will be returned as an NSString.

So don’t be afraid to use the keychain! It is the most secure way to store passwords in an iPhone application. Both plists and the Settings.Bundle are very insecure ways to store passwords because the passwords are stored in plaintext, visible to anyone who accesses them. Let me know if you have any questions – good luck!

About Brad

Brad is a tech professional and hobbiest. He's a husband, father, and a Mormon. Connect with Brad on Google+

Share

iPhone App Crashes on Device but Runs Fine in Simulator

March 27th, 2010 1 comment

This was weird today. My iPhone app was crashing when I ran it, and it crashed for some other people (but not for everyone). This was right after a new JSON was being loaded by the application. So I got into xCode and ran it on my emulator. It worked fine. I hooked up xCode to my iPod Touch and ran the application to the iPod. Sure enough it was crashing like crazy. I spent 3 hours trying to fix a phantom memory problem. I still haven’t fixed it, but I learned one thing. Restart your device, and the problem is “solved”. I put that in quotes because I’m sure it will rear its ugly head again if not identified and fixed correctly, but that was a temporary fix that tells me it must be some kind of memory issue. I’ll post later (or comment) if I discover the true root of this.

About Brad

Brad is a tech professional and hobbiest. He's a husband, father, and a Mormon. Connect with Brad on Google+

Share
Categories: iPhone Dev Tags: , ,