Coder Social home page Coder Social logo

Comments (7)

mindrones avatar mindrones commented on July 26, 2024

Hi,

I've solved this one adding -fno-objc-arc to the compile options for this lib files, as found here
http://groups.google.com/group/cocoaasyncsocket/browse_thread/thread/a204682691826d7e
(thank goes to Sean McBride)

It might be useful to note this in the wiki maybe :)

Luca

from cocoaasyncsocket.

 avatar commented on July 26, 2024

mindrones: How do you add that option (-fno-objc-arc) to just a few files? (I'm assuming you just drag in GCDAsycnSocket.h/m to your source tree, right?)

I can't see any place for per-file settings, but then I'm new to Xcode.

from cocoaasyncsocket.

 avatar commented on July 26, 2024

Ah, found it.

  • Select project and in project navigator
  • Select target
  • Select build phases
  • Click compile sources
  • Double-click on GCD...
    • in the box, add in the compiler flag.

Also, you need to add the Security Framework for the lib to compile. I've not seen that mentioned anywhere, either. A "how to install" Wiki page might be a fine addition.

from cocoaasyncsocket.

mindrones avatar mindrones commented on July 26, 2024

Yes that's exactly what I did.
Agree it would be useful to add to the wiki :)

from cocoaasyncsocket.

dhoenig avatar dhoenig commented on July 26, 2024

Do you use the original files together with the -fno-objc-arc option or your modified files?
Can you tell me how this relates to the "arc" branch
https://github.com/robbiehanson/CocoaAsyncSocket/tree/arc
which is visible when you click on the branch:Master icon on https://github.com/robbiehanson/CocoaAsyncSocket#
?

from cocoaasyncsocket.

mindrones avatar mindrones commented on July 26, 2024

Hi, after I have tried modifying the files to remove the release/retain stuff with no success, I've tried to use the original files with the -fno-objc-arc option and it worked out of the box.

from cocoaasyncsocket.

robbiehanson avatar robbiehanson commented on July 26, 2024

You can use non-arc files in an ARC project, and vice-versa.

The CocoaAsyncSocket project will soon be converted to ARC, as it is quickly becoming the standard.

from cocoaasyncsocket.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.