views:

1941

answers:

3

hi Guys,

I'm working on an iphone project for OS3.1.3. I updated my iPhone to iOS4 and now I can't test my project on my iPhone anymore. I tried downgrading but get "device not eligible"

What should I do now?

If I download latest XCode SDK4 will I be able to recreate my app so that it runs both on OS3 and OS4 ? It has no specific os4 features.. it should just run on both and want to test it on real iphone with os4..

Greets

A: 

Hi Thomas

First of all, downgrading your phone won't work. at least not with the "official" approach. I think once there is a Jailbreak for iOS4, downgrading your phone should be possible again.

secondly, Creating an iOS app with XCode SDK4 that runs on your 3.x devices is no problem at all:

just set the "iPhone OS Deployment Target" Value (Target -> Info -> Build) to "iPhone OS 3.0"

greets sam

samsam
All right, the app has no specific iOS4 features, so if I build and test on my 3gs with iOS4 it will perform the same as on a 3gs with OS3? I don't have an OS3 iPhone atm because the downgrading failed :)Greets
Thomas Joos
yep it will. XCode might give you some compilerwarnings of code that is deprecated under 4.0 (for example the SetStatusBarHidden method), there you could check within your sourcecode wether the current device responds to the new methods, you can do that by calling [self respondsToSelector...)
samsam
Thanks a million Sam!
Thomas Joos
-1: You can never downgrade an iPhone 3GS unless you have your SHSH blobs saved: see http://saurik.com/id/12
chpwn
Pity everything always comes down to jailbreaking with Apple... at least its legal now. Imagine how much people would hate it if jailbreaking wasn't possible..
WalterJ89
A: 

You can build with SDK4 and still target older devices running iOS 3.2 or earlier. How to do this is covered in detail in this other question here.

You can downgrade your phone OS, that's covered in this question over here.

But really the best approach is to update Xcode, compile with SDK4 and support earlier iOS versions as well.

progrmr
A: 

I'm in the same situation.

What is the best ? 1 Upgrade to SDK4 and still target on IOS 3.xx . Will iPhone ios 3.1.3 users be able to download apps built with SDK4 . I don't think so. 2 Downgrade ios4 to ios3 and still work with SDK3.

PS : Someone suggested to get the lastest SDK

raychenon