install two versions of almost the same app...?

Discussion in 'iOS Programming' started by MACloop, Oct 6, 2009.

  1. MACloop macrumors 6502

    Joined:
    May 18, 2009
    Location:
    Germany
    #1
    Hello everybody!
    Is there a way to be able to install an app twice on the same iphone. I have two versions of the same app with very small differences and one is thought to be a demo version and the other one a normal version. I have to have them both installed on my iPhone at the same time. Is that possible? I have tried to change name on the demo version but even if the .app file and everything else in really names appnameDemo it will overwrite the other version and vice versa... Setting ut a totally new project is alot of work, and I thought I rather ask if someone knows a trick for this?

    Thanks in advance!
    -loop-
     
  2. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #2
    Did you change the reverse DNS app ID (com.yourdomain.app)? If not then they will be treated as the same app.
     
  3. MACloop thread starter macrumors 6502

    Joined:
    May 18, 2009
    Location:
    Germany
    #3
    Hi and thanks for your answer. No, actually had not done that!
    ...how do I do that? I tried to simply give it a new name, but this caused the provisoning profile not to work any more...hmmm. Do I have to make a new profile?
     
  4. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #4
    Depends on your profile: did you create an app specific profile or a wildcard profile?
     
  5. MACloop thread starter macrumors 6502

    Joined:
    May 18, 2009
    Location:
    Germany
    #5
    The profile is app specific... is the best way to solve it to create another one?
     
  6. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #6
    Yes, or create a wildcard one and use that for both (and any future) apps. I initially created an app specific one then realised that a wildcard one would be much more useful so created that.

    Instructions are on the Developer Portal for creating a wildcard profile...
     
  7. MACloop thread starter macrumors 6502

    Joined:
    May 18, 2009
    Location:
    Germany
    #7
    Thanks for the advice! I will go into the portal and read about this wildcard thing. It seems to be what I am looking for.
     
  8. brianminor macrumors newbie

    Joined:
    Nov 12, 2009
    #8
    Here are the steps that I did to get it to work for me. You can also see video of the process on my blog

    http://www.brianminor.com/2009/11/12/installing-the-same-app-twice-on-the-iphone/


    Directions

    1. Open iTunes
    2. Go into the Application section
    3. Right click on the application you want to duplicate
    4. Select Show in Finder (Show in Explorer on PCs)
    5. Right click on the .ipa file and copy it to you desktop (or where every you’d like)
    6. Replace the .ipa with .zip – An IPA files is just another type of a .Zip file
    7. Un-compress the zip file
    8. Open the new folder and Go into the Payload folder
    9. Right click on the App and select show package contents (MAC ONLY STEP, Should just be a folder on the Windows)
    10. Find the Info.plist files and open it in you favorite editor. (I prefer Plist Editor Pro)
    11. Change the “Bundle display” name to whatever you’d like. This is the name that will be displayed on the iPhone (optional step)
    12. Change the “Bundle identifier” (I recommend just putting a 2 at the end.)
    13. Save the file
    14. Open your favorite FTP software and connect into your iPhone/iPod Touch
    15. Navigate to the root directory and then into the Application folder
    16. Transfer the application into this folder
    17. Reboot or Respiring your iPhone/iPod and the application should now be somewhere on your home-screen
    18. Open the App and enjoy
     
  9. firewood macrumors 604

    Joined:
    Jul 29, 2003
    Location:
    Silicon Valley
    #9
    The ftp stuff won't work on a stock OS developer device.

    Change the app ID slightly in XCode, and get a new provision using a wildcard profile.
     

Share This Page