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

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

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

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.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 07-16-2011, 06:16 AM   #1 (permalink)
Registered Member
 
Join Date: May 2011
Posts: 12
HalfFull is on a distinguished road
Default Changing product name causes code to break?

Situation: I have completed my app ready for the app store and want to create a LITE version. With the lite version I have simple made a copy of the project and removed a few features. This works just fine.

Problem: Since editing the product name from 'MyApp' to 'MyAppLite' is when the problem occurs. In both versions, I am savings strings to an array (using NSUserDefaults). The main (original) app works, however the lite version does not save the strings (despite using the same code!). If I rename it to the original app name it works flawlessly.

I have a hunch that I need to edit something in info.plist or something similar but not entirely sure what. I'm not an experienced programmer so I'm relying on SO for help.

Thank you.
HalfFull is offline   Reply With Quote
Old 07-16-2011, 07:08 AM   #2 (permalink)
Registered Member
 
Join Date: Jul 2008
Posts: 459
NewiPhoneDeveloper is on a distinguished road
Default

Quote:
Originally Posted by HalfFull View Post
Situation: I have completed my app ready for the app store and want to create a LITE version. With the lite version I have simple made a copy of the project and removed a few features. This works just fine.

Problem: Since editing the product name from 'MyApp' to 'MyAppLite' is when the problem occurs. In both versions, I am savings strings to an array (using NSUserDefaults). The main (original) app works, however the lite version does not save the strings (despite using the same code!). If I rename it to the original app name it works flawlessly.

I have a hunch that I need to edit something in info.plist or something similar but not entirely sure what. I'm not an experienced programmer so I'm relying on SO for help.

Thank you.
Do not manually rename the app. Try going to "Build Settings" (where you set SDK version, certificates, etc...) and look for a line, named "product name". There you enter the new name of your app.

Let me know, if this works for you.
__________________
Websites:
Friendlydeveloper - Coding Blog
Codingsessions - Live iOS Training

iPhone Apps:
TextPal - Powerful group messaging,
icePhone

Find me on LinkedIn
NewiPhoneDeveloper is offline   Reply With Quote
Reply

Bookmarks

Tags
bundle, info.plist, iphone, nsuserdefaults

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: 402
16 members and 386 guests
blasterbr, buggen, Clouds, dre, EvilElf, HemiMG, jeroenkeij, jimmyon122, LEARN2MAKE, Mah6447, n00b, nyoe, pungs, Sami Gh, stanny, toon4413
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,667
Threads: 94,121
Posts: 402,900
Top Poster: BrianSlick (7,990)
Welcome to our newest member, host number one
Powered by vBadvanced CMPS v3.1.0

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