Skip to content

Commit f95d9cd

Browse files
committed
Fix unit test on simulator.
1 parent 420e194 commit f95d9cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SCNRecorderTests/SceneRecorderTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ extension SceneRecorderTests {
7171
) {
7272
var codecs: [VideoSettings.Codec] = [.h264()]
7373

74+
#if !targetEnvironment(simulator)
7475
let supportHEVCEncoder = AVAssetExportSession.allExportPresets().contains(AVAssetExportPresetHEVC1920x1080)
7576
if supportHEVCEncoder {
7677
codecs.append(.hevc())
@@ -81,7 +82,6 @@ extension SceneRecorderTests {
8182
}
8283
}
8384

84-
#if !targetEnvironment(simulator)
8585
codecs.append(.jpeg())
8686
#endif
8787

0 commit comments

Comments
 (0)