IGNORE THIS STEP AS LONG AS YOU ARE USING PHONEGAP VERSION 0.8.0 THIS VERSION OF PHONEGAP HAS RECENTLY BEEN ACCEPTED BY APPLE.
This article was lifted from this blog post: http://cssgallery.info/change-phonegap-project-to-reflect-your-app-name/
Introduction
Phonegap is a nice framework for web developers. It helps to build a native iPhone (and other devices) app using what you already know. But the submission to Appstore can be a pain due to some app reviewers that consider PhoneGap as a “private api”. The single way to avoid this is to change any reference to PhoneGap inside the code. It is not simple, but it can save you few weeks of waiting.
Steps:
First consider that our app is named Myapp.
- Copy the PhoneGap project to another folder - Myapp
- Change PhoneGap_Prefix.pch file name to Myapp_Prefix.pch
- Change PhoneGap.xcodeproj file name to Myapp.xcodeproj
- Delete the build folder
- Right click on Myapp.xcodeproj ->Show Package Contents
- Open your_user.pbxuser with a text editor and do a search and replace for all PhoneGap to Myapp (no matter if is alone or inside a string)
- Open project.pbxproj with a text editor and do a search and replace for all PhoneGap to Myapp (no matter if is alone or inside a string)
- Open MainWindow.xib with a text editor and do a search and replace for all PhoneGap to Myapp (no matter if is alone or inside a string)
- Open Myapp.xcodeproj in Xcode
- In Xcode, use rightclick->rename all the files in the Classes folder that contains PhoneGap to Myapp (for example PhoneGapDelegate.h to MyappDelegate.h)
- File by file, in the folder Classes, replace inside any PhoneGap string with Myapp
- Rename PhoneGap.plist to Myapp.plist
- Do a Clean all
- Do a Build and Go (and pray
)