Facebook Plugin not found in xCode Simulator

Hi,

I am getting an error, saying that the facebook (I tried both v4 & v4a) plugin is not found. My other plugins (e.g. openssl) works when ‘require’ is called.

I have downloaded the plugins (based on https://coronalabs.com/blog/2017/07/06/using-plugins-in-corona-native-projects-ios/), and also confirm the plugin exists in my drive ( /Users/xxx/Library/Application Support/Corona/Native Plugins/iphone/plugin.facebook.v4a_com.coronalabs.tgz ).  I also updated the  Info.plist and linked the static library files.

When i try running it on iPhone7+ simulator, this error appears :

2017-10-12 00:38:14.450 App[89842:1465627] Platform: iPhone / x86\_64 / 10.3 / Apple Software Renderer / OpenGL ES 2.0 APPLE-14.0.15 / 2017.3135 / en | US | en\_US | en 2017-10-12 00:38:14.459 App[89842:1465627] ERROR: Runtime error module 'plugin.facebook.v4a' not found:resource (plugin.facebook.v4a.lu) does not exist in archive no field package.preload['plugin.facebook.v4a']

build.settings :

... plugins = { ["plugin.openssl"] = { publisherId = "com.coronalabs", }, ["plugin.notifications"] = { publisherId = "com.coronalabs" }, ["CoronaProvider.native.popup.social"] = { publisherId = "com.coronalabs" }, -- ["plugin.facebook.v4"] = { publisherId = "com.coronalabs", supportedPlatforms = { iphone=true, android=true, ["android-kindle"]=true } }, ["plugin.facebook.v4a"] = { publisherId = "com.coronalabs" }, ['plugin.qrscanner'] = {publisherId = 'com.spiralcodestudio'}, ['plugin.vibrator'] = {publisherId = 'com.spiralcodestudio'}, }, ...

Need help. What I am missing ?

Thanks

+1

I’m having the same problem as well. Works on device but not on simulator.

thanks

Have you worked through all the “Native” requirements listed in the plugin docs?

https://docs.coronalabs.com/plugin/facebook-v4a/index.html

Rob

Yes, have gone through it together with the Native portion.

Here is a short video I did using the ‘App template’ in 2017.3135

https://youtu.be/6WcSYaDJKpg

It shows the failure at the end. I am guessing the way the facebook  .a files are linked.

Ok, i found the problem. It is because the xCode was looking at an old folder which also contains related-facebook lib files. This cause the error link and others. Most likely it is because I am migrating the old app.

+1

I’m having the same problem as well. Works on device but not on simulator.

thanks

Have you worked through all the “Native” requirements listed in the plugin docs?

https://docs.coronalabs.com/plugin/facebook-v4a/index.html

Rob

Yes, have gone through it together with the Native portion.

Here is a short video I did using the ‘App template’ in 2017.3135

https://youtu.be/6WcSYaDJKpg

It shows the failure at the end. I am guessing the way the facebook  .a files are linked.

Ok, i found the problem. It is because the xCode was looking at an old folder which also contains related-facebook lib files. This cause the error link and others. Most likely it is because I am migrating the old app.