corona icon indicating copy to clipboard operation
corona copied to clipboard

[PLATFORM]: ERROR: Runtime error module 'plugin.openssl' not found:resource (plugin.openssl.lu) does not exist in archive

Open digvijayu opened this issue 4 years ago • 3 comments

Describe the bug Unable to run the native mobile application because of the run time error ERROR: Runtime error module 'plugin.openssl' not found:resource (plugin.openssl.lu) does not exist in archive

It seems the plugins are not installed automatically or I may be missing a configuration

To Reproduce Steps to reproduce the behavior:

  1. Copy the corona cross platform templates for android and ios with Corona projects
  2. Add a new plugin in the Corona/build.settings
  3. Run the native application
  4. You should see an error in logs and screen, please refer below screenshot image

Target platform and where build was made:

  • Device: iPhone11 pro simulator, android Pixel 5 simulator
  • OS: IOS 14.4, Android API 30

Additional context I am trying a spike withe openssl plugin. Following the guidelines I have added the plugin to the build.settings file. The native app templates are a copy of the simulator templates.

Same thing happens if I add any other plugin

-- File: Corona/main.lua
local openssl = require "plugin.openssl"

Below is the screenshot of how the project structure and the settings file look. image

whole test project or build.settings

--
-- For more information on build.settings see the Corona Build Guide at:
-- http://docs.coronalabs.com/guide/distribution/buildSettings/index.html
--

settings = 
{
	--[[
	orientation =
	{
		default = "portrait",
		supported = { "portrait" }
	},
	--]]

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

	iphone =
	{
		xcassets = "Images.xcassets",
		plist =
		{
			UILaunchStoryboardName = "LaunchScreen",
		},
	},
}

digvijayu avatar Jan 13 '22 10:01 digvijayu

It seems you're running M1 Arm processor. Unfortunately I failed to build OpenSSL plug-in for M1. I'll keep trying and will let you know if I was successful. Thank you so much for detailed report.

Shchvova avatar Jan 13 '22 11:01 Shchvova

Hi @Shchvova, thanks for responding to my issue. I am actually building on 2.3 GHz Quad-Core Intel Core i7, hope it helps.

digvijayu avatar Jan 14 '22 14:01 digvijayu

Same problem. i've solved this by adding plugins manually.

Here you can read how to do this https://forums.solar2d.com/t/cant-start-app-from-android-studio-plugins-not-found/354445

b0newerkz avatar Jan 26 '22 05:01 b0newerkz

Closing due collector support being add in to Solar2D Native and should now download the plugins (including for open ssl) Also a patch was implmented for m1 for open ssl

scottrules44 avatar Feb 10 '23 03:02 scottrules44