BewareMyPower commented on issue #430: URL: https://github.com/apache/pulsar-client-cpp/issues/430#issuecomment-2185624840
Importing a dependency is not such trivial. Generally, for a C++ project, you should configure - The additional include directory - The additional link directory - The additional library to link For a Xcode C++ project, you should first add the `include` and `lib` directories to the project. For example, I unzipped the file to the `/Users/xuyunze/pulsar-client-3.5.1` directory, then I would need to - Add `/Users/xuyunze/pulsar-client-3.5.1/include` to **Header Search Paths** - Add `/Users/xuyunze/pulsar-client-3.5.1/lib` to **Library Search Paths** <img width="1031" alt="image" src="https://github.com/apache/pulsar-client-cpp/assets/18204803/31c101e8-56f5-492a-94b9-42159961ab8b"> Then, navigate to **Build Phases** - **Link Binary With Libraries** - `+` - **Add Files**, choose the `libpulsarwithdeps.a` <img width="1016" alt="image" src="https://github.com/apache/pulsar-client-cpp/assets/18204803/063509aa-510e-4725-9cce-6b6ac403663d"> Now, you would be able to run the application successfully. <img width="1199" alt="image" src="https://github.com/apache/pulsar-client-cpp/assets/18204803/7e34db6a-9729-4ead-b7b3-7b50594a630a"> -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@pulsar.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org