phonegap

 

Remove PhoneGap References

Page history last edited by rborn 8 mos ago

To avoid rejection from appstore as using private api, you can follow next steps to remove PhoneGap references:

 ( considering our app named “Myapp“)

1. copy the phonegap project to another folder - Myapp.

2. change PhoneGap_Prefix.pch file name to Myapp_Prefix.pch

3. Change PhoneGap.xcodeproj file name to Myapp.xcodeproj

4. Delete the build folder

5. Rightclick on Myapp.xcodeproj ->Show Package Contents

6. Open your_user.pbxuser with a texteditor(textmate ?) and do a search replace for all  PhoneGap to Myapp ( no matter if is alone or inside a string).

7. Open project.pbxproj with a texteditor and do a search replace for allPhoneGap to Myapp ( no matter if is alone or inside a string).

8. Open MainWindow.xib with a texteditor and do a search replace for allPhoneGap to Myapp ( no matter if is alone or inside a string).

9. Open Myapp.xcodeproj in Xcode.

10. Rename here, in Xcode using rightclick-> rename all the files in Classesfolder that contains PhoneGap in name with Myapp ( for example PhoneGapDelegate.h to MyappDelegate.h )

11. File by file, in folder Classes, replace inside any PhoneGap string withMyapp

12. Do a Clean all.

13. Do a Build and Go.

Paul Prescod turned it into a Python script available here: 

http://phonegap.pbwiki.com/f/phoneungap.py 

Comments (7)

profile picture

Josiah said

at 1:12 pm on May 11, 2009

What about the phonegap.js file? Is there a need to change that?

profile picture

rborn said

at 1:43 pm on May 11, 2009

@Josiah
Using the python script will rename the phonagap.js too. I think is better too.

profile picture

Josiah said

at 3:17 pm on May 11, 2009

How do I use the Python script?

profile picture

Radu said

at 5:11 am on Aug 7, 2009

I followed the steps but it seems it will get the page from www/index.html of the original project. Is this working with the last version (EDGE) or only woth the stable version?

profile picture

Scott Motte said

at 5:25 pm on Aug 17, 2009

The script does not rename the phonegap.js file. You have to do that manually. Currently the script breaks things on edge and on stable from my tests. It will load up the app, but the beeping sound won't happen - it will render in debug, but it won't actually occur. This is the same for the other features. Something got overwritten that shouldn't have is my guess. I'm working on solving this issue. Meanwhile, I've put my slightly updated script up on http://github.com/scottmotte/phoneungap/tree/master

profile picture

Scott Motte said

at 5:32 pm on Aug 17, 2009

It seems it actually takes the first call, but won't take any calls after that - like it is getting stuck in an infinite loop or crashing along the way somewhere. For example, after booting up fresh to the simulatr I can click 'custom alert' once and be successful, but I cannot click it again. This probably explains why the beep button show active in debug but did not play the sound.

profile picture

John Koutsoyannis said

at 7:48 am on Sep 23, 2009

i'm using xcode 3.1, and these instructions end up giving me like 97 errors.. Scott's script is better, but I still get an error that I can't figure out: sh: ./build-iqtest.sh: Permission denied.

The file looks like it just wants to copy the phonegap.js file to a target directory.. . Any updates on that nifty python script? :)

You don't have permission to comment on this page.