OpenSSL Plugin Problem (Error 5) For xCode Simulator

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 }, }, },

Hi @yosu,

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.

Best regards,

Brent

Hi Brent,

I was working fine previously. I need it to run in xcode simulator, so I can get screenshots of the different devices, so I can submit them to Apple.

Any advice on how to make the plugin work in xcode simulator ? or maybe get screenshots for Apple submission ?

Thanks

Hi @yosu,

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.

Apologies,

Brent

Dear Brent,

Thanks for the info.

Same runtime error on the device (iPhone, Android)

Runtime error

module ‘plugin.openssl’ not found

openSSL is very important for 2 of my Apps. If the 64 bit ver. will not be available soon, is there any other way to do encryption?

Hi @ashokry,

The OpenSSL plugin should still work on devices. You just can’t test it in the Xcode Simulator at this time, as explained earlier in this thread.

Best regards,

Brent

Thanks Brent,

Unfortunately i got Runtime error on iPhone 6, and Android devices

‘plugin.openssl’ not found: resource (plugin.openssl.lu) does not exist in archive

Hi,

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).

Here’s my declaration in build.settings.

Hope it helps.

plugins = { ["plugin.openssl"] = { publisherId = "com.coronalabs", }, },

Hi @ashokry,

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).

Brent

Hi @yosu,

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.

Best regards,

Brent

Hi Brent,

I was working fine previously. I need it to run in xcode simulator, so I can get screenshots of the different devices, so I can submit them to Apple.

Any advice on how to make the plugin work in xcode simulator ? or maybe get screenshots for Apple submission ?

Thanks

Hi @yosu,

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.

Apologies,

Brent

Dear Brent,

Thanks for the info.

Same runtime error on the device (iPhone, Android)

Runtime error

module ‘plugin.openssl’ not found

openSSL is very important for 2 of my Apps. If the 64 bit ver. will not be available soon, is there any other way to do encryption?

Hi @ashokry,

The OpenSSL plugin should still work on devices. You just can’t test it in the Xcode Simulator at this time, as explained earlier in this thread.

Best regards,

Brent

Thanks Brent,

Unfortunately i got Runtime error on iPhone 6, and Android devices

‘plugin.openssl’ not found: resource (plugin.openssl.lu) does not exist in archive

Hi,

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).

Here’s my declaration in build.settings.

Hope it helps.

plugins = { ["plugin.openssl"] = { publisherId = "com.coronalabs", }, },