...
|
...
|
@@ -640,7 +640,7 @@ |
|
|
);
|
|
|
runOnlyForDeploymentPostprocessing = 0;
|
|
|
shellPath = /bin/sh;
|
|
|
shellScript = "# Script that builds a static framework with debug and release versions\n# The framework works in both the simulator and devices\n# This script does not consider the selected active build. It builds everything!\n#\n# You can just drop the resulting framework in your project and it'll work whatever your build type\n\necho \"Starting build of ${PRODUCT_NAME} framework\"\n\nINFOPLIST_FILE=${SRCROOT}/source/Info.plist\n\nif [ -d \"build/${PRODUCT_NAME}.framework\" ]\nthen\n rm -rf \"build/${PRODUCT_NAME}.framework/*\"\nelse\n cp -R Canonical.framework \"build/${PRODUCT_NAME}.framework\"\nfi\n\necho \"Building iphonesimulator2.1 Debug\"\nxcodebuild -target \"${PRODUCT_NAME}\" -configuration Debug -sdk iphonesimulator2.1\necho \"Building iphoneos2.1 Debug\"\nxcodebuild -target \"${PRODUCT_NAME}\" -configuration Debug -sdk iphoneos2.1\necho \"Building iphonesimulator2.1 Release\"\nxcodebuild -target \"${PRODUCT_NAME}\" -configuration Release -sdk iphonesimulator2.1\necho \"Building iphoneos2.1 Release\"\nxcodebuild -target \"${PRODUCT_NAME}\" -configuration Release -sdk iphoneos2.1\n\necho \"Creating fat library for Debug\"\nlipo \"build/Debug-iphoneos/lib${PRODUCT_NAME}.a\" \"build/Debug-iphonesimulator/lib${PRODUCT_NAME}.a\" -output \"build/${PRODUCT_NAME}.framework/Versions/A/${PRODUCT_NAME}_debug\" -create\n\necho \"Creating fat library for Release\"\nlipo \"build/Release-iphoneos/lib${PRODUCT_NAME}.a\" \"build/Release-iphonesimulator/lib${PRODUCT_NAME}.a\" -output \"build/${PRODUCT_NAME}.framework/Versions/A/${PRODUCT_NAME}\" -create\n\necho \"Finishing packaging framework\"\nln -s \"Versions/A/${PRODUCT_NAME}\" \"build/${PRODUCT_NAME}.framework/\"\nln -s \"Versions/A/${PRODUCT_NAME}_debug\" \"build/${PRODUCT_NAME}.framework/\"\ncp Map/*.h \"build/${PRODUCT_NAME}.framework/Versions/A/Headers/\"\ncp -R Map/Resources/* \"build/${PRODUCT_NAME}.framework/Versions/A/Resources/\"\n/usr/libexec/PlistBuddy -c \"Set :CFBundleVersion ${VERSION}\" \"build/${PRODUCT_NAME}.framework/Versions/A/Resources/Info.plist\"\n\necho \"Completed build of ${PRODUCT_NAME} framework\"\n";
|
|
|
shellScript = "# Script that builds a static framework with debug and release versions\n# The framework works in both the simulator and devices\n# This script does not consider the selected active build. It builds everything!\n#\n# You can just drop the resulting framework in your project and it'll work whatever your build type\n\necho \"Starting build of ${PRODUCT_NAME} framework\"\n\nINFOPLIST_FILE=${SRCROOT}/source/Info.plist\n\nif [ -d \"${TARGET_BUILD_DIR}/${PRODUCT_NAME}.framework\" ]\nthen\n rm -rf \"${TARGET_BUILD_DIR}/${PRODUCT_NAME}.framework/*\"\nelse\n cp -R Canonical.framework \"${TARGET_BUILD_DIR}/${PRODUCT_NAME}.framework\"\nfi\n\necho \"Building iphonesimulator2.1 Debug\"\nxcodebuild -target \"${PRODUCT_NAME}\" -configuration Debug -sdk iphonesimulator2.1\necho \"Building iphoneos2.1 Debug\"\nxcodebuild -target \"${PRODUCT_NAME}\" -configuration Debug -sdk iphoneos2.1\necho \"Building iphonesimulator2.1 Release\"\nxcodebuild -target \"${PRODUCT_NAME}\" -configuration Release -sdk iphonesimulator2.1\necho \"Building iphoneos2.1 Release\"\nxcodebuild -target \"${PRODUCT_NAME}\" -configuration Release -sdk iphoneos2.1\n\necho \"Creating fat library for Debug\"\nlipo \"${TARGET_BUILD_DIR}/Debug-iphoneos/lib${PRODUCT_NAME}.a\" \"${TARGET_BUILD_DIR}/Debug-iphonesimulator/lib${PRODUCT_NAME}.a\" -output \"${TARGET_BUILD_DIR}/${PRODUCT_NAME}.framework/Versions/A/${PRODUCT_NAME}_debug\" -create\n\necho \"Creating fat library for Release\"\nlipo \"${TARGET_BUILD_DIR}/Release-iphoneos/lib${PRODUCT_NAME}.a\" \"${TARGET_BUILD_DIR}/Release-iphonesimulator/lib${PRODUCT_NAME}.a\" -output \"${TARGET_BUILD_DIR}/${PRODUCT_NAME}.framework/Versions/A/${PRODUCT_NAME}\" -create\n\necho \"Finishing packaging framework\"\nln -s \"Versions/A/${PRODUCT_NAME}\" \"${TARGET_BUILD_DIR}/${PRODUCT_NAME}.framework/\"\nln -s \"Versions/A/${PRODUCT_NAME}_debug\" \"${TARGET_BUILD_DIR}/${PRODUCT_NAME}.framework/\"\ncp Map/*.h \"${TARGET_BUILD_DIR}/${PRODUCT_NAME}.framework/Versions/A/Headers/\"\ncp -R Map/Resources/* \"${TARGET_BUILD_DIR}/${PRODUCT_NAME}.framework/Versions/A/Resources/\"\n/usr/libexec/PlistBuddy -c \"Set :CFBundleVersion ${VERSION}\" \"${TARGET_BUILD_DIR}/${PRODUCT_NAME}.framework/Versions/A/Resources/Info.plist\"\n\necho \"Completed build of ${PRODUCT_NAME} framework\"\n";
|
|
|
};
|
|
|
/* End PBXShellScriptBuildPhase section */
|
|
|
|
...
|
...
|
|