Skip to content

Commit

Permalink
Add version checks to match Xcode 13.0
Browse files Browse the repository at this point in the history
  • Loading branch information
rolfbjarne committed Apr 29, 2024
1 parent bf64cf4 commit 3e375cb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions tests/bindings-test/RuntimeTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ public override void AssertMainThreadBlockReleaseCallback (InnerBlock completion
[Test]
public void SwiftTypeEncodings ()
{
TestRuntime.AssertXcodeVersion (13, 0);

using var obj = new SwiftTestClass ();

Assert.AreEqual ("42", obj.DoSomething ("42"), "DoSomething");
Expand Down
2 changes: 1 addition & 1 deletion tests/test-libraries/libSwiftTest.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Foundation

@objc(SwiftTestClass)
@available(iOS 15, tvOS 15, macOS 12, macCatalyst 12, watchOS 6, *)
@available(iOS 15, tvOS 15, macOS 12, macCatalyst 12, watchOS 8, *)
public class SwiftTestClass : NSObject {
@objc
// encoding for 'message': @"NSString"
Expand Down

0 comments on commit 3e375cb

Please sign in to comment.