OSX deployment: dylib missing
5 stars based on
For this walkthrough I'll be using Bitcoin Core version 0. Download the source code: After dependencies are installed, you need to make sure you have the correct version of bitcoin qt build instructions for doctors If you do not then, you need to ask Brew to force create the proper links: Verify that you can run bitcoind: You will probably see an error about your bitcoin. Follow the given instructions to setup your bitcoin. If you want to use Bitcoin testnet which is a good idea for development, make sure to enable that option in the bitcoin.
Create a new project in XCode. When it asks for the type, you can just select "Empty". We do this because Bitcoin Core uses Makefiles. We could instead setup the build using XCode's build settings, but that would be pretty pointless from my perspective because Makefiles work just fine, and since Bitcoin Core uses the Makefile system, everything is auto configured for us.
If you were to contribute to Bitcoin Core you would also need to use their Makefile system to make sure your changes work under those conditions. Bitcoin qt build instructions for doctors to the new target settings and enter the path to your cloned Bitcoin Core code folder: You should be able to build, but not run. Edit the scheme to add the run executable:. Add the entire Bitcoin Core src folder into the project file list Right click on the project click "Add Files".
Create a breakpoint to see if you can stop on it when you run the application. I made one in bitcoind. Try running the application. In my case it did not stop on the bitcoin qt build instructions for doctors. In the scheme options add a custom working directory. It should point to the src folder of the Bitcoin Core source code.
This is the same folder that contains bitcoind:. Save your project, close XCode and reopen it. I don't know why, but for me it didn't work till I did this.
Run and hopefully now it hits the breakpoint.