coronalabs / corona

Solar2D Game Engine main repository (ex Corona SDK)
https://solar2d.com/
MIT License
2.5k stars 267 forks source link

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

Closed digvijayu closed 1 year ago

digvijayu commented 2 years ago

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:

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",
        },
    },
}
Shchvova commented 2 years ago

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.

digvijayu commented 2 years ago

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

b0newerkz commented 2 years ago

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

scottrules44 commented 1 year ago

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