Building fails

Post here your questions about the Objective-C API for SFS2X

Moderators: Lapo, Bax

User avatar
janheuninck
Posts: 68
Joined: 23 Nov 2011, 01:35
Location: Vancouver BC, Canada

Building fails

Postby janheuninck » 26 Dec 2011, 21:48

Hey everybody,

I tried importing the SFS iPhone API in my new project, and I followed all the steps in the client-api-setup (http://docs2x.smartfoxserver.com/Gettin ... etup#objc4). But when I try to build my project, building always fails:

Image

I'm using Xcode Version 4.2.1 and the API that comes with the smartfox 2x RC3 installation. The iOS development target is 5.0.

Am I the only one with this problem?
User avatar
janheuninck
Posts: 68
Joined: 23 Nov 2011, 01:35
Location: Vancouver BC, Canada

Postby janheuninck » 26 Dec 2011, 21:54

Ok, it works if I disable the ARC (automatic reference counting) in the project settings, but I get lots of warnings...
User avatar
A51Integrated
Posts: 240
Joined: 03 Jan 2012, 19:55
Location: Toronto, Canada
Contact:

Postby A51Integrated » 05 Jan 2012, 04:10

Thanks for reporting. We'll update the docs for iOS 5 as soon as we have run a complete set of tests.

Can you post which warnings you are getting?
A51 Integrated
http://a51integrated.com / +1 416-703-2300
User avatar
janheuninck
Posts: 68
Joined: 23 Nov 2011, 01:35
Location: Vancouver BC, Canada

Postby janheuninck » 06 Jan 2012, 06:03

These are the warnings I'm getting

Code: Select all

LoggerEvent.m (r35) - Incompatible pointer types sending 'NSDictionary *' to parameter of type 'NSMutableDictionary *'
BitSwarmClient.m (r441 and r442) - Sending 'BitSwarmClient *' to parameter of incompatible type 'id<NSStreamDelegate>'
Data.m (r21) - Incompatible pointer types assigning to 'NSMutableData *' from 'NSData *'
SFSBuddyManager.m (r237) - Incompatible pointer types assigning to 'NSMutableArray *' from 'NSArray *'
SystemController.m (r1058) - Incompatible pointer types sending 'SFSEvent *' to parameter of type 'SFSBuddyEvent *'
SystemController.m (r1066) - Incompatible pointer types sending 'SFSEvent *' to parameter of type 'SFSBuddyEvent *'
SystemController.m (r1084) - Incompatible pointer types sending 'SFSEvent *' to parameter of type 'SFSBuddyEvent *'
SystemController.m (r1092) - Incompatible pointer types sending 'SFSEvent *' to parameter of type 'SFSBuddyEvent *'
SystemController.m (r1110) - Incompatible pointer types sending 'SFSEvent *' to parameter of type 'SFSBuddyEvent *'
SystemController.m (r1124) - Incompatible pointer types sending 'SFSEvent *' to parameter of type 'SFSBuddyEvent *'
SystemController.m (r1144) - Incompatible pointer types sending 'SFSEvent *' to parameter of type 'SFSBuddyEvent *'
SystemController.m (r1158) - Incompatible pointer types sending 'SFSEvent *' to parameter of type 'SFSBuddyEvent *'
SystemController.m (r1203) - Incompatible pointer types sending 'SFSEvent *' to parameter of type 'SFSBuddyEvent *'
SystemController.m (r1215) - Incompatible pointer types sending 'SFSEvent *' to parameter of type 'SFSBuddyEvent *'
SystemController.m (r1265) - Incompatible pointer types sending 'SFSEvent *' to parameter of type 'SFSBuddyEvent *'
SystemController.m (r1275) - Incompatible pointer types sending 'SFSEvent *' to parameter of type 'SFSBuddyEvent *'
CXMLNode.m (r79) - Implicit conversion from enumeration type 'xmlElementType' to different enumeration type 'CXMLNodeKind'
DefaultSFSDataSerializer (r15) - Extra tokens at end of #import directive
User avatar
A51Integrated
Posts: 240
Joined: 03 Jan 2012, 19:55
Location: Toronto, Canada
Contact:

Postby A51Integrated » 06 Jan 2012, 11:54

Thank you. We'll have a look as soon as we can.
A51 Integrated

http://a51integrated.com / +1 416-703-2300
User avatar
A51Integrated
Posts: 240
Joined: 03 Jan 2012, 19:55
Location: Toronto, Canada
Contact:

Re: Building fails

Postby A51Integrated » 16 Feb 2012, 04:17

All of these errors/warnings are have been fixed in the new release. Please let us know if anything else comes up.
A51 Integrated

http://a51integrated.com / +1 416-703-2300
mystarnee
Posts: 6
Joined: 03 Mar 2012, 04:03

Re: Building fails

Postby mystarnee » 03 Mar 2012, 04:06

Sound like it is a ARC problem

Return to “SFS2X iPhone / iPad / OSX API”

Who is online

Users browsing this forum: No registered users and 20 guests