My app always crash on 64 bit device and simulator (daily build 2515)

Hi,
Has anyone managed to make a build for iOS device with 64bit arm? Mine was compiled and build okay but when I try to run the app on my 64 bit devices or simulator it always crashes.

The build works fine on my 32 bit devices though…

Is there anything I do wrong? I used the same project template (made a clean start) and follow the instruction from the blog on how to make build that support 64 bit

Edit : It seems that the problem is gameNetwork plugin, as I finally managed to run the app on my 64bit arm devices I get this  runtime error : "module “gameNetwork” not found… bla bla bla

This doesn’t happen on my 32 bit devices, is there an update on the libgamenetwork-apple.a soon?

Thanks

Hmm… I checked with file command and it seems the plugin (libgamenetwork-apple.a) is already 32/64 ready. I remembered  checking it a week ago, that’s why I’m confident and making a 64bit build and submit.

The other plugin that I use (analytics and admob) doesn’t seem to cause this problem but then I maybe wrong.

Does this mean I can’t make 64bit build yet and have to wait till January?

I’ve tried with build 2517 and it works on device and Xcode Simulator.
Also make sure the correct .a is included in your /lib folder, and also referenced in the project’s Frameworks.

/lib folder? I didn’t know there is one? Where do you supposed to put this /lib folder in your project?

EDIT :
Oh you mean the lib folder in the Corona Enterprise folder right?

Anyway, I just tested using 2517 and 2517 plugin and it still crashed with the same problem.

ingemar : are you making the build for $ARCHS_STANDARD in your settings? or just armv7 ? Cause my build works fine if I build just for 32 bit.

Yeah, the /lib folder in the Corona Enterprise folder should have the .a files you’re using copied to it.

My Setup:

OSX Yosemite 10.10.1

Xcode Version 6.1.1 (6A2008a)

Corona Enterprise 2014.2517

I’m using the standard settings in my projects which includes the 32/64 bit slices.

@yanuar

Weird. Now I’m seeing this error when I run in the Xcode simulator.

I’ll need to investigate to see what’s wrong…

Thanks for sharing the settings ingemar.
Yup mine is the same too, I think the only thing that’s different is I need to upgrade my Xcode to 6.1.1. Just to be safe I did another test with a clean project from the template.

The lib folder is fine as long as the lib search path is correct but just to be sure I put the static lib in the enterprise/lib folder as well. I’m trying to upgrade my Xcode and see what happens

vxwxptz.png

 

Yes!! Finally someone with the same problem  :stuck_out_tongue:
You don’t know how happy that makes me feel after spending few days in this forum with noone seems to have the same problem with me>

I’ve done some testing as well, I’m using admob and flurry analytics plugin and it seems both don’t yield the error, only gamenetwork.

After my initial investigation I can verify that something is weird with the gameNetwork plugin.

Apps with it run fine on all devices up to and including iPhone 5. 

From 5S and upwards (64-bit capable devices) the app crashes with this in the log:

2014-12-12 16:10:30.148 NinjaTwinz[860:238518] Runtime error

module ‘gameNetwork’ not found:resource (gameNetwork.lu) does not exist in archive

no field package.preload[‘gameNetwork’]

no file ‘/private/var/mobile/Containers/Bundle/Application/4B9238D0-1FC6-4F01-8667-B889779C790B/NinjaTwinz.app/gameNetwork.lua’

no file ‘/private/var/mobile/Containers/Bundle/Application/4B9238D0-1FC6-4F01-8667-B889779C790B/NinjaTwinz.app/gameNetwork.lua’

no file ‘./gameNetwork.so’

no file '/private/var/mobile/Containers/Bundle/Application/4B9238D0-1FC6-4F01-8667-B889779C790B/NinjaTwinz.app/gameNetwork.so’gameNetwork

The same thing happens on Xcode Simulator. All devices up to and including iPhone 5 run fine, but iPhone 5S, 6 and 6 Plus crash.

It only pertains to the gameNetwork plugin. I have an app that uses a bunch of plugins, and as soon as I comment out the gameNetwork plugin the app runs fine on all 64-bit capable devices. When I put the gameNetwork plugin back in, they crash. (tested with iPhone 6 simulator)

I’d recommend reporting a bug for this using the “Report a bug” link at the top of the page.

Once you have a case number you can post it here for future reference.

Ok, bug is reported.
Here’s hoping it’s just a matter of making rebuilding their static library or something cause gamecenter is a big deal not to get running. I was wondering why there isn’t anyone reported this before? Hasn’t anyone with enterprise subscription tried the new 64bit?

I’m gonna wait till Monday/Tuesday otherwise I have to submit my update as 32 bit app :frowning:

My guess is that there are not that many Enterprise developers out there that have started using 64-bit, and even fewer that are using the game network. It’s also a very new feature (a week old) so it was just a matter of time before it was detected.

Hopefully it’s just a plugin issue that can easily be fixed…

Bug reported though I’m not sure if there’s a way to check any progress: 

(Case 37689) (Enterprise IOS) Gamenetwork plugin will cause an error when run on 64bit devices

 

I’ve also reported this with a repeatable test project.

Case 37697

There’s a new daily build today and it seems it has fixed the issue but I’m trying to test thoroughly  this time.
Let me know if you also try and find any trouble

*thumbs up

The test project I have runs now without crashing.

It seems like the issue was fixed in build 2520.

Hi, I’m having the same problem, and it didn’t help changing to 2520. Crashes immediately on startup with the message

module ‘gameNetwork’ not found:resource (gameNetwork.lu) does not exist in archive

no field package.preload[‘gameNetwork’]

Does it happen only on 64bit devices or all devices? If it’s the latter then it’s your project’s issue and not specifically the plugin issue.
Make sure you’re using the latest .a file and your project lib search path is pointing in the right directory.

My xcode projects has worked fine for several years. And it works fine with pre-64 gamenetwork plugs. Only when adding the 2515, 2517 or 2520 gamenetwork plug the error occurs.

Well… you should look at the blog on the transition to 64 bit and check the static libraries/plugin. As far as I know the problem that we used to had on gamenetwork plugin prior 2520 is gone now.

Yes, that is fixed in 2520. Previous builds were missing the x86_64 slice in builds for the gameNetwork shim library.