PDA

View Full Version : Differentiate between Full and Lite versions




imPoddible
May 10, 2009, 12:54 PM
Hello all,

I have an app in the store and have started work on a lite version.

I'm using the same codebase and only need to make minor changes to turn the full version into a lite version.

I've changed the bundle identifier and the target name, but when I deploy the debug build to my iPhone, it overwrites the full version! I was expecting to see both versions side by side.

It's almost as if it's being treated as the same app and not a different version.

What else do I have to change in the project to fully differentiate my lite version from the full version?

Thanks!

imPoddible



kainjow
May 10, 2009, 02:38 PM
Probably need to change the Product Name as well. Get Info your target and click on the Build tab. The target's name is just used internally for Xcode. Product Name affects the actual .app.

Niiro13
May 10, 2009, 03:00 PM
I always do things the long way (but the sure way) and create a whole new project, copy and paste the files, then change them to lite.

kainjow
May 10, 2009, 04:02 PM
I always do things the long way (but the sure way) and create a whole new project, copy and paste the files, then change them to lite.

That's overkill. Just duplicate the target within Xcode and change a few things. If you need to remove things from the lite version, setup preprocessor macros (can be done in Xcode directly) and remove any necessary files from the lite's target.

imPoddible
May 10, 2009, 04:39 PM
That's overkill. Just duplicate the target within Xcode and change a few things. If you need to remove things from the lite version, setup preprocessor macros (can be done in Xcode directly) and remove any necessary files from the lite's target.

Cool - thanks for the advice. I'll try this now.

I was thinking that I'd have to set up new certificates or something in the Program Portal... :rolleyes:

imPoddible.

imPoddible
May 10, 2009, 07:40 PM
Dang!

I still get the same problem - I've changed the bundle ID and target, I've changed the Product Name, too via 'info' on the build tab and duplicated the target.

I've also cleaned targets but when I build and go, it overwrites the other app.

So I cannot have my full version and the lite version on the iPhone at the same time. Very frustrating.

Any other suggestions?

In reality, I wouldn't *expect* the user to have both versions on his device... but it's a bad idea to submit like this, isn't it?

imPoddible

kainjow
May 10, 2009, 08:35 PM
Looking at my previous project where I did this, I also had a different Bundle Name for both versions, which you set in the Info.plist file (which you should have two of), so you could try that.

RodThePlod
May 11, 2009, 05:57 PM
Any other suggestions?

In reality, I wouldn't *expect* the user to have both versions on his device... but it's a bad idea to submit like this, isn't it?


I ran into the same problem while testing the lite version of my app.

Try creating a new provisioning profile. This was how I got around it as I was then able to specify a new bundle identifier (com.blah.blah).

I don't know if this is the 'proper' way to resolve this prob but it has certainly worked for me.

Cheers,

RTP.

imPoddible
May 12, 2009, 06:29 AM
Try creating a new provisioning profile. This was how I got around it as I was then able to specify a new bundle identifier (com.blah.blah).

Yesssss!!!! This worked for me. I am now able to build and deploy both Lite and full versions of my app to the iPhone independently :D

Thanks for all advice and suggestions!

imPoddible.