Development

Installing iPhone OS 4.0 beta on the iPhone 3GS

The recent announcement of iPhone OS 4.0 beta brought some interested features for developers. I’m still pretty new to iPhone development and was trying to figure out how to update my phone. Below are the instructions once you’ve downloaded the IPSW file to update the firmware.

Installing iPhone 4.0 beta on the iPhone

  1. Make sure to have downloaded the iPhone 4.0 beta firmware that relates to your iPhone (e.g. 3GS).
  2. Extract the firmware IPSW to a folder.
  3. Connect the iPhone to your computer.
  4. Get the UDID registered on the iPhone Developer program. Provisioning Portal > Devices > Add Devices
  5. Open iTunes and click Restore while holding the Shift key (for Windows) or Option key (for Mac).
  6. Locate or browse to the firmware IPSW.
  7. Wait for iTunes to unpackage and install the firmware.

UDID can be view in 2 ways:

  1. In Xcode, navigate to the ‘Window’ drop down menu and select
    ‘Organizer’. The 40 hex character string in the Identifier field is your
    device’s UDID.
  2. OR In iTunes, select your device in the ‘Devices’ section and navigate to
    the Summary tab. Click on the Serial Number label to reveal the
    Identifier field and the 40 character UDID. Press Command+C to copy the
    UDID to your clipboard.
Standard
Links

links for 2010-04-09

Standard
Links

links for 2010-04-08

Standard
Development

Quick way to create patch files based on modified date with xcopy

Recent projects and deployment method made it difficult to simply publish changes to a web server. Had been doing it manually (check for modified files, copy and transfer) and thought it was wasting too much time each day when change requests occur. After some quick research, I realized that the simplest method would just be to use the good old “xcopy” command in windows. (this is why command prompt tools should be taught in schools). For a quick refresher on batch commands, read http://www.computerhope.com/batch.htm.

I realize that a proper source control (like Git or Subversion) would be nicer but in my case, a simple batch file is just easier to work with.

Copy and paste the following code in your deployment folder that will create a patch folder based on last modified dates of working files.

[START EVENT.BAT]

@echo off
REM – http://www.computerhope.com/batch.htm
ECHO Usage : events [patch-num] [m-d-y]

SET SRC=c:xampphtdocsevents
SET DEST=c:deploymentevents

IF (%1)==() GOTO END
IF (%2)==() GOTO TODAYDATE

ECHO Copying files modified on %2
xcopy %SRC% %DEST%%1 /D:%2 /S /C /I /Y
GOTO END

:TODAYDATE
FOR /F “tokens=1-5 delims=/ ” %%a in (“%date%”) DO SET year=%%c
FOR /F “tokens=1-5 delims=/ ” %%a in (“%date%”) DO SET month=%%b
FOR /F “tokens=1-5 delims=/ ” %%a in (“%date%”) DO SET day=%%a

SET TODAY=%month%-%day%-%year%
ECHO Copying files modified on %TODAY%

xcopy %SRC% %DEST%%1 /D:%TODAY% /S /C /I /Y

:END
@echo on

[END EVENT.BAT]

Standard
Links

links for 2010-04-07

Standard
Links

links for 2010-04-06

Standard
Links

links for 2010-04-05

Standard
Links

links for 2010-04-01

Standard
Links

links for 2010-03-31

Standard