Comments (7)
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.
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.
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.
Yes that's exactly what I did.
Agree it would be useful to add to the wiki :)
from cocoaasyncsocket.
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.
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.
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)
- Is this still maintained? HOT 1
- Is this library supported for iOS 13+ ? HOT 2
- Error Domain=NSPOSIXErrorDomain Code=60 "Operation timed out" HOT 1
- [!] Error installing CocoaAsyncSocket [!] /usr/bin/git clone https://github.com/robbiehanson/CocoaAsyncSocket.git /var/folders/44/pdz2cl0561z4jh2377tl293h0000gp/T/d20221207-3976-gkz985 --template= --single-branch --depth 1 --branch 7.6.5 HOT 1
- π¦ ALL IN ONEπ
- crashed on iOS 16.1, SIGTRAP HOT 2
- App crash in Xcode 14 and iOS 16 HOT 6
- how to creat a unix domain socket on iOS device HOT 1
- the app references non-public selectors in cocoaAsyncSocket HOT 1
- [GCDAsyncSocket closeWithError:] crash, iOS16 HOT 4
- Not able to build the framework after upgrading Xcode to 14.3 HOT 1
- Not work with bitcode enable HOT 2
- GCDAsyncSocket with local ip address changed HOT 5
- socket gets disconnected with nil error, as soon as didAccept delegate is called HOT 2
- Privacy Manifest HOT 7
- Is there any plan to update TLS API to Network.framework? HOT 2
- crash about (null) in @objc TcpClient.socket(_:didRead:withTag:) () in Xcode HOT 1
- Crash: Thread 8: EXC_BAD_ACCESS (code=1, address=0x555555555555555d) HOT 6
- Increase macOS deployment target HOT 3
- Technically possible to implement getPeerCertificate and getCertificate ? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cocoaasyncsocket.