Some errors in API

Post here all your questions related with the SmartFoxServer iPhone API

Moderators: Lapo, Bax

User avatar
Johannes
Posts: 32
Joined: 14 Oct 2008, 06:01
Location: Earth

Some errors in API

Postby Johannes » 15 Oct 2011, 20:37

Hi :)

since I've updated my xCode to the 4.2 I have some warnings when I try to build my product.

Here is those warnings:

in my_project/SFS_API/Classes/Source/Http/SFSHttpConnection.m:250:109:{250:109-250:113}:

Code: Select all

warning: sending 'SFSHttpConnection *' to parameter of incompatible type 'id<SFSHttpAsyncRequestDelegate>'



in my_project/SFS_API/Classes/Source/INFSmartFoxiPhoneClient.m:884:26:{884:26-884:30}:

Code: Select all

warning: sending 'INFSmartFoxiPhoneClient *' to parameter of incompatible type 'id<NSStreamDelegate>'


in my_project/SFS_API/Classes/Source/INFSmartFoxiPhoneClient.m:885:27:{885:27-885:31}:

Code: Select all

warning: sending 'INFSmartFoxiPhoneClient *' to parameter of incompatible type 'id<NSStreamDelegate>'


in my_project/SFS_API/Classes/Source/INFSmartFoxiPhoneClient.m:1378:81:{1378:81-1378:85}:

Code: Select all

warning: expression result unused


in my_project/SFS_API/Classes/Source/TouchXML/CXMLNode.m:35

Code: Select all

warning: Semantic Issue: Implicit conversion from enumeration type 'xmlElementType' to different enumeration type 'CXMLNodeKind'


please, HELP!
:roll:
User avatar
Johannes
Posts: 32
Joined: 14 Oct 2008, 06:01
Location: Earth

Postby Johannes » 18 Oct 2011, 10:21

Can anybody help??? :!:
Don't worry, be happy! :)
User avatar
Johannes
Posts: 32
Joined: 14 Oct 2008, 06:01
Location: Earth

Postby Johannes » 21 Oct 2011, 17:44

Hey, guys :)
I paid 2,000 Euro for your product, so could you be kind enough to read my question and give me atleast some simple answer?
I'm waiting here for a week, but no answer :(
Don't worry, be happy! :)
User avatar
Lapo
Site Admin
Posts: 22999
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 22 Nov 2011, 22:07

We are sorry we are not using that version of XCode.
One of the main reasons is that XCode 4.x requires Lion so it's a very heavy update and we haven't moved to that version yet.

We'll see if we can update one of our machines and try it. Unfortunately it won't be super quick.
What target platform are you using for compiling?
Lapo
--
gotoAndPlay()
...addicted to flash games
User avatar
Johannes
Posts: 32
Joined: 14 Oct 2008, 06:01
Location: Earth

Postby Johannes » 07 Dec 2011, 19:17

No, not Lion. I'm on Snow Leopard 10.6.8

Target platform is 4.0
Don't worry, be happy! :)
User avatar
A51Integrated
Posts: 240
Joined: 03 Jan 2012, 19:55
Location: Toronto, Canada
Contact:

Postby A51Integrated » 06 Jan 2012, 15:56

We're currently looking into this. Those warnings should not prevent your app from compiling, however, they should be resolved.

If you have any other issues to report, please post them as well.
A51 Integrated
http://a51integrated.com / +1 416-703-2300
User avatar
Johannes
Posts: 32
Joined: 14 Oct 2008, 06:01
Location: Earth

Re: Some errors in API

Postby Johannes » 13 Jan 2012, 18:15

Johannes wrote:
in my_project/SFS_API/Classes/Source/TouchXML/CXMLNode.m:35

Code: Select all

warning: Semantic Issue: Implicit conversion from enumeration type 'xmlElementType' to different enumeration type 'CXMLNodeKind'



this is most critical error for us - we can't to continue to develop our project with this error. We ask You to resolve it as soon as possible
Don't worry, be happy! :)
User avatar
A51Integrated
Posts: 240
Joined: 03 Jan 2012, 19:55
Location: Toronto, Canada
Contact:

Postby A51Integrated » 13 Jan 2012, 18:39

That error is cause by the TouchXML library which I believe there is an update for. Try replacing the TouchXML group with the latest version (https://github.com/TouchCode/TouchXML). This is untested, but it may resolve your issue.

Alternatively, the TouchXML lib is really not *required* - it only exists to parse the server config from the XML file. You could bypass the lib altogether and set the properties of the ConfigData instance manually.

Code: Select all

   client = [[SmartFoxiPhoneClient alloc] initSmartFoxWithDebugMode:YES delegate:self];
   //[client loadConfig:@"config.xml" connectOnSuccess:NO];
   
    ConfigData *configData = [[[ConfigData alloc] init] autorelease];
    configData.host = @"127.0.0.1";
    configData.port = 9933;
    configData.zone = @"SimpleChat";
   
    client.config = configData;
A51 Integrated

http://a51integrated.com / +1 416-703-2300

Return to “iPhone Objective-C API”

Who is online

Users browsing this forum: No registered users and 6 guests