Some errors in API

Post here all your questions related with the SmartFoxServer iPhone API

Moderators: Lapo, Bax

Post Reply
Johannes
Posts: 32
Joined: 14 Oct 2008, 06:01
Location: Earth

Some errors in API

Post 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:
Johannes
Posts: 32
Joined: 14 Oct 2008, 06:01
Location: Earth

Post by Johannes »

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

Post 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 :(
Don't worry, be happy! :)
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post 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?
Lapo
--
gotoAndPlay()
...addicted to flash games
Johannes
Posts: 32
Joined: 14 Oct 2008, 06:01
Location: Earth

Post by Johannes »

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

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

Post 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.
A51 Integrated
http://a51integrated.com / +1 416-703-2300
Johannes
Posts: 32
Joined: 14 Oct 2008, 06:01
Location: Earth

Re: Some errors in API

Post 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
Don't worry, be happy! :)
A51Integrated
Posts: 240
Joined: 03 Jan 2012, 19:55
Location: Toronto, Canada
Contact:

Post 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;
A51 Integrated
http://a51integrated.com / +1 416-703-2300
Post Reply