Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 05-24-2009, 10:05 AM   #26 (permalink)
Developer
 
Join Date: Sep 2008
Posts: 34
Default

Quote:
Originally Posted by brendand View Post
Did you include Icon.png and iconVersionB.png in both targets? Make sure that each one is in its own target so that your bundle will only include one or the other, but never both.
I included both by mistakes. Since on my tests the icons looked correctly on the device, I will upload a new version without both files to see what happens. I only hope it works, because if not, I will be having an iconless app on the listing. Here are the 3 apps from the same project, with 3 different targets. I explained my problem with 2 targets, just to make the example easier, but the actual problem is with 3 apps. So one app has the correct icon on the app store on the device, the other 2 do not.

Bad Icon
iTunes Store/Bubble Level

Bad Icon
iTunes Store/TiltMeter

Good Icon
iTunes Store/TiltMeter Pro

http://www.tiltmeterapp.com
__________________
http://www.tiltmeterapp.com
My Apps: Tilt Meter Pro
:apple:Unibody MacBook Pro 2.53GHz, 4GB RAM, 300GB HD;
24" Aluminum :apple:iMac, 2.4GHz,2GB RAM, 300GB HD; 15" :apple:iPhone 3G 16GB

Last edited by CarlosH; 05-24-2009 at 10:09 AM.
CarlosH is offline   Reply With Quote
Old 05-25-2009, 04:02 AM   #27 (permalink)
Registered Member
 
Join Date: Aug 2008
Posts: 267
Default

Quote:
Originally Posted by roocell View Post
always grateful of rickmaddy's answers.
I tried this, but i just get
"failed to launch simulated appliation: unknown error"
when i try to launch my new lite target.

when creating the target, so i have to specify what to build?
I tried adding my full version app as a dependency, but that didnt work either.
I am getting the failed to launch error.
I duplicated the target, and the new plist was automatically created. The attributes appear to be under "Root", which is different from the original, non light version.
I changed:
CFBundleDisplayName
CFBundleExecutable
CFBundleIconFile
and CFBundleIdentifier
advice?

EDIT: I get this for both the lite and full versions
ghost is offline   Reply With Quote
Old 05-26-2009, 05:38 PM   #28 (permalink)
Developer
 
Join Date: Sep 2008
Posts: 34
Default

Quote:
Originally Posted by brendand View Post
Did you include Icon.png and iconVersionB.png in both targets? Make sure that each one is in its own target so that your bundle will only include one or the other, but never both.
So I uploaded the new targets, without the icon.png files on the this targets. I got an error on iTunes Connect, telling me that the bundle had no icon. So checking my other 2 targets info.plist files, I found out that I hadn't set the icons file extension(On the info.plist list), so the other 2 files were, iconVersionB, and iconVersionC. I changed them to iconVersionB.png, and iconVersionC.png, and got no errors when submitting. I only hope that the icons appears correctly on the AppStore.
__________________
http://www.tiltmeterapp.com
My Apps: Tilt Meter Pro
:apple:Unibody MacBook Pro 2.53GHz, 4GB RAM, 300GB HD;
24" Aluminum :apple:iMac, 2.4GHz,2GB RAM, 300GB HD; 15" :apple:iPhone 3G 16GB
CarlosH is offline   Reply With Quote
Old 09-24-2009, 03:12 PM   #29 (permalink)
Registered Member
 
Join Date: May 2009
Posts: 16
Default

Quote:
Originally Posted by eduz View Post
Hey RickMaddy, thanks for the tip!!! Helped a lot.

Here is another tip: How to maintain two Default.png files, one for the full version and another for the Lite version in the same project:

- Create a Default.png file for the full version and a DefaultLite.png file for the Lite version. Add both to the Resources folder in your xcode project.
- Right click on your lite app Target, click Add, New Build Phase, New Run Script Build Phase.
- Paste this code in the script field:
Code:
mv ${TARGET_BUILD_DIR}/${CONTENTS_FOLDER_PATH}/DefaultLite.png ${TARGET_BUILD_DIR}/${CONTENTS_FOLDER_PATH}/Default.png
- Move the "Run Script" phase you just created right after to "Copy Bundle Resources"

That's it, everytime you build the project with the Lite app target it will copy the DefaultLite.png and rename it to Default.png in your build dir.
Thanks for this tip. I was trying to find the configuration setting for Default.png and obviously couldn't.

BTW, don't forget to quote your filenames (in case you have a like version of your app named "MyApp Lite").
Blistered is offline   Reply With Quote
Old 12-09-2009, 03:05 AM   #30 (permalink)
Registered Member
 
Join Date: Jan 2009
Location: California
Posts: 198
Default

I tried this, and I'm getting 3000 errors when building the Lite version. Here's a sample of the errors. Must be something trivial... if someone can suggest something, that would be great:

In file included from /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:8,
from /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAccelerometer.h:8,
from /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:9:
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:146: error: expected identifier or '(' before '@' token
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:148: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:149: error: expected ')' before '*' token
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:151: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:152: error: expected ')' before '*' token
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:154: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:155: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:159: error: expected ')' before '*' token
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:160: error: expected ')' before '*' token
__________________
Check out my apps:

Contacts Journal

Contacts Journal Lite

Contacts Journal - iPad Edition

Contact Notes

Also visit my Tumblr blog about iPhone development.
zulfishah is online now   Reply With Quote
Old 12-09-2009, 03:29 AM   #31 (permalink)
Registered Member
 
Join Date: Jan 2009
Location: California
Posts: 198
Default

Figured it out. Had to manually add the GCC_PREFIX_HEADER setting that I had defined in the SimpleList target, to the SimpleListLite target settings. Weird, since I thought it would duplicate this for me when I did added the Lite target, but oh well. Hope that helps someone who runs into this.
__________________
Check out my apps:

Contacts Journal

Contacts Journal Lite

Contacts Journal - iPad Edition

Contact Notes

Also visit my Tumblr blog about iPhone development.
zulfishah is online now   Reply With Quote
Old 10-14-2010, 06:43 PM   #32 (permalink)
Registered Member
 
Join Date: Oct 2010
Posts: 2
Default How To: Create A Lite Version of your iPhone App

I agree with using compiler flags, keeps code simple and clean.

I've put together a detailed tutorial on how to setup the environment properly. If you want, check it out at

How To: Create A Lite Version of your iPhone App | Chris Fletcher's Blog
cfletcher80 is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 355
22 members and 333 guests
ADY, Dani77, Duncan C, e2applets, Grinarn, HemiMG, Herbie, JasonR, keeshux, linkmx, macquitzon216, mer10, Monstertaco, prchn4christ, Promo Dispenser, Robiwan, sebasx, sly24, Touchmint, twerner, zulfishah
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,881
Threads: 89,228
Posts: 380,760
Top Poster: BrianSlick (7,129)
Welcome to our newest member, macquitzon216
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 01:37 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0