Skip to content

Instantly share code, notes, and snippets.

@carmichaelalonso
Created March 22, 2015 09:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save carmichaelalonso/a8e4e43a5b6faf797ab7 to your computer and use it in GitHub Desktop.
Save carmichaelalonso/a8e4e43a5b6faf797ab7 to your computer and use it in GitHub Desktop.
Shell script for removing tessmono.o from WhirlyGlobeMaply. Caused duplicate symbol because of identical file included in GoogleMaps framework, hence removal from WhirlyGlobeMaply.
#!/bin/bash
cd WhirlyGlobeMaplyComponent.framework
lipo Versions/Current/libWhirlyGlobeMaplyComponent.a -thin armv7 -output Whirly.armv7
lipo Versions/Current/libWhirlyGlobeMaplyComponent.a -thin i386 -output Whirly.i386
xcrun -sdk iphoneos lipo Versions/A/libWhirlyGlobeMaplyComponent.a -thin armv7s -output Whirly.armv7s
xcrun -sdk iphoneos lipo Versions/A/libWhirlyGlobeMaplyComponent.a -thin arm64 -output Whirly.arm64
ar -d -sv Whirly.armv7 tessmono.o
ar -d -sv Whirly.armv7s tessmono.o
ar -d -sv Whirly.i386 tessmono.o
ar -d -sv Whirly.arm64 tessmono.o
lipo Whirly.armv7 Whirly.armv7s Whirly.i386 Whirly.arm64 -create -output libWhirlyGlobeMaplyComponent.a
rm Versions/Current/libWhirlyGlobeMaplyComponent.a
mv libWhirlyGlobeMaplyComponent.a Versions/Current
rm Whirly.armv7
rm Whirly.armv7s
rm Whirly.i386
rm Whirly.arm64
echo "Done!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment