ios compilation problems

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

Moderators: Bax, Lapo, A51Integrated

Re: ios compilation problems

Postby skipper3k » 23 Feb 2012, 09:56

* 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

Postby skipper3k » 23 Feb 2012, 10:05

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 ?
skipper3k
 
Posts: 20
Joined: 22 Feb 2012, 09:21

Re: ios compilation problems

Postby A51Integrated » 23 Feb 2012, 14:30

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
User avatar
A51Integrated
 
Posts: 240
Joined: 03 Jan 2012, 19:55
Location: Toronto, Canada

Re: ios compilation problems

Postby A51Integrated » 23 Feb 2012, 15:11

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
User avatar
A51Integrated
 
Posts: 240
Joined: 03 Jan 2012, 19:55
Location: Toronto, Canada

Re: ios compilation problems

Postby skipper3k » 23 Feb 2012, 15:22

Please post the project so I can try.

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

Re: ios compilation problems

Postby A51Integrated » 23 Feb 2012, 15:33

SFS2Xexample.zip
(266.23 KiB) Downloaded 65 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
User avatar
A51Integrated
 
Posts: 240
Joined: 03 Jan 2012, 19:55
Location: Toronto, Canada

Re: ios compilation problems

Postby skipper3k » 23 Feb 2012, 15:45

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 ?
skipper3k
 
Posts: 20
Joined: 22 Feb 2012, 09:21

Re: ios compilation problems

Postby A51Integrated » 23 Feb 2012, 18:31

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
User avatar
A51Integrated
 
Posts: 240
Joined: 03 Jan 2012, 19:55
Location: Toronto, Canada

Re: ios compilation problems

Postby hasbean » 23 Feb 2012, 18:54

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
hasbean
 
Posts: 41
Joined: 02 Sep 2009, 11:39

Re: ios compilation problems

Postby A51Integrated » 23 Feb 2012, 19:00

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
User avatar
A51Integrated
 
Posts: 240
Joined: 03 Jan 2012, 19:55
Location: Toronto, Canada

Re: ios compilation problems

Postby hasbean » 23 Feb 2012, 19:20

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.
hasbean
 
Posts: 41
Joined: 02 Sep 2009, 11:39

Re: ios compilation problems

Postby A51Integrated » 23 Feb 2012, 19:57

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
User avatar
A51Integrated
 
Posts: 240
Joined: 03 Jan 2012, 19:55
Location: Toronto, Canada

Re: ios compilation problems

Postby hasbean » 23 Feb 2012, 21:01

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: 41
Joined: 02 Sep 2009, 11:39

Re: ios compilation problems

Postby hasbean » 23 Feb 2012, 21:18

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.
hasbean
 
Posts: 41
Joined: 02 Sep 2009, 11:39

Re: ios compilation problems

Postby skipper3k » 24 Feb 2012, 08:38

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..
skipper3k
 
Posts: 20
Joined: 22 Feb 2012, 09:21

PreviousNext

Return to SFS2X iPhone / iPad / OSX API

Who is online

Users browsing this forum: No registered users and 2 guests