diff --git a/.github/workflows/performance.yml b/.github/workflows/performance.yml index e37171bbd..a2b136f65 100644 --- a/.github/workflows/performance.yml +++ b/.github/workflows/performance.yml @@ -43,7 +43,7 @@ jobs: DEVICE: iPhone 16 TEST: true DIR: performance - SCHEME: PerformanceExampleSwift + SCHEME: PerformanceExample steps: - name: Checkout uses: actions/checkout@master diff --git a/performance/PerformanceExample.xcodeproj/project.pbxproj b/performance/PerformanceExample.xcodeproj/project.pbxproj index 25c392394..6784179d3 100644 --- a/performance/PerformanceExample.xcodeproj/project.pbxproj +++ b/performance/PerformanceExample.xcodeproj/project.pbxproj @@ -29,10 +29,10 @@ /* End PBXContainerItemProxy section */ /* Begin PBXFileReference section */ - 107347C420315A61004A66D1 /* PerformanceExampleSwiftUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = PerformanceExampleSwiftUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 107347C420315A61004A66D1 /* PerformanceExampleUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = PerformanceExampleUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 107347C620315A61004A66D1 /* PerformanceExampleSwiftUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PerformanceExampleSwiftUITests.swift; sourceTree = ""; }; 107347C820315A61004A66D1 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - 5F5A53791ADE67D500F81DF0 /* PerformanceExampleSwift.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = PerformanceExampleSwift.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 5F5A53791ADE67D500F81DF0 /* PerformanceExample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = PerformanceExample.app; sourceTree = BUILT_PRODUCTS_DIR; }; 5F5A537D1ADE67D500F81DF0 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 5F5A537F1ADE67D500F81DF0 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 5F9961061AE0CF4F0034F503 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; @@ -85,8 +85,8 @@ 5F5A534D1ADE670C00F81DF0 /* Products */ = { isa = PBXGroup; children = ( - 5F5A53791ADE67D500F81DF0 /* PerformanceExampleSwift.app */, - 107347C420315A61004A66D1 /* PerformanceExampleSwiftUITests.xctest */, + 5F5A53791ADE67D500F81DF0 /* PerformanceExample.app */, + 107347C420315A61004A66D1 /* PerformanceExampleUITests.xctest */, ); name = Products; sourceTree = ""; @@ -120,9 +120,9 @@ /* End PBXGroup section */ /* Begin PBXNativeTarget section */ - 107347C320315A61004A66D1 /* PerformanceExampleSwiftUITests */ = { + 107347C320315A61004A66D1 /* PerformanceExampleUITests */ = { isa = PBXNativeTarget; - buildConfigurationList = 107347CB20315A61004A66D1 /* Build configuration list for PBXNativeTarget "PerformanceExampleSwiftUITests" */; + buildConfigurationList = 107347CB20315A61004A66D1 /* Build configuration list for PBXNativeTarget "PerformanceExampleUITests" */; buildPhases = ( 107347C020315A61004A66D1 /* Sources */, 107347C120315A61004A66D1 /* Frameworks */, @@ -133,14 +133,14 @@ dependencies = ( 107347CA20315A61004A66D1 /* PBXTargetDependency */, ); - name = PerformanceExampleSwiftUITests; + name = PerformanceExampleUITests; productName = PerformanceExampleSwiftUITests; - productReference = 107347C420315A61004A66D1 /* PerformanceExampleSwiftUITests.xctest */; + productReference = 107347C420315A61004A66D1 /* PerformanceExampleUITests.xctest */; productType = "com.apple.product-type.bundle.ui-testing"; }; - 5F5A53781ADE67D500F81DF0 /* PerformanceExampleSwift */ = { + 5F5A53781ADE67D500F81DF0 /* PerformanceExample */ = { isa = PBXNativeTarget; - buildConfigurationList = 5F5A53991ADE67D500F81DF0 /* Build configuration list for PBXNativeTarget "PerformanceExampleSwift" */; + buildConfigurationList = 5F5A53991ADE67D500F81DF0 /* Build configuration list for PBXNativeTarget "PerformanceExample" */; buildPhases = ( 5F5A53751ADE67D500F81DF0 /* Sources */, 5F5A53761ADE67D500F81DF0 /* Frameworks */, @@ -150,9 +150,9 @@ ); dependencies = ( ); - name = PerformanceExampleSwift; + name = PerformanceExample; productName = PerformanceExampleSwift; - productReference = 5F5A53791ADE67D500F81DF0 /* PerformanceExampleSwift.app */; + productReference = 5F5A53791ADE67D500F81DF0 /* PerformanceExample.app */; productType = "com.apple.product-type.application"; }; /* End PBXNativeTarget section */ @@ -195,8 +195,8 @@ projectDirPath = ""; projectRoot = ""; targets = ( - 5F5A53781ADE67D500F81DF0 /* PerformanceExampleSwift */, - 107347C320315A61004A66D1 /* PerformanceExampleSwiftUITests */, + 5F5A53781ADE67D500F81DF0 /* PerformanceExample */, + 107347C320315A61004A66D1 /* PerformanceExampleUITests */, ); }; /* End PBXProject section */ @@ -245,7 +245,7 @@ /* Begin PBXTargetDependency section */ 107347CA20315A61004A66D1 /* PBXTargetDependency */ = { isa = PBXTargetDependency; - target = 5F5A53781ADE67D500F81DF0 /* PerformanceExampleSwift */; + target = 5F5A53781ADE67D500F81DF0 /* PerformanceExample */; targetProxy = 107347C920315A61004A66D1 /* PBXContainerItemProxy */; }; /* End PBXTargetDependency section */ @@ -276,7 +276,7 @@ SWIFT_SWIFT3_OBJC_INFERENCE = Default; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; - TEST_TARGET_NAME = PerformanceExampleSwift; + TEST_TARGET_NAME = PerformanceExample; }; name = Debug; }; @@ -305,7 +305,7 @@ SWIFT_SWIFT3_OBJC_INFERENCE = Default; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; - TEST_TARGET_NAME = PerformanceExampleSwift; + TEST_TARGET_NAME = PerformanceExample; }; name = Release; }; @@ -425,7 +425,6 @@ isa = XCBuildConfiguration; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; DEVELOPMENT_TEAM = ""; INFOPLIST_FILE = "$(SRCROOT)/PerformanceExample/Info.plist"; @@ -446,7 +445,6 @@ isa = XCBuildConfiguration; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; DEVELOPMENT_TEAM = ""; INFOPLIST_FILE = "$(SRCROOT)/PerformanceExample/Info.plist"; @@ -468,7 +466,7 @@ /* End XCBuildConfiguration section */ /* Begin XCConfigurationList section */ - 107347CB20315A61004A66D1 /* Build configuration list for PBXNativeTarget "PerformanceExampleSwiftUITests" */ = { + 107347CB20315A61004A66D1 /* Build configuration list for PBXNativeTarget "PerformanceExampleUITests" */ = { isa = XCConfigurationList; buildConfigurations = ( 107347CC20315A61004A66D1 /* Debug */, @@ -486,7 +484,7 @@ defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; - 5F5A53991ADE67D500F81DF0 /* Build configuration list for PBXNativeTarget "PerformanceExampleSwift" */ = { + 5F5A53991ADE67D500F81DF0 /* Build configuration list for PBXNativeTarget "PerformanceExample" */ = { isa = XCConfigurationList; buildConfigurations = ( 5F5A53951ADE67D500F81DF0 /* Debug */, diff --git a/performance/PerformanceExample.xcodeproj/xcshareddata/xcschemes/PerformanceExample.xcscheme b/performance/PerformanceExample.xcodeproj/xcshareddata/xcschemes/PerformanceExample.xcscheme new file mode 100644 index 000000000..1d3e807b7 --- /dev/null +++ b/performance/PerformanceExample.xcodeproj/xcshareddata/xcschemes/PerformanceExample.xcscheme @@ -0,0 +1,90 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/performance/PerformanceExample.xcodeproj/xcshareddata/xcschemes/PerformanceExampleUITests.xcscheme b/performance/PerformanceExample.xcodeproj/xcshareddata/xcschemes/PerformanceExampleUITests.xcscheme new file mode 100644 index 000000000..a7a3ccb40 --- /dev/null +++ b/performance/PerformanceExample.xcodeproj/xcshareddata/xcschemes/PerformanceExampleUITests.xcscheme @@ -0,0 +1,54 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/scripts/test.sh b/scripts/test.sh index bfedf3738..cbbcc3a16 100755 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -143,11 +143,13 @@ else fi function xcb() { - echo xcodebuild "$@" - xcodebuild "$@" | xcpretty + echo xcodebuild -quiet "$@" + xcodebuild -quiet "$@" | xcpretty } # Run xcodebuild -sudo xcode-select -s "/Applications/Xcode_${xcode_version}.app/Contents/Developer" +if [[ "${GITHUB_ACTIONS:-}" == "true" ]]; then + sudo xcode-select -s "/Applications/Xcode_${xcode_version}.app/Contents/Developer" +fi xcb "${flags[@]}" echo "$message"