refs #1426: add dummy source file to workaround CocoaPods 0.37.0 bug

This commit is contained in:
Justin R. Miller
2015-05-06 09:41:20 -07:00
parent 0b8eaabadb
commit 4ec34cd1fb
2 changed files with 4 additions and 1 deletions

View File

@@ -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'

View File

@@ -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