ios compilation problems

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

Moderators: Lapo, Bax

skipper3k
Posts: 20
Joined: 22 Feb 2012, 09:21

Re: ios compilation problems

Post by skipper3k »

* it must be something with this particular ios version. Maybe an error in your build or an ios error ?
skipper3k
Posts: 20
Joined: 22 Feb 2012, 09:21

Re: ios compilation problems

Post by skipper3k »

I run it on a 4.2 ios armv6 device iPhone 3G. This is what I get. Almost the same error :

Image

Could you also tell me which version ov Xcode are you using ?
A51Integrated
Posts: 240
Joined: 03 Jan 2012, 19:55
Location: Toronto, Canada
Contact:

Re: ios compilation problems

Post by A51Integrated »

Give us a little time and we'll look further into this. We'll let you know as soon as we can.
A51 Integrated
http://a51integrated.com / +1 416-703-2300
A51Integrated
Posts: 240
Joined: 03 Jan 2012, 19:55
Location: Toronto, Canada
Contact:

Re: ios compilation problems

Post by A51Integrated »

We just ran a sample app (loads, connects, logs in) with a device on iOS4.1 without issue. I can post the project that we used if you want.

Give us some more time and we'll run it on iOS5 as well.
A51 Integrated
http://a51integrated.com / +1 416-703-2300
skipper3k
Posts: 20
Joined: 22 Feb 2012, 09:21

Re: ios compilation problems

Post by skipper3k »

Please post the project so I can try.

Tnx
A51Integrated
Posts: 240
Joined: 03 Jan 2012, 19:55
Location: Toronto, Canada
Contact:

Re: ios compilation problems

Post by A51Integrated »

SFS2Xexample.zip
(266.23 KiB) Downloaded 846 times
Here it is. Just change the config and probably re load the framework (it sits in a folder behind this project).
A51 Integrated
http://a51integrated.com / +1 416-703-2300
skipper3k
Posts: 20
Joined: 22 Feb 2012, 09:21

Re: ios compilation problems

Post by skipper3k »

Ok. Tried it.
I changed the config ip and added the framework. I also had to change the bundle identifier to get it running. I still get the same EXC_BAD_INSTRUCTION.
Hope this feedback helps.

Can I provide you some more information ? Or could you send me this new ios 1.0.1 release like you used to distribute the previous releases in source code ?
A51Integrated
Posts: 240
Joined: 03 Jan 2012, 19:55
Location: Toronto, Canada
Contact:

Re: ios compilation problems

Post by A51Integrated »

The 1.0.1 version is available here: http://www.smartfoxserver.com/download/sfs2x#p=updates

Still doing some testing, but if there's anything else you stumble upon please let us know.
A51 Integrated
http://a51integrated.com / +1 416-703-2300
hasbean
Posts: 43
Joined: 02 Sep 2009, 11:39

Re: ios compilation problems

Post by hasbean »

I'm actually having the exact same error. It works fine on the simulator, but on my IOS 5.0.1 iPhone 4S it dies with the attached error

iOS deployment target is 4.3. ARC is enabled.
Attachments
Screen Shot 2012-02-23 at 9.51.31 PM.png
(103.11 KiB) Not downloaded yet
A51Integrated
Posts: 240
Joined: 03 Jan 2012, 19:55
Location: Toronto, Canada
Contact:

Re: ios compilation problems

Post by A51Integrated »

ARC should be DISABLED. This is a Non-ARC release. Also, your error message indicates there is an arm issue. Look at your arm setting, it should work for armv6 and armv7.
A51 Integrated
http://a51integrated.com / +1 416-703-2300
hasbean
Posts: 43
Joined: 02 Sep 2009, 11:39

Re: ios compilation problems

Post by hasbean »

I'm actually just adding multiplayer to a game already in the app store, so I can't really disable ARC at this point. However, to test it out, I've disabled ARC and I still get the exact same error.

Architectures is Standard armv7
Valid Architectures is armv6 armv7

This happens as soon as this debug message appears:

Code: Select all

2012-02-23 22:12:39.862 Hand[4118:707] [SFS - INFO]sending handshake request: isReconnection : NO
Can you post the code instead of having it as a framework? So we can pick and choose the ARC and non-ARC classes and at least debug issues ourselves and give better feedback.
A51Integrated
Posts: 240
Joined: 03 Jan 2012, 19:55
Location: Toronto, Canada
Contact:

Re: ios compilation problems

Post by A51Integrated »

We just ran another test on iOS 5.0.1 (9A405) and still are unable to replicate the issue. Everything works as expected (we're using the same project posted previously).

Can you guys run some more test and maybe put in some break points to see exactly where the error is being thrown?
A51 Integrated
http://a51integrated.com / +1 416-703-2300
hasbean
Posts: 43
Joined: 02 Sep 2009, 11:39

Re: ios compilation problems

Post by hasbean »

I have to note that I'm connecting to an RC3 server. I'll try it with the latest release once I can get the thing to work.
hasbean
Posts: 43
Joined: 02 Sep 2009, 11:39

Re: ios compilation problems

Post by hasbean »

Nope doesn't matter either. I just tried the latest SmartFox server and still got the same crash.

I'm on MacOS Lion 10.7.3 and XCode 4.3 if that helps any.

I tried setting a breakpoint on the onConnection handler but it doesn't even reach that part.

The crazy part is that it's running perfectly on the simulator.
skipper3k
Posts: 20
Joined: 22 Feb 2012, 09:21

Re: ios compilation problems

Post by skipper3k »

I did set some breakpoints before connecting and in onConnection delegate as well. The code does not reach onConnection delegate. And it is really hard to debug a static library, so I cannot add any breakpoints to your code to pinpoint the problem.

It could be an apple problem with arm. I can understand it runs on the simulator because it is a different architecture than arm..
Post Reply