summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ios/MapboxGL.podspec2
-rwxr-xr-xscripts/ios/package.sh3
2 files changed, 4 insertions, 1 deletions
diff --git a/ios/MapboxGL.podspec b/ios/MapboxGL.podspec
index 3529e3c006..90257c82d3 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 0f190d45ba..7691b0c5f3 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