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\>
I’m not absolutely certain, but my guess is that the OpenSSL plugin just doesn’t work in the Xcode Simulator. Ultimately, device testing is the best regardless, so if it works on device, I suggest that you rely on that.
We confirmed that there is a problem with the OpenSSL plugin for Xcode (Error 5) because of the changes to support 64bit. We could revert the plugin but we will have the same problem in the next few weeks when we change everything over to 64bit. Fixing the plugin to support 64bit is a bigger issue, so for now, we can’t support the Xcode OpenSSL plugin.
I just did a few builds, and it works fine on iPad and a few Android devices. I do notice that it takes a while to download the plugin at certain times of the day. It is usually fast around 8pm (EST US time).
We also checked the OpenSSL plugin on iPad Air 2, iPhone 6, iPhone 5 and Android Samsung Tab 4 devices. Everything works correctly using build 2511 and build 2540.
Our conclusion, if this persists, is that the problem is in your code. We see no issues with building and running the plugins on all platforms (except Xcode Simulator).
I’m not absolutely certain, but my guess is that the OpenSSL plugin just doesn’t work in the Xcode Simulator. Ultimately, device testing is the best regardless, so if it works on device, I suggest that you rely on that.
We confirmed that there is a problem with the OpenSSL plugin for Xcode (Error 5) because of the changes to support 64bit. We could revert the plugin but we will have the same problem in the next few weeks when we change everything over to 64bit. Fixing the plugin to support 64bit is a bigger issue, so for now, we can’t support the Xcode OpenSSL plugin.
I just did a few builds, and it works fine on iPad and a few Android devices. I do notice that it takes a while to download the plugin at certain times of the day. It is usually fast around 8pm (EST US time).