Removing PhoneGap from the iOS Hybrid Web Container

Remove all references to the PhoneGap library that is linked to the iOS Hybrid Web Container.

Leaving PhoneGap in place does not cause any issues, but does increase overall application size by about 400KB.
  1. In Xcode, open the HWCAppDelegate.h file and comment out this line:
    #define USE_PHONEGAP 1
  2. In the Build Settings tab, for the Hybrid App project under Other Linker Flags, remove libPhoneGap.a for all build configurations.
  3. Under Warning Linker Flags remove libPhoneGap.a for all build configurations.
  4. In Project Navigator, remove references to these files:
    • VERSION
    • PhoneGap.plist
  5. In Xcode, in Project Navigator, remove the reference to the www directory.
  6. In Xcode, in Project Navigator, remove the reference to the Capture.bundle directory.
  7. Clean and rebuild the project for all configurations.