Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upmacOS CLI: dyld: Library not loaded ... image not found #9156
Comments
|
It seems that there are other issues like this one related to CLI tools, e.g. #3709, but the steps from that guide are outdated (e.g. |
|
We do not support macOS CLI tools in CocoaPods IIRC. |
|
I see, which types of Mac apps are supported? And could there be some sort of warning when the user runs |
|
@michaeleisel actually I think @amorde implemented a warning here #6493! It has shipped with 1.8.0.beta.1 |
|
We can probably further enhance it with the list of supported targets. But I would say Applications and Frameworks / Libraries are supported for macOS. |
|
OK thank you |
|
Yup we added a warning when using dynamic frameworks with CLI targets, since there’s no way to embed the framework into the binary. CLI targets should work though, as long as you’re using static linking or are able to package the dynamic frameworks with the binary somehow |


Report
What did you do?
Create Podfile for empty MacOS CLI tool with:
Then run
pod installand buildWhat did you expect to happen?
A successful build
What happened instead?
CocoaPods Environment
Stack
Installation Source
Plugins
Podfile
Project that demonstrates the issue
It's just an empty project, created and built with Xcode 10.