Skip to content

Commit 8fec2cc

Browse files
committed
Fix iOS and wasm issue
1 parent 422b447 commit 8fec2cc

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

.github/workflows/ios.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,11 @@ jobs:
1313
fail-fast: false
1414
matrix:
1515
os: [macos-14]
16-
xcode-version: [16.0] # Swift 6.0
17-
ios-version: [18.0]
16+
xcode-version: ["16.0"] # Swift 6.0
17+
ios-version: ["18.0"]
18+
include:
19+
- ios-version: "18.0"
20+
ios-simulator-name: "iPhone 16 Pro"
1821
runs-on: ${{ matrix.os }}
1922
env:
2023
OPENGRAPH_WERROR: 1
@@ -33,7 +36,7 @@ jobs:
3336
xcodebuild build \
3437
-scheme OpenGraph-Package \
3538
-configuration Debug \
36-
-destination "platform=iOS Simulator,OS=${{ matrix.ios-version }}" \
39+
-destination "platform=iOS Simulator,OS=${{ matrix.ios-version }},name=${{ matrix.ios-simulator-name }}" \
3740
-derivedDataPath .build-debug \
3841
-skipMacroValidation \
3942
-skipPackagePluginValidation \
@@ -43,7 +46,7 @@ jobs:
4346
xcodebuild test \
4447
-scheme OpenGraph-Package \
4548
-configuration Debug \
46-
-destination "platform=iOS Simulator,OS=${{ matrix.ios-version }}" \
49+
-destination "platform=iOS Simulator,OS=${{ matrix.ios-version }},name=${{ matrix.ios-simulator-name }}" \
4750
-enableCodeCoverage=YES \
4851
-derivedDataPath .build-test-debug \
4952
-skipPackagePluginValidation \

Tests/OpenGraphCompatibilityTests/Attribute/Attribute/PointerOffsetTests.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ struct PointerOffsetTests {
4242
#expect(invalidPointer == UnsafeMutablePointer(bitPattern: stride))
4343
}
4444

45-
@Test(.bug("https://github.com/OpenSwiftUIProject/OpenGraph/issues", id: 70))
45+
#if canImport(Darwin)
46+
@Test(.bug("https://github.com/OpenSwiftUIProject/OpenGraph/issues", id: 70, "Verify fix"))
4647
func ofAndOffset() {
4748
struct Empty {
4849
var value: Void
@@ -78,6 +79,7 @@ struct PointerOffsetTests {
7879
.of(&invalid.third)
7980
}
8081
}
82+
#endif
8183

8284
@Test("Extension API between UnsafePointer/UnsafeMutablePointer and PointerOffset")
8385
func unsafePointerAndUnsafeMutablePointerExtension() {

0 commit comments

Comments
 (0)