From 4ec34cd1fbf8ae4ff0ef82727b394d714da93522 Mon Sep 17 00:00:00 2001 From: "Justin R. Miller" Date: Wed, 6 May 2015 09:41:20 -0700 Subject: [PATCH] refs #1426: add dummy source file to workaround CocoaPods 0.37.0 bug --- ios/MapboxGL.podspec | 2 +- scripts/ios/package.sh | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ios/MapboxGL.podspec b/ios/MapboxGL.podspec index 3529e3c00..90257c82d 100644 --- a/ios/MapboxGL.podspec +++ b/ios/MapboxGL.podspec @@ -22,7 +22,7 @@ Pod::Spec.new do |m| m.requires_arc = true m.preserve_paths = '**' - m.source_files = 'Headers/*.h' + m.source_files = 'Headers/*.h', 'MGLDummy.m' m.resource_bundle = { 'MapboxGL' => 'MapboxGL.bundle/*' } m.vendored_library = 'libMapboxGL.a' diff --git a/scripts/ios/package.sh b/scripts/ios/package.sh index 0f190d45b..7691b0c5f 100755 --- a/scripts/ios/package.sh +++ b/scripts/ios/package.sh @@ -85,6 +85,9 @@ for i in `ls -R include/mbgl/ios | grep -vi private`; do cp -pv include/mbgl/ios/$i "${OUTPUT}/static/Headers" done +step "Setting up dummy source file for CocoaPods 0.37.0..." +echo "// https://github.com/mapbox/mapbox-gl-native/issues/1426" > "${OUTPUT}/static/MGLDummy.m" + # Manually create resource bundle. We don't use a GYP target here because of # complications between faked GYP bundles-as-executables, device build