Skip to content

Commit 1c385f1

Browse files
author
Max Moiseev
committed
[overlay] Weakly link against ModelIO Framework
Multiple overlays depend on ModelIO transitively, inlcuding GLKit. So an app linked against GLKit will successfully build and run on the modern OSes, but will crash on load if back-deployed to an OS where ModelIO did not exist. <rdar://problem/33960842> <rdar://problem/33471433>
1 parent d3ac588 commit 1c385f1

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

stdlib/public/SDK/ModelIO/CMakeLists.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,5 @@ add_swift_library(swiftModelIO ${SWIFT_SDK_OVERLAY_LIBRARY_BUILD_TYPES} IS_SDK_O
1111
SWIFT_MODULE_DEPENDS_OSX Darwin CoreFoundation CoreGraphics Dispatch Foundation IOKit ObjectiveC simd # auto-updated
1212
SWIFT_MODULE_DEPENDS_IOS Darwin CoreFoundation CoreGraphics Dispatch Foundation ObjectiveC simd # auto-updated
1313
SWIFT_MODULE_DEPENDS_TVOS Darwin CoreFoundation CoreGraphics Dispatch Foundation ObjectiveC simd # auto-updated
14-
FRAMEWORK_DEPENDS ModelIO
15-
16-
DEPLOYMENT_VERSION_OSX ${SWIFTLIB_DEPLOYMENT_VERSION_MODELIO_OSX}
14+
FRAMEWORK_DEPENDS_WEAK ModelIO
1715
)

0 commit comments

Comments
 (0)