Adding Facebook Plugin crashes simulator build function on mac

Hi, 

I have been trying to implement facebook into my app and the Corona Simulator on MAC just crashes when i try to build the app. To simplify things i have taken the Facebook sample applicable and made the required changes to the build.settings file for the new plugins interface. If i remove the plugins part of build settings it compiles into an app fine (the app fails on run due to missing library as expected) but when i add the plugin section it just crashes and wont compile into an app. 

I have attached the facebook sample app with the modified build.settings that is crashing for me when i try to compile for iOS on mac. It builds fine for android on windows simulator. 

I am using the latest corona release (2189) and i have a Pro subscription. 

The error i get is “Unexpected Build Error (check the simulator console for messages”. Unfortunately the simulator console does not work for me on mac (never has). It fails with 

Corona Terminal: line 9:   2840 Segmentation fault: 11  “$path/Corona Simulator.app/Contents/MacOS/Corona Simulator” “$@” as soon as i open a project in the simulator. 

I have built many apps before on the mac, never had any issues before (other than terminal not working). I do all my dev on windows then just copy to mac for build process. It is mountain lion 10.8.2. 

Im hoping someone can try and compile the attached sample facebook applicaiton for iOS and tell me why its crashing (someone with a working corona terminal). I must be doing something wrong, seems that plenty of other people have made it work. I have previously done a facebook integration in another one of my games about 15 months ago with no problems. 

Thanks

Edit: Oops, just realised I didn’t attach the sample app properly to original post. Should be attached now

… could someone, anyone, please try and compile (build for -> iOS) the attached app (link is on the first post) and let me know if it they get any errors, and if so what the error says for them? Cheers

It does not fail on 2224 for me. I tested 2189a and works ok as well.

If you are using 2189 (without the a) with xCode 5.1 it will fail due to bug.

But developing without simulator console must be very annoying. Are you starting the simulator with the Corona Terminal shortcut?

Thanks Jon, much appreciated. 

I was hoping to stick with the public release which is 2189 without the a as I am pretty close to being finished, but if its a bug fixed after that then I will just have to upgrade to the latest daily build and give it a shot. 

Yep, I launch it with the Corona Terminal shortcut. To be honest, its never really bothered me, I do all my development on my windows machine then just copy it to mac to compile. I’ve never had a need for the mac console the last few years up until this problem occured, as the fault was during build. Any runtime problems can be spotted through the device console in organiser. 

Again thanks for your help.

If you download the public release now  you will get the 2189a version that will work with xCode 5.1 so you can stick with the public version. It was patched just couple of days after.

Ok great, thanks :slight_smile:

Ok so it turns out that the corona version wasn’t my problem. The problem was that my XCode was an old version 4.5, after upgrading to XCode 5.1 the sample app compiles without crashing. 

… could someone, anyone, please try and compile (build for -> iOS) the attached app (link is on the first post) and let me know if it they get any errors, and if so what the error says for them? Cheers

It does not fail on 2224 for me. I tested 2189a and works ok as well.

If you are using 2189 (without the a) with xCode 5.1 it will fail due to bug.

But developing without simulator console must be very annoying. Are you starting the simulator with the Corona Terminal shortcut?

Thanks Jon, much appreciated. 

I was hoping to stick with the public release which is 2189 without the a as I am pretty close to being finished, but if its a bug fixed after that then I will just have to upgrade to the latest daily build and give it a shot. 

Yep, I launch it with the Corona Terminal shortcut. To be honest, its never really bothered me, I do all my development on my windows machine then just copy it to mac to compile. I’ve never had a need for the mac console the last few years up until this problem occured, as the fault was during build. Any runtime problems can be spotted through the device console in organiser. 

Again thanks for your help.

If you download the public release now  you will get the 2189a version that will work with xCode 5.1 so you can stick with the public version. It was patched just couple of days after.

Ok great, thanks :slight_smile:

Ok so it turns out that the corona version wasn’t my problem. The problem was that my XCode was an old version 4.5, after upgrading to XCode 5.1 the sample app compiles without crashing.