Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
shopify_iossdk
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cemarose
shopify_iossdk
Commits
b8795034
Commit
b8795034
authored
Jun 06, 2016
by
Dima Bart
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #209 from Shopify/feature/update-targets
Remove Buy Static target.
parents
c6a0ceef
513e58f3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
12 deletions
+15
-12
project.pbxproj
Mobile Buy SDK/Mobile Buy SDK.xcodeproj/project.pbxproj
+0
-0
build_universal.sh
Scripts/build_universal.sh
+15
-12
No files found.
Mobile Buy SDK/Mobile Buy SDK.xcodeproj/project.pbxproj
View file @
b8795034
This diff is collapsed.
Click to expand it.
Scripts/build_universal.sh
View file @
b8795034
#!/bin/sh
UNIVERSAL_OUTPUTFOLDER
=
${
BUILD_DIR
}
/
${
CONFIGURATION
}
-universal
TARGET_NAME
=
"Buy Static"
UNIVERSAL_OUTPUTFOLDER
=
"
${
BUILD_DIR
}
/
${
CONFIGURATION
}
-universal"
IPHONE_OUTPUTFOLDER
=
"
${
BUILD_DIR
}
/
${
CONFIGURATION
}
-iphoneos"
SIMULATOR_OUTPUTFOLDER
=
"
${
BUILD_DIR
}
/
${
CONFIGURATION
}
-iphonesimulator"
FRAMEWORK_NAME
=
"Buy"
FRAMEWORK_FILE
=
"
${
FRAMEWORK_NAME
}
.framework"
TARGET_NAME
=
"Buy"
# Build Device and Simulator versions
xcodebuild
-target
"
${
TARGET_NAME
}
"
ONLY_ACTIVE_ARCH
=
NO
-configuration
${
CONFIGURATION
}
-sdk
iphoneos
OBJROOT
=
"
${
OBJROOT
}
"
BUILD_DIR
=
"
${
BUILD_DIR
}
"
SYMROOT
=
"
${
SYMROOT
}
"
BUILD_ROOT
=
"
${
BUILD_ROOT
}
"
MACH_O_TYPE
=
staticlib clean build
xcodebuild
-target
"
${
TARGET_NAME
}
"
ONLY_ACTIVE_ARCH
=
NO
-configuration
${
CONFIGURATION
}
-sdk
iphonesimulator
OBJROOT
=
"
${
OBJROOT
}
"
BUILD_DIR
=
"
${
BUILD_DIR
}
"
SYMROOT
=
"
${
SYMROOT
}
"
BUILD_ROOT
=
"
${
BUILD_ROOT
}
"
MACH_O_TYPE
=
staticlib clean build
# make sure the output directory exists
mkdir
-p
"
${
UNIVERSAL_OUTPUTFOLDER
}
"
# Build Device and Simulator versions
xcodebuild
-target
"
${
TARGET_NAME
}
"
ONLY_ACTIVE_ARCH
=
NO
-configuration
${
CONFIGURATION
}
-OBJROOT
=
"
${
OBJROOT
}
"
-sdk
iphoneos
BUILD_DIR
=
"
${
BUILD_DIR
}
"
SYMROOT
=
"
${
SYMROOT
}
"
BUILD_ROOT
=
"
${
BUILD_ROOT
}
"
clean build
xcodebuild
-target
"
${
TARGET_NAME
}
"
ONLY_ACTIVE_ARCH
=
NO
-configuration
${
CONFIGURATION
}
-OBJROOT
=
"
${
OBJROOT
}
"
-sdk
iphonesimulator
BUILD_DIR
=
"
${
BUILD_DIR
}
"
SYMROOT
=
"
${
SYMROOT
}
"
BUILD_ROOT
=
"
${
BUILD_ROOT
}
"
clean build
# Copy the framework structure (from iphoneos build) to the universal folder
cp
-R
"
${
BUILD_DIR
}
/
${
CONFIGURATION
}
-iphoneos/
${
FRAMEWORK_NAME
}
.framework
"
"
${
UNIVERSAL_OUTPUTFOLDER
}
/"
cp
-R
"
${
IPHONE_OUTPUTFOLDER
}
/
${
FRAMEWORK_FILE
}
"
"
${
UNIVERSAL_OUTPUTFOLDER
}
/"
# Create universal binary file using lipo and place the combined executable in the copied framework directory
lipo
-create
-output
"
${
UNIVERSAL_OUTPUTFOLDER
}
/
${
FRAMEWORK_NAME
}
.framework/
${
FRAMEWORK_NAME
}
"
"
${
BUILD_DIR
}
/
${
CONFIGURATION
}
-iphonesimulator/
${
FRAMEWORK_NAME
}
.framework/
${
FRAMEWORK_NAME
}
"
"
${
BUILD_DIR
}
/
${
CONFIGURATION
}
-iphoneos/
${
FRAMEWORK_NAME
}
.framework/
${
FRAMEWORK_NAME
}
"
# Copy the framework to the sample apps folder
rm
-rf
"
${
SRCROOT
}
/../Mobile Buy SDK Sample Apps/
${
TARGET_NAME
}
.framework"
cp
-r
"
${
UNIVERSAL_OUTPUTFOLDER
}
/
${
FRAMEWORK_NAME
}
.framework"
"
${
SRCROOT
}
/../Mobile Buy SDK Sample Apps"
lipo
-create
-output
"
${
UNIVERSAL_OUTPUTFOLDER
}
/
${
FRAMEWORK_FILE
}
/
${
FRAMEWORK_NAME
}
"
"
${
SIMULATOR_OUTPUTFOLDER
}
/
${
FRAMEWORK_FILE
}
/
${
FRAMEWORK_NAME
}
"
"
${
IPHONE_OUTPUTFOLDER
}
/
${
FRAMEWORK_FILE
}
/
${
FRAMEWORK_NAME
}
"
# Open product in Finder
open
"
${
UNIVERSAL_OUTPUTFOLDER
}
"
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment