I made a simple command line application that declares functions in a dylib. The library is added to the project using a build copy operation. When I build, the application’s .debug folder contains the copied file and all works as expected. Once I was done testing in that CLI, i started building a simple GUI application to use the same library.
I created a build copy step and dragged my dylib to it. The path is black (not red), so it sees it’s there. When I run the program in the debugger, though, no .debug folder is created while the app is running. I’m getting errors that the function was not found so I need to check that the build copy step is working.
I’m seeing this on both Mojave and Big Sur. Is the .debug folder in a different place for GUI applications or something?
Just to clarify - I do see the .debug version of my application appear in the project folder in the GUI app. For the CLI app, a folder called “project-name.debug” is created. The application.debug executable goes in there, and the libraries are copied into the framework subfolder of the project-name.debug folder. But for the GUI, this folder structure doesn’t exist?