hooks/lib/ios/xcodePreferences.js
function loadProjectFile() {
  var platform_ios;
  var projectFile;

  try {
    // try pre-5.0 cordova structure
    platform_ios = context.requireCordovaModule('cordova-lib/src/plugman/platforms')['ios'];
    projectFile = platform_ios.parseProjectFile(iosPlatformPath());
  } catch (e) {
    // let's try cordova 5.0 structure
    platform_ios = context.requireCordovaModule('cordova-lib/src/plugman/platforms/ios');
    projectFile = platform_ios.parseProjectFile(iosPlatformPath());
  }

  return projectFile;
}
function loadProjectFile() {
  var platform_ios;
  var projectFile;

  try {
    // try pre-5.0 cordova structure
    platform_ios = context.requireCordovaModule('cordova-lib/src/plugman/platforms')['ios'];
    projectFile = platform_ios.parseProjectFile(iosPlatformPath());
  } catch (e) {
    // let's try cordova 5.0 structure
    platform_ios = context.requireCordovaModule('cordova-lib/src/plugman/platforms/ios');
    projectFile = platform_ios.parseProjectFile(iosPlatformPath());
  }

  return projectFile;
}
function loadProjectFile ( ) { var platform_ios ; var projectFile ; try { // try pre-5.0 cordova structure platform_ios = context . requireCordovaModule ( 'cordova-lib/src/plugman/platforms' ) [ 'ios' ] ; projectFile = platform_ios . parseProjectFile ( iosPlatformPath ( ) ) ; } catch ( e ) { // let's try cordova 5.0 structure platform_ios = context . requireCordovaModule ( 'cordova-lib/src/plugman/platforms/ios' ) ; projectFile = platform_ios . parseProjectFile ( iosPlatformPath ( ) ) ; } return projectFile ; }
region Xcode project file helpers 
Load iOS project file from platform specific folder.

@return {Object} projectFile - project file information
region Xcode project file helpers Load iOS project file from platform specific folder .