This seems to be a common problem, yet the answers I found all wont work.
The Tris project, I copied framework and code from, does not seem to differ from my project, where I added everything according to the Tris code.
It actually instantiates the client class and loads the config all fine.
It kicks the bucket when calling connect.
The Tris project does connect or at least tries to (even if the server is not there).
I did another test where I literally copied all classes and code into a separate new project and it still showed the error.
Whats the difference here that causes the error?
unrecognized selector +[NSStream getStreamsToHostNamed:...
-
- Posts: 34
- Joined: 11 Aug 2011, 12:40
-
- Posts: 34
- Joined: 11 Aug 2011, 12:40
Re: unrecognized selector +[NSStream getStreamsToHostNamed:.
So I got the code to work in another project, by copying all my code into a duplicate of the Tris project. This means there is something in the project setup that I am missing.
This still means I would like to know how to properly use the framework/code in working condition in my own projects.
Anyone can shine some light on this issue?
Marcus
This still means I would like to know how to properly use the framework/code in working condition in my own projects.
Anyone can shine some light on this issue?
Marcus
- A51Integrated
- Posts: 240
- Joined: 03 Jan 2012, 19:55
- Location: Toronto, Canada
- Contact:
Re: unrecognized selector +[NSStream getStreamsToHostNamed:.
Have you been through the detailed setup documentation?
http://docs2x.smartfoxserver.com/Gettin ... -api-setup
Make sure you've got the appropriate frameworks and Linker Flags.
http://docs2x.smartfoxserver.com/Gettin ... -api-setup
Make sure you've got the appropriate frameworks and Linker Flags.
A51 Integrated
http://a51integrated.com / +1 416-703-2300
http://a51integrated.com / +1 416-703-2300
Re: unrecognized selector +[NSStream getStreamsToHostNamed:.
The link flags fixed it for me. Those should be -lz -ObjC
Return to “SFS2X iPhone / iPad / OSX API”
Who is online
Users browsing this forum: No registered users and 30 guests