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.
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
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
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:
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
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.