shogo4405 / SRTHaishinKit.swift

Camera and Microphone streaming library via SRT for iOS, macOS.
BSD 3-Clause "New" or "Revised" License
70 stars 25 forks source link

Building the project: Library not found for -lcrypto #14

Closed kajwes closed 2 years ago

kajwes commented 3 years ago

Hi. Trying to build this project example for iOS but cannot get the -lcrypto linking to work. Have you the same behaviour? Xcode v12.0

Here@s the ld output from the build in Xcode:

Ld /Users/vidarsolli/Library/Developer/Xcode/DerivedData/SRTHaishinKit-hjmierqeioaeicencevymoujrenl/Build/Products/Debug-iphoneos/SRTHaishinKit.framework/SRTHaishinKit normal (in target 'SRTHaishinKit iOS' from project 'SRTHaishinKit') cd /Users/vidarsolli/Desktop/source/SRTHaishinKit.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -target arm64-apple-ios12.0 -dynamiclib -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.4.sdk -L/Users/vidarsolli/Library/Developer/Xcode/DerivedData/SRTHaishinKit-hjmierqeioaeicencevymoujrenl/Build/Products/Debug-iphoneos -L/Users/vidarsolli/Desktop/source/SRTHaishinKit.swift/Vendor/SRT -F/Users/vidarsolli/Library/Developer/Xcode/DerivedData/SRTHaishinKit-hjmierqeioaeicencevymoujrenl/Build/Products/Debug-iphoneos -filelist /Users/vidarsolli/Library/Developer/Xcode/DerivedData/SRTHaishinKit-hjmierqeioaeicencevymoujrenl/Build/Intermediates.noindex/SRTHaishinKit.build/Debug-iphoneos/SRTHaishinKit\ iOS.build/Objects-normal/arm64/SRTHaishinKit.LinkFileList -install_name @rpath/SRTHaishinKit.framework/SRTHaishinKit -Xlinker -rpath -Xlinker /usr/lib/swift -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -dead_strip -Xlinker -object_path_lto -Xlinker /Users/vidarsolli/Library/Developer/Xcode/DerivedData/SRTHaishinKit-hjmierqeioaeicencevymoujrenl/Build/Intermediates.noindex/SRTHaishinKit.build/Debug-iphoneos/SRTHaishinKit\ iOS.build/Objects-normal/arm64/SRTHaishinKit_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -fembed-bitcode-marker -fapplication-extension -fobjc-link-runtime -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos -L/usr/lib/swift -Xlinker -add_ast_path -Xlinker /Users/vidarsolli/Library/Developer/Xcode/DerivedData/SRTHaishinKit-hjmierqeioaeicencevymoujrenl/Build/Intermediates.noindex/SRTHaishinKit.build/Debug-iphoneos/SRTHaishinKit\ iOS.build/Objects-normal/arm64/SRTHaishinKit.swiftmodule -framework Logboard -lcrypto -lc++ -framework HaishinKit -lsrt-iOS -Xlinker -no_adhoc_codesign -compatibility_version 1 -current_version 1 -Xlinker -dependency_info -Xlinker /Users/vidarsolli/Library/Developer/Xcode/DerivedData/SRTHaishinKit-hjmierqeioaeicencevymoujrenl/Build/Intermediates.noindex/SRTHaishinKit.build/Debug-iphoneos/SRTHaishinKit\ iOS.build/Objects-normal/arm64/SRTHaishinKit_dependency_info.dat -o /Users/vidarsolli/Library/Developer/Xcode/DerivedData/SRTHaishinKit-hjmierqeioaeicencevymoujrenl/Build/Products/Debug-iphoneos/SRTHaishinKit.framework/SRTHaishinKit

ld: library not found for -lcrypto

Thanks. Kaj