Hi guys,
This was working fine previously. Currently on Corona 2015.2533. Now I am getting an error 5 when trying to build for Xcode simulator. If I build for device, it is ok.
After some testing, it works (does not show error 5 and simulator launches. but my app won’t work without this openSSL plugin) if I remove the openssl plugin.
Any ideas on how to fix this ?
Here’s the error log :
/Users/XX/Desktop/XX.app/.build/libtemplate/Builder.lua:310: \<error\>{"status":256,"message":"ld: warning: ObjC object file (/Users/XX/Desktop/XX.app/.build/libtemplate/libtemplate.a(main.o)) was compiled for iOS Simulator, but linking for MacOSX\nUndefined symbols for architecture i386:\n \"\_fwrite$UNIX2003\", referenced from:\n \_int\_rsa\_verify in libplugin.openssl.a(rsa\_sign.o)\n \_test\_rc4\_init\_key in libplugin.openssl.a(eng\_openssl.o)\n \_TXT\_DB\_read in libplugin.openssl.a(txt\_db.o)\n \_read\_string in libplugin.openssl.a(ui\_openssl.o)\n \_read\_string\_inner in libplugin.openssl.a(ui\_openssl.o)\n \_ENGINE\_load\_gost in libplugin.openssl.a(gost\_eng.o)\n \_dtls1\_retransmit\_buffered\_messages in libplugin.openssl.a(d1\_both.o)\n ...\nld: symbol(s) not found for architecture i386\nclang: error: linker command failed with exit code 1 (use -v to see invocation)"}\</error\>
My plugins :
plugins = { --["plugin.openssl"] = { publisherId = "com.coronalabs", }, -- Admob v2 ( file:///D:/Bricatta/CoronaApiDocs-2014.2302/plugin/ads-admob-v2/index.html ) ["plugin.google.play.services"] = { publisherId = "com.coronalabs" }, -- for iAd ["CoronaProvider.ads.iads"] = { publisherId = "com.coronalabs", supportedPlatforms = { iphone=true, ["iphone-sim"]=true }, }, },