Page 2 of 3

Re: ios compilation problems

Posted: 23 Feb 2012, 09:56
by skipper3k
* it must be something with this particular ios version. Maybe an error in your build or an ios error ?

Re: ios compilation problems

Posted: 23 Feb 2012, 10:05
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 ?

Re: ios compilation problems

Posted: 23 Feb 2012, 14:30
by A51Integrated
Give us a little time and we'll look further into this. We'll let you know as soon as we can.

Re: ios compilation problems

Posted: 23 Feb 2012, 15:11
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.

Re: ios compilation problems

Posted: 23 Feb 2012, 15:22
by skipper3k
Please post the project so I can try.

Tnx

Re: ios compilation problems

Posted: 23 Feb 2012, 15:33
by A51Integrated
SFS2Xexample.zip
(266.23 KiB) Downloaded 666 times
Here it is. Just change the config and probably re load the framework (it sits in a folder behind this project).

Re: ios compilation problems

Posted: 23 Feb 2012, 15:45
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 ?

Re: ios compilation problems

Posted: 23 Feb 2012, 18:31
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.

Re: ios compilation problems

Posted: 23 Feb 2012, 18:54
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.

Re: ios compilation problems

Posted: 23 Feb 2012, 19:00
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.

Re: ios compilation problems

Posted: 23 Feb 2012, 19:20
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.

Re: ios compilation problems

Posted: 23 Feb 2012, 19:57
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?

Re: ios compilation problems

Posted: 23 Feb 2012, 21:01
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.

Re: ios compilation problems

Posted: 23 Feb 2012, 21:18
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.

Re: ios compilation problems

Posted: 24 Feb 2012, 08:38
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..