From 2f65612dca3bbec579634642a39cbf6dd875868c Mon Sep 17 00:00:00 2001 From: Dwarven Yang Date: Tue, 1 Nov 2022 11:16:22 +0800 Subject: [PATCH] fix for Xcode 14 : dyld: Library not loaded: /usr/lib/swift/libswiftCoreGraphics.dylib Reason: image not found (#763) --- SnapKit.podspec | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/SnapKit.podspec b/SnapKit.podspec index 800caa9..7f76762 100644 --- a/SnapKit.podspec +++ b/SnapKit.podspec @@ -14,5 +14,11 @@ Pod::Spec.new do |s| s.source_files = 'Sources/*.swift' + s.libraries = 'swiftCoreGraphics' + + s.xcconfig = { + 'LIBRARY_SEARCH_PATHS' => '$(SDKROOT)/usr/lib/swift', + } + s.swift_versions = ['5.0'] end