JohnSundell / ShellOut

Easily run shell commands from a Swift script or command line tool
MIT License
872 stars 85 forks source link

Can't load framework in Command Line Tool #26

Closed onesentinel closed 6 years ago

onesentinel commented 6 years ago

dyld: Library not loaded: @rpath/ShellOut.framework/Versions/A/ShellOut Referenced from: /Users/MYUSER/Library/Developer/Xcode/DerivedData/MyAppName-ekiclknclczpksfxqtybkeebjynw/Build/Products/Debug/SecurityHelper Reason: image not found (lldb)

Binary with Library is Linked

JohnSundell commented 6 years ago

You can't link to frameworks in a Command Line Tool. Either simply drag the file ShellOut.swift into your Xcode project or use the Swift Package Manager to include it as a dependency 🙂. Please see the README for installation instructions 👍