Skip to content

Commit 7fa227e

Browse files
committed
Fix compilation for swift 6
1 parent fc6bfeb commit 7fa227e

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

Examples/WhisperAX/WhisperAX.xcodeproj/project.pbxproj

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
1683EFEE2B9FACFE002448CD /* WhisperAX Watch App.app in Embed Watch Content */ = {isa = PBXBuildFile; fileRef = 161135DE2B3F66DA003C20F6 /* WhisperAX Watch App.app */; platformFilter = ios; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; };
2626
1683EFEF2B9FADFE002448CD /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 1677AFB42B57618A008C61C0 /* Assets.xcassets */; };
2727
1683EFF02B9FADFE002448CD /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 1677AFB62B57618A008C61C0 /* Preview Assets.xcassets */; };
28-
16D581092B4F7E4E000C0AB0 /* MarkdownUI in Frameworks */ = {isa = PBXBuildFile; productRef = 16D581082B4F7E4E000C0AB0 /* MarkdownUI */; };
2928
16EA36CF2B59E550006CA7CF /* WhisperKit in Frameworks */ = {isa = PBXBuildFile; productRef = 16EA36CE2B59E550006CA7CF /* WhisperKit */; };
3029
/* End PBXBuildFile section */
3130

@@ -134,7 +133,6 @@
134133
buildActionMask = 2147483647;
135134
files = (
136135
16EA36CF2B59E550006CA7CF /* WhisperKit in Frameworks */,
137-
16D581092B4F7E4E000C0AB0 /* MarkdownUI in Frameworks */,
138136
);
139137
runOnlyForDeploymentPostprocessing = 0;
140138
};
@@ -354,7 +352,6 @@
354352
);
355353
name = WhisperAX;
356354
packageProductDependencies = (
357-
16D581082B4F7E4E000C0AB0 /* MarkdownUI */,
358355
16EA36CE2B59E550006CA7CF /* WhisperKit */,
359356
);
360357
productName = BasicExample;
@@ -1137,11 +1134,6 @@
11371134
isa = XCSwiftPackageProductDependency;
11381135
productName = WhisperKit;
11391136
};
1140-
16D581082B4F7E4E000C0AB0 /* MarkdownUI */ = {
1141-
isa = XCSwiftPackageProductDependency;
1142-
package = 16D581062B4F7DCE000C0AB0 /* XCRemoteSwiftPackageReference "swift-markdown-ui" */;
1143-
productName = MarkdownUI;
1144-
};
11451137
16EA36CE2B59E550006CA7CF /* WhisperKit */ = {
11461138
isa = XCSwiftPackageProductDependency;
11471139
productName = WhisperKit;

Sources/WhisperKit/Core/Models.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public typealias FloatType = Float16
1313
public typealias FloatType = Float
1414
#endif
1515

16-
#if (os(macOS) || targetEnvironment(macCatalyst)) && arch(arm64)
16+
#if (os(macOS) || targetEnvironment(macCatalyst)) && arch(arm64) && compiler(<6)
1717
extension Float16: BNNSScalar {}
1818
extension Float16: MLShapedArrayScalar {}
1919
#endif

0 commit comments

Comments
 (0)