twostraws / CodeScanner

A SwiftUI view that is able to scan barcodes, QR codes, and more, and send back what was found.
MIT License
1.02k stars 293 forks source link

Solved - Xcode 13 - dylib was built for newer macOS version (11.0) than being linked (10.15) #43

Closed svenover closed 2 years ago

svenover commented 2 years ago

Hi,

First, thank you for having your CodeScanner.

I hope you can help me. Today I upgraded to Xcode 13 and got the following warning. Everything was fine with Xcode 12.

Showing Recent Issue

CodeScanner ld: warning: dylib (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/pm/ManifestAPI/libPackageDescription.dylib) was built for newer macOS version (11.0) than being linked (10.15)

I have tried to find something on the internet. I did a reinstall of Xcode CommandLineTools unfortunately without success. sudo rm -rf /Library/Developer/CommandLineTools sudo xcode-select --install

May I ask if you have any idea how I can fix this?

Many thanks in advance. Sven

svenover commented 2 years ago

Sorry for the post. The solution was so easy. Now, I know it.

Xcode 13 - File - Packages - Reset Package Caches

Now, the warning is gone.