Re: Building iPhone application as backward compatible
Re: Building iPhone application as backward compatible
- Subject: Re: Building iPhone application as backward compatible
- From: Clark Cox <email@hidden>
- Date: Tue, 28 Jul 2009 10:10:49 -0700
On Tue, Jul 28, 2009 at 3:24 AM, Mahaboob<email@hidden> wrote:
> I developed an iPhone application using iPhone OS 3.0 and build it against
> iPhone OS 2.2. The application uses MessageUI.Framework It is tested in
> simulator 3.0. Then from simulator,I changed the Hardware version to 2.2 and
> is working fine. My iPhone is having the OS version 2.2. Now I need to test
> the application in iPhone without upgrading the OS.
> How can I do it ?
> When I'm debugging the application by selecting the Active SDK to iPhone
> Device 2.2, it yields a lots of errors.
iPhone questions should be asked at
<https://devforums.apple.com/community/iphone>
However, in general, when building to support multiple versions of the
OS (whether for the Mac or for the iPhone), you *always* build against
the SDK that contains the APIs that you need (i.e. you don't set the
Active SDK to the earlier SDK when building). You then need to make
sure that your deployment target is set to the earliest OS version
that you want to support. Additionally, any frameworks that don't
exist in the earlier version must be weak-linked as well.
--
Clark S. Cox III
email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden