Removing PhoneGap from the iOS Hybrid Web Container

If PhoneGap functionality is not required, you can make a few modifications to remove all references to the PhoneGap library that is linked to the 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 WorkflowAppDelegate.h file and comment out this line:
    #define USE_PHONEGAP 1
  2. In the Build Settings tab, for the Workflow 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 the Workflow Project Navigator remove references to these files:
    • VERSION
    • PhoneGap.plist
  5. In Xcode, in the Workflow Project Navigator, remove the reference to the www directory.
  6. In Xcode, in the Workflow Project Navigator, remove the reference to the Capture.bundle directory.
  7. Clean and rebuild the Workflow project for all configurations.