jdiehl / async-network

Cocoa and iOS Socket Networking Evolved
http://jdiehl.github.com/async-network
MIT License
91 stars 31 forks source link

Building & Debugging #14

Closed ggb88 closed 8 years ago

ggb88 commented 8 years ago

Hello Jonathan,

I need a little help if possible with two things - running the examples and console debugging

Thanks Garry

jdiehl commented 8 years ago

Hi Garry,

the framework should be installed as an embedded framework, not a system framework:

  1. Compile AsyncNetwork
  2. Copy AsyncNetwork.framework into your project folder
  3. In the project General Tab: Add the framework to Embedded Binaries and Linked Frameworks

This way the framework will be embedded in your application and run on any system.

Concerning your second question: I personally do not like console logging for debugging thus I have not included any such logs anywhere. To debug the framework, I typically include its sources and step through it with the debugger. You can, however, add log statements to your delegate methods.

Best Jonathan

ggb88 commented 8 years ago

Hi Jonathan, thanks for such an expedient reply. Got it all working, thanks for the tips.