aws-doc-sdk-examples icon indicating copy to clipboard operation
aws-doc-sdk-examples copied to clipboard

"ld: library not found for -lrt" when trying to build the basic example for Swift

Open cnpcshangbo opened this issue 1 year ago • 5 comments

Steps to reproduce:

(base) ➜  basics (main) swift build                                           ✱
[1/1] Planning buildCompiling plugin GenerateManual...
Building for debugging...
Build complete! (24.49s)
(base) ➜  basics (main) swift test                                            ✱
Compiling plugin GenerateManual...
Building for debugging...
ld: library not found for -lrt
[0/1] Linking s3-basicsPackageTests
error: fatalError
(base) ➜  basics (main) pwd                                                   ✱
/Users/boshang/code/aws-doc-sdk-examples/swift/example_code/s3/basics

cnpcshangbo avatar Mar 03 '23 18:03 cnpcshangbo