{
  'includes': [
    '../../../common.gypi',
    '../../../config.gypi'
  ],
  'targets': [
    {
        "target_name": "iosapp",
        "product_name": "Mapbox GL",
        "type": "executable",
        "sources": [
            "./main.m",
            "./MBXAppDelegate.h",
            "./MBXAppDelegate.m",
            "./MBXViewController.h",
            "./MBXViewController.mm",
            '<!@(find ../mapbox-gl-cocoa -type f -name "*.h")',
            '<!@(find ../mapbox-gl-cocoa -type f -name "*.m")',
            '<!@(find ../mapbox-gl-cocoa -type f -name "*.mm")',
            "../../../common/settings_nsuserdefaults.hpp",
            "../../../common/settings_nsuserdefaults.mm",
            "../../../common/foundation_request.h",
            "../../../common/foundation_request.mm",
            "../../../common/nslog_log.hpp",
            "../../../common/nslog_log.mm",
        ],
        'product_extension': 'app',
        'mac_bundle': 1,
        'mac_bundle_resources': [
          '<!@(find ./img -type f)',
          '<!@(find ../mapbox-gl-cocoa/Resources -type f)',
        ],
        'link_settings': {
          'libraries': [
            '$(SDKROOT)/System/Library/Frameworks/CoreGraphics.framework',
            '$(SDKROOT)/System/Library/Frameworks/CoreLocation.framework',
            '$(SDKROOT)/System/Library/Frameworks/GLKit.framework',
            '$(SDKROOT)/System/Library/Frameworks/OpenGLES.framework',
            '$(SDKROOT)/System/Library/Frameworks/UIKit.framework'
          ],
        },
        'xcode_settings': {
          'SDKROOT': 'iphoneos',
          'SUPPORTED_PLATFORMS':['iphonesimulator','iphoneos'],
          'ARCHS': [ "armv7", "armv7s", "arm64", "i386" ],
          'INFOPLIST_FILE': 'Info.plist',
          'CLANG_CXX_LIBRARY': 'libc++',
          'CLANG_CXX_LANGUAGE_STANDARD':'c++11',
          'IPHONEOS_DEPLOYMENT_TARGET':'7.0',
          'TARGETED_DEVICE_FAMILY': '1,2',
          'GCC_VERSION': 'com.apple.compilers.llvm.clang.1_0',
          'CLANG_ENABLE_OBJC_ARC': 'YES'
        },
        'configurations': {
          'Debug': {
            'xcode_settings': {
              'CODE_SIGN_IDENTITY': 'iPhone Developer',
            }
          },
          'Release': {
            'xcode_settings': {
              'CODE_SIGN_IDENTITY': 'iPhone Distribution',
            }
          }
        },
        "dependencies": [
            "../../../mapboxgl.gyp:bundle_styles",
            "../../../mapboxgl.gyp:mapboxgl-ios"
        ]
    }
  ]
}
@@ -686,24 +686,76 @@
 faults.mm%22,%0A
+            %22../../../common/platform_nsstring.mm%22,%0A
             

add nsstring platform file