diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8bd751a4..dc44d849 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -41,14 +41,14 @@ jobs: CERTS_PASS: ${{ secrets.CERTS_PASS }} DECORD_KEY: ${{ secrets.DECORD_KEY }} -# xcode12_3: -# runs-on: macOS-latest -# steps: -# - uses: actions/checkout@v1 -# - name: "Testing on Xcode 12.3" -# run: test/travis_ci.sh -# env: -# DEVELOPER_DIR: /Applications/Xcode_12.3.app -# CERTS_PASS: ${{ secrets.CERTS_PASS }} -# DECORD_KEY: ${{ secrets.DECORD_KEY }} -# + xcode12_3: + runs-on: macOS-latest + steps: + - uses: actions/checkout@v1 + - name: "Testing on Xcode 12.3" + run: test/travis_ci.sh + env: + DEVELOPER_DIR: /Applications/Xcode_12.3.app + CERTS_PASS: ${{ secrets.CERTS_PASS }} + DECORD_KEY: ${{ secrets.DECORD_KEY }} + diff --git a/sample/SampleApp.xcodeproj/project.pbxproj b/sample/SampleApp.xcodeproj/project.pbxproj index 8e7e8997..5586a491 100644 --- a/sample/SampleApp.xcodeproj/project.pbxproj +++ b/sample/SampleApp.xcodeproj/project.pbxproj @@ -327,6 +327,7 @@ buildSettings = { CODE_SIGN_IDENTITY = "iPhone Developer"; DEVELOPMENT_TEAM = J3D7L9FHSS; + "EXCLUDED_ARCHS[sdk=iphonesimulator*]" = arm64; OTHER_LDFLAGS = "-ObjC"; PRODUCT_NAME = "$(TARGET_NAME)"; SKIP_INSTALL = YES; @@ -338,6 +339,8 @@ buildSettings = { CODE_SIGN_IDENTITY = "iPhone Developer"; DEVELOPMENT_TEAM = J3D7L9FHSS; + EXCLUDED_ARCHS = ""; + "EXCLUDED_ARCHS[sdk=iphonesimulator*]" = arm64; OTHER_LDFLAGS = "-ObjC"; PRODUCT_NAME = "$(TARGET_NAME)"; SKIP_INSTALL = YES; @@ -496,6 +499,7 @@ DYLIB_COMPATIBILITY_VERSION = 1; DYLIB_CURRENT_VERSION = 1; DYLIB_INSTALL_NAME_BASE = "@rpath"; + "EXCLUDED_ARCHS[sdk=iphonesimulator*]" = arm64; INFOPLIST_FILE = SampleFramework/Info.plist; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; @@ -520,6 +524,7 @@ DYLIB_COMPATIBILITY_VERSION = 1; DYLIB_CURRENT_VERSION = 1; DYLIB_INSTALL_NAME_BASE = "@rpath"; + "EXCLUDED_ARCHS[sdk=iphonesimulator*]" = arm64; INFOPLIST_FILE = SampleFramework/Info.plist; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; diff --git a/test/build.bats b/test/build.bats index db553a11..4c9de9bc 100644 --- a/test/build.bats +++ b/test/build.bats @@ -8,9 +8,9 @@ load test_helper [[ ! "${output}" =~ "\[[ \*]*\]" ]] [[ ! "${output}" =~ "Time:" ]] file ./SampleFramework.framework/SampleFramework | grep -q arm.* - file ./SampleFramework.framework/SampleFramework | grep -q x86_64 + file ./SampleFramework.framework/SampleFramework | grep -q i386 ls ./SampleFramework.framework/Modules/SampleFramework.swiftmodule | grep -q arm* - ls ./SampleFramework.framework/Modules/SampleFramework.swiftmodule | grep -q x86_64.* + ls ./SampleFramework.framework/Modules/SampleFramework.swiftmodule | grep -q i386.* } @test "relax build framework --progress" { @@ -26,9 +26,9 @@ load test_helper [[ -f ./SampleFramework.framework/SampleFramework ]] file ./SampleFramework.framework/SampleFramework | grep -q arm.* - file ./SampleFramework.framework/SampleFramework | grep -q -v x86_64 + file ./SampleFramework.framework/SampleFramework | grep -q -v i386 ls ./SampleFramework.framework/Modules/SampleFramework.swiftmodule | grep -q arm* - ls ./SampleFramework.framework/Modules/SampleFramework.swiftmodule | grep -q -v x86_64.* + ls ./SampleFramework.framework/Modules/SampleFramework.swiftmodule | grep -q -v i386.* } @test "relax build framework --framework" { @@ -43,7 +43,7 @@ load test_helper [[ -d ./Sample.framework ]] [[ -f ./Sample.framework.zip ]] file ./Sample.framework/Sample | grep -q arm.* - file ./Sample.framework/Sample | grep -q x86_64 + file ./Sample.framework/Sample | grep -q i386 } @test "relax build staticlib --framework Sample --no-simulator" { @@ -54,7 +54,7 @@ load test_helper [[ -f ./Sample.framework.zip ]] file ./Sample.framework/Sample | grep -q arm.* - file ./Sample.framework/Sample | grep -q -v x86_64 + file ./Sample.framework/Sample | grep -q -v i386 } @test "relax build: check workspace restoration" { diff --git a/test/package.bats b/test/package.bats index 02ce100e..afbe5545 100644 --- a/test/package.bats +++ b/test/package.bats @@ -6,7 +6,7 @@ load test_helper run relax export development run relax package development artifact assert_success - [[ -f artifact/Sample\ App.ipa ]]; \ + [[ $(find artifact -name "Sample*.ipa") ]]; \ [[ -f artifact/Sample\ App.xcarchive.zip ]] } diff --git a/test/resign.bats b/test/resign.bats index fe5daa52..1e5d284a 100644 --- a/test/resign.bats +++ b/test/resign.bats @@ -17,7 +17,7 @@ load test_helper run relax resign -k relax.keychain -i "com.scenee.SampleApp" -p "Relax AdHoc" -c "iPhone Distribution: Shin Yamamoto (J3D7L9FHSS)" "$(relax show development ipa)" assert_success - run relax validate "Sample App-resigned.ipa" + run relax validate "$(find . -name "*-resigned.ipa")" assert_success }