Skip to content

Instantly share code, notes, and snippets.

@rajatmohanty
Last active May 21, 2017 15:47
Show Gist options
  • Select an option

  • Save rajatmohanty/ab28bbea2e13a8122d8fcbb5339b760e to your computer and use it in GitHub Desktop.

Select an option

Save rajatmohanty/ab28bbea2e13a8122d8fcbb5339b760e to your computer and use it in GitHub Desktop.
Script to create Static Library in Xcode (Both for Simulator & Device)
//Original Content : http://yourcodesucksexception.blogspot.in/2015/11/things-ive-learned-while-building-ios.html
xcodebuild -workspace PULPulsate.xcworkspace -scheme PULPulsate -sdk iphonesimulator -configuration Release
xcodebuild -workspace PULPulsate.xcworkspace -scheme PULPulsate -sdk iphoneos -configuration Release
mkdir -p ${TARGET_BUILD_DIR}/../PULPulsate${CURRENT_PROJECT_VERSION}
cp -r ${TARGET_BUILD_DIR}/../Release-iphonesimulator/ ${TARGET_BUILD_DIR}/../PULPulsate${CURRENT_PROJECT_VERSION}
lipo -create "${TARGET_BUILD_DIR}/../Release-iphoneos/PULPulsate.framework/PULPulsate" "${TARGET_BUILD_DIR}/../Release-iphonesimulator/PULPulsate.framework/PULPulsate" -output "${TARGET_BUILD_DIR}/../PULPulsate${CURRENT_PROJECT_VERSION}/PULPulsate.framework/PULPulsate"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment