Skip to content

Commit 2c6365e

Browse files
committed
Travis CI test updatd to XCFrameworks
1 parent 3903be4 commit 2c6365e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.travis.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83,15 +83,15 @@ jobs:
8383
- tar -zxf nghttp2.tgz
8484
- tar -zxf curl.tgz
8585
- echo "Fetching root certs..."
86-
- curl -s https://curl.haxx.se/ca/cacert.pem > "$EXAMPLE/cacert.pem"
86+
- curl -sL https://curl.haxx.se/ca/cacert.pem > "$EXAMPLE/cacert.pem"
8787
- echo "Copying libraries to Test App ..."
8888
- mkdir -p "$EXAMPLE/libs/"
89-
- cp openssl/iOS-fat/lib/libcrypto.a "$EXAMPLE/libs/libcrypto.a"
90-
- cp openssl/iOS-fat/lib/libssl.a "$EXAMPLE/libs/libssl.a"
91-
- cp openssl/iOS-fat/include/openssl/* "$EXAMPLE/include/openssl/"
89+
- echo "Making XCFrameworks..."
90+
- xcodebuild -create-xcframework -library curl/lib/libcurl_iOS.a -library curl/lib/libcurl_iOS-simulator.a -output "$EXAMPLE/libs/libcurl.xcframework"
91+
- xcodebuild -create-xcframework -library openssl/iOS/lib/libcrypto.a -library openssl/iOS-simulator/lib/libcrypto.a -output "$EXAMPLE/libs/libcrypto.xcframework"
92+
- xcodebuild -create-xcframework -library openssl/iOS/lib/libssl.a -library openssl/iOS-simulator/lib/libssl.a -output "$EXAMPLE/libs/libssl.xcframework"
93+
- xcodebuild -create-xcframework -library nghttp2/lib/libnghttp2_iOS.a -library nghttp2/lib/libnghttp2_iOS-simulator.a -output "$EXAMPLE/libs/libnghttp2.xcframework"
9294
- cp curl/include/curl/* "$EXAMPLE/include/curl/"
93-
- cp curl/lib/libcurl_iOS-fat.a "$EXAMPLE/libs/libcurl.a"
94-
- cp nghttp2/lib/libnghttp2_iOS-fat.a "$EXAMPLE/libs/libnghttp2.a"
9595
- echo "Building iOS Test App for iPhoneSimulator..."
9696
- xcodebuild clean -project "$EXAMPLE/iOS Test App.xcodeproj"
9797
- xcodebuild build -project "$EXAMPLE/iOS Test App.xcodeproj" -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO -arch x86_64

0 commit comments

Comments
 (0)