Skip to content

Commit

Permalink
fix: CI, link framework to test target (#18)
Browse files Browse the repository at this point in the history
create simulator name without spaces
  • Loading branch information
paulz authored Jun 6, 2022
1 parent b9d7b35 commit f0f3bb3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: macos-12
env:
package: SwiftUI-snapshot-testing
destination: "platform=iOS Simulator,name=iPhone 11 Pro"
destination: name=iphone-12-pro
steps:
- uses: actions/checkout@v3
- name: Setup Xcode version
Expand All @@ -25,6 +25,7 @@ jobs:
swift --version
swift package generate-xcodeproj
xcodebuild -list
xcrun simctl create iphone-12-pro "iPhone 12 Pro"
- name: Build
uses: sersoft-gmbh/xcodebuild-action@master
with:
Expand Down
6 changes: 5 additions & 1 deletion Example/Example.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
4B9C573F284DE2E8001DE13A /* PreviewGroup.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4B9C5728284DE251001DE13A /* PreviewGroup.swift */; };
4B9C5740284DE2E8001DE13A /* PreviewGroupRoot.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4B9C572A284DE262001DE13A /* PreviewGroupRoot.swift */; };
4B9C5744284DE438001DE13A /* PreviewGroup.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4B9C5734284DE2DF001DE13A /* PreviewGroup.framework */; };
4BEEBDAD284DEC6C00536554 /* SwiftUI_snapshot_test.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4B058482283A67650027DAD5 /* SwiftUI_snapshot_test.framework */; };
/* End PBXBuildFile section */

/* Begin PBXContainerItemProxy section */
Expand Down Expand Up @@ -78,7 +79,7 @@
4B058455283A66090027DAD5 /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = "<group>"; };
4B058457283A660A0027DAD5 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
4B05845A283A660A0027DAD5 /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = "<group>"; };
4B058460283A660A0027DAD5 /* ApplicationTests.xctest */ = {isa = PBXFileReference; includeInIndex = 0; lastKnownFileType = wrapper.cfbundle; name = ApplicationTests.xctest; path = Example.app/PlugIns/ApplicationTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
4B058460283A660A0027DAD5 /* ApplicationTests.xctest */ = {isa = PBXFileReference; includeInIndex = 0; lastKnownFileType = file; path = ApplicationTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
4B058464283A660A0027DAD5 /* SnapshotTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SnapshotTests.swift; sourceTree = "<group>"; };
4B058482283A67650027DAD5 /* SwiftUI_snapshot_test.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = SwiftUI_snapshot_test.framework; sourceTree = BUILT_PRODUCTS_DIR; };
4B058495283A67DD0027DAD5 /* XCTest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = XCTest.framework; path = Platforms/iPhoneOS.platform/Developer/Library/Frameworks/XCTest.framework; sourceTree = DEVELOPER_DIR; };
Expand All @@ -90,6 +91,7 @@
4B9C5728284DE251001DE13A /* PreviewGroup.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = PreviewGroup.swift; path = ../../Sources/PreviewGroup/PreviewGroup.swift; sourceTree = "<group>"; };
4B9C572A284DE262001DE13A /* PreviewGroupRoot.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = PreviewGroupRoot.swift; path = ../../Sources/PreviewGroup/Private/PreviewGroupRoot.swift; sourceTree = "<group>"; };
4B9C5734284DE2DF001DE13A /* PreviewGroup.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = PreviewGroup.framework; sourceTree = BUILT_PRODUCTS_DIR; };
4BEEBDAC284DEB1700536554 /* workflows */ = {isa = PBXFileReference; lastKnownFileType = folder; name = workflows; path = ../.github/workflows; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
Expand All @@ -105,6 +107,7 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
4BEEBDAD284DEC6C00536554 /* SwiftUI_snapshot_test.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand All @@ -130,6 +133,7 @@
4B058447283A66080027DAD5 = {
isa = PBXGroup;
children = (
4BEEBDAC284DEB1700536554 /* workflows */,
4B058452283A66090027DAD5 /* Example */,
4B058463283A660A0027DAD5 /* ApplicationTests */,
4B05849D283ADCA10027DAD5 /* SwiftUI-snapshot-test */,
Expand Down

0 comments on commit f0f3bb3

Please sign in to comment.