I am linking the libfacebook.a for my project in Xcode and requiring “facebook” api via lua. However, during runtime I get an Xcode warning and then Lua error:
ld: warning: ignoring file CoronaEnterprise/Plugins/facebook/2014.2165/iphone/libfacebook.a, missing required architecture x86_64 in file CoronaEnterprise/Plugins/facebook/2014.2165/iphone/libfacebook.a (2 slices)
2014-08-12 14:18:12.971 babychimpchomp[13609:60b] Runtime error
module ‘facebook’ not found:resource (facebook.lu) does not exist in archive
no field package.preload[‘facebook’]
no file '/Users/oahourai/Library/Application Support/iPhone Simulator/7.1-64/Applications/9AF1BE93-E5E8-4196-A03E-0BC05FDA14C3/babychimpchomp.app/facebook.lua’
no file '/Users/oahourai/Library/Application Support/iPhone Simulator/7.1-64/Applications/9AF1BE93-E5E8-4196-A03E-0BC05FDA14C3/babychimpchomp.app/facebook.lua’
no file './facebook.so’
no file '/Users/oahourai/Library/Application Support/iPhone Simulator/7.1-64/Applications/9AF1BE93-E5E8-4196-A03E-0BC05FDA14C3/babychimpchomp.app/facebook.so’facebook
stack traceback:
[C]: in function 'require’
?: in function 'require’
/Users/oahourai/Development/BabyChimpChomp-Native/ios/…/Corona/Classes/Utils/Facebook.lua:18: in function 'init’
/Users/oahourai/Development/BabyChimpChomp-Native/ios/…/Corona/Classes/Utils/Facebook.lua:255: in main chunk
[C]: in function 'require’
?: in function 'require’
/Users/oahourai/Development/BabyChimpChomp-Native/ios/…/Corona/main.lua:85: in main chunk