forked from Marketcircle/mailcore2
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
875bd1d
commit 8928808
Showing
2 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
Externals | ||
DerivedData | ||
|
||
example/ios/iOS UI Test/DerivedData | ||
scripts/prebuilt.list | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/bin/sh | ||
|
||
DERIVED_DATA_DIR="DerivedData" | ||
PRODUCTS_DIR="${DERIVED_DATA_DIR}/Build/Products" | ||
|
||
# carthage adds these, not sure if necessary | ||
EXTRA_ARGS="ONLY_ACTIVE_ARCH=NO CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY=" | ||
|
||
# libetpan has been set up to build an xcframework for libsasl2, however xcframeworks must exist at the *start* of the build process | ||
# I didn't have time to figure out something less awful than building libetpan first | ||
# It'll copy sasl.xcframework to the build directory | ||
xcodebuild -project build-mac/mailcore2.xcodeproj -scheme "libetpan ios" -configuration Release -derivedDataPath ${DERIVED_DATA_DIR} -sdk iphoneos ${EXTRA_ARGS} | ||
xcodebuild -project build-mac/mailcore2.xcodeproj -scheme "libetpan ios" -configuration Release -derivedDataPath ${DERIVED_DATA_DIR} -sdk iphonesimulator ${EXTRA_ARGS} | ||
|
||
# mailcore2 references the sasl.xcframework in the build directory | ||
xcodebuild -project build-mac/mailcore2.xcodeproj -scheme "mailcore ios" -configuration Release -derivedDataPath ${DERIVED_DATA_DIR} -sdk iphoneos ${EXTRA_ARGS} | ||
xcodebuild -project build-mac/mailcore2.xcodeproj -scheme "mailcore ios" -configuration Release -derivedDataPath ${DERIVED_DATA_DIR} -sdk iphonesimulator ${EXTRA_ARGS} | ||
|
||
# glue it all together | ||
# note -debug-symbols path has to be absolute, see https://developer.apple.com/forums/thread/655768 | ||
xcodebuild -create-xcframework \ | ||
-framework "${PRODUCTS_DIR}/Release-iphoneos/MailCore.framework" \ | ||
-debug-symbols "${PWD}/${PRODUCTS_DIR}/Release-iphoneos/MailCore.framework.dSYM" \ | ||
-framework "${PRODUCTS_DIR}/Release-iphonesimulator/MailCore.framework" \ | ||
-debug-symbols "${PWD}/${PRODUCTS_DIR}/Release-iphonesimulator/MailCore.framework.dSYM" \ | ||
-output "${PRODUCTS_DIR}/MailCore.xcframework" |