File tree Expand file tree Collapse file tree 2 files changed +27
-0
lines changed Expand file tree Collapse file tree 2 files changed +27
-0
lines changed Original file line number Diff line number Diff line change 11Externals
2+ DerivedData
23
34example /ios /iOS UI Test /DerivedData
45scripts /prebuilt.list
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+
3+ DERIVED_DATA_DIR=" DerivedData"
4+ PRODUCTS_DIR=" ${DERIVED_DATA_DIR} /Build/Products"
5+
6+ # carthage adds these, not sure if necessary
7+ EXTRA_ARGS=" ONLY_ACTIVE_ARCH=NO CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY="
8+
9+ # libetpan has been set up to build an xcframework for libsasl2, however xcframeworks must exist at the *start* of the build process
10+ # I didn't have time to figure out something less awful than building libetpan first
11+ # It'll copy sasl.xcframework to the build directory
12+ xcodebuild -project build-mac/mailcore2.xcodeproj -scheme " libetpan ios" -configuration Release -derivedDataPath ${DERIVED_DATA_DIR} -sdk iphoneos ${EXTRA_ARGS}
13+ xcodebuild -project build-mac/mailcore2.xcodeproj -scheme " libetpan ios" -configuration Release -derivedDataPath ${DERIVED_DATA_DIR} -sdk iphonesimulator ${EXTRA_ARGS}
14+
15+ # mailcore2 references the sasl.xcframework in the build directory
16+ xcodebuild -project build-mac/mailcore2.xcodeproj -scheme " mailcore ios" -configuration Release -derivedDataPath ${DERIVED_DATA_DIR} -sdk iphoneos ${EXTRA_ARGS}
17+ xcodebuild -project build-mac/mailcore2.xcodeproj -scheme " mailcore ios" -configuration Release -derivedDataPath ${DERIVED_DATA_DIR} -sdk iphonesimulator ${EXTRA_ARGS}
18+
19+ # glue it all together
20+ # note -debug-symbols path has to be absolute, see https://developer.apple.com/forums/thread/655768
21+ xcodebuild -create-xcframework \
22+ -framework " ${PRODUCTS_DIR} /Release-iphoneos/MailCore.framework" \
23+ -debug-symbols " ${PWD} /${PRODUCTS_DIR} /Release-iphoneos/MailCore.framework.dSYM" \
24+ -framework " ${PRODUCTS_DIR} /Release-iphonesimulator/MailCore.framework" \
25+ -debug-symbols " ${PWD} /${PRODUCTS_DIR} /Release-iphonesimulator/MailCore.framework.dSYM" \
26+ -output " ${PRODUCTS_DIR} /MailCore.xcframework"
You can’t perform that action at this time.
0 commit comments