Page 1 of 1

Some errors in API

Posted: 15 Oct 2011, 20:37
by Johannes
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:

Posted: 18 Oct 2011, 10:21
by Johannes
Can anybody help??? :!:

Posted: 21 Oct 2011, 17:44
by Johannes
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 :(

Posted: 22 Nov 2011, 22:07
by Lapo
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?

Posted: 07 Dec 2011, 19:17
by Johannes
No, not Lion. I'm on Snow Leopard 10.6.8

Target platform is 4.0

Posted: 06 Jan 2012, 15:56
by A51Integrated
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.

Re: Some errors in API

Posted: 13 Jan 2012, 18:15
by Johannes
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

Posted: 13 Jan 2012, 18:39
by A51Integrated
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;