Build error: library not found for -l-lplugin.openssl

I’m having problem building these days. Using Build 2214  but problem present in couple of previous builds as well or its a iOS 7.1 problem, not sure which.

Here is the whole message from console:

2014-03-25 14:43:21.151 Corona Simulator[47481:507] Using Custom Build Id 00000

Using additional build settings from: /myapp/myapp/build.settings

WARNING: Your SDK may be out of date b/c the following SDK directory could not be found:    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk

WARNING: Using the following SDK instead:     /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk

WARNING: Your SDK may be out of date b/c the following SDK directory could not be found:    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk

WARNING: Using the following SDK instead:     /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk

Runtime error

    /myapp.app/.build/libtemplate/Builder.lua:295: <error>{“status”:256,“message”:“ld: library not found for -l-lplugin.openssl\nclang: error: linker command failed with exit code 1 (use -v to see invocation)”}</error>

stack traceback:

    [C]: ?

    [C]: in function ‘assert’

    /myapp.app/.build/libtemplate/Builder.lua:295: in function ‘checkError’

    /myapp.app/.build/libtemplate/Builder.lua:318: in function ‘build’

    ?: in function ‘buildExe’

    ?: in function <?:695>

Runtime error: /myapp.app/.build/libtemplate/Builder.lua:295: <error>{“status”:256,“message”:“ld: library not found for -l-lplugin.openssl\nclang: error: linker command failed with exit code 1 (use -v to see invocation)”}</error>

stack traceback:

    [C]: ?

    [C]: in function ‘assert’

    /myapp.app/.build/libtemplate/Builder.lua:295: in function ‘checkError’

    /myapp.app/.build/libtemplate/Builder.lua:318: in function ‘build’

    ?: in function ‘buildExe’

    ?: in function <?:695>

OSX 10.9.2

Xcode 5.1

Corona SDK 2014.2214 (Pro version)

I don’t get the error you mention.

(I do get the 7.0 SDK missing warnings though, but I assume that’s because I only have Xcode 5.1 installed)

One thing that looks weird is the “-l-l” when specifying the plugin.

Which plugins are you using?

Thanks for the reply Ingemar.  Are you building with openssl?

I have the same specs.

For plugins I’m using

“plugin.google.iap.v3”

“plugin.openssl”

“CoronaProvider.analytics.flurry”

“facebook”

I tried now to comment out plugin.openssl and getting this error

Using Custom Build Id 00000 Using additional build settings from: myApp/build.settings WARNING: Your SDK may be out of date b/c the following SDK directory could not be found: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk WARNING: Using the following SDK instead: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk WARNING: Your SDK may be out of date b/c the following SDK directory could not be found: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk WARNING: Using the following SDK instead: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk Runtime error /myApp.app/.build/libtemplate/Builder.lua:295: \<error\>{"status":256,"message":"clang: error: no such file or directory: '/myApp.app/myApp'"}\</error\> stack traceback: [C]: ? [C]: in function 'assert' /myApp.app/.build/libtemplate/Builder.lua:295: in function 'checkError' /myApp.app/.build/libtemplate/Builder.lua:318: in function 'build' ?: in function 'buildExe' ?: in function \<?:695\> Runtime error: /myApp.app/.build/libtemplate/Builder.lua:295: \<error\>{"status":256,"message":"clang: error: no such file or directory: '/myApp.app/myApp'"}\</error\> stack traceback: [C]: ? [C]: in function 'assert' /myApp.app/.build/libtemplate/Builder.lua:295: in function 'checkError' /myApp.app/.build/libtemplate/Builder.lua:318: in function 'build' ?: in function 'buildExe' ?: in function \<?:695\>

I can build other apps OK, something is happening with my project I guess.

OK it refuses to build with the “plugin.google.iap.v3” plugin:

[lua]plugins = {

         [“plugin.google.iap.v3”] = {publisherId = “com.coronalabs”},

         --[“plugin.openssl”] = { publisherId = “com.coronalabs”, },

         --[“CoronaProvider.analytics.flurry”] = {publisherId = “com.coronalabs”},

         --[“facebook”] = {publisherId = “com.coronalabs”, supportedPlatforms = { iphone = true, [“iphone-sim”] = true }, }, 

    }[/lua]

I guess I can put that under android only right? Its building OK that way

[lua]android = {

        plugins = {

            [“plugin.google.iap.v3”] = {publisherId = “com.coronalabs”},

        },

    },[/lua]

I don’t think that the plugins{} table can be specified there.

What happens if you add “,supportedPlatforms = {iphone=false}” to the google.iap.v3 plugin?

Nope… I tested it myself and adding supportedPlatforms doesn’t help.

iOS builds fail, Android builds are OK.

Yeah tried as well, I just added that plugin recently so I have never tried building with it before probably.

I don’t think that the plugins{} table can be specified there.

I have some old commented out code in my build.settings using that method, not too sure about where it came from. I’ll build an Android version and give it a go.

Thanks for help.

Specifying the plugin under Android did not work, didn’t build with the plugin. I will report the problem.

EDIT: Case 31519

OSX 10.9.2

Xcode 5.1

Corona SDK 2014.2214 (Pro version)

I don’t get the error you mention.

(I do get the 7.0 SDK missing warnings though, but I assume that’s because I only have Xcode 5.1 installed)

One thing that looks weird is the “-l-l” when specifying the plugin.

Which plugins are you using?

Thanks for the reply Ingemar.  Are you building with openssl?

I have the same specs.

For plugins I’m using

“plugin.google.iap.v3”

“plugin.openssl”

“CoronaProvider.analytics.flurry”

“facebook”

I tried now to comment out plugin.openssl and getting this error

Using Custom Build Id 00000 Using additional build settings from: myApp/build.settings WARNING: Your SDK may be out of date b/c the following SDK directory could not be found: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk WARNING: Using the following SDK instead: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk WARNING: Your SDK may be out of date b/c the following SDK directory could not be found: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk WARNING: Using the following SDK instead: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk Runtime error /myApp.app/.build/libtemplate/Builder.lua:295: \<error\>{"status":256,"message":"clang: error: no such file or directory: '/myApp.app/myApp'"}\</error\> stack traceback: [C]: ? [C]: in function 'assert' /myApp.app/.build/libtemplate/Builder.lua:295: in function 'checkError' /myApp.app/.build/libtemplate/Builder.lua:318: in function 'build' ?: in function 'buildExe' ?: in function \<?:695\> Runtime error: /myApp.app/.build/libtemplate/Builder.lua:295: \<error\>{"status":256,"message":"clang: error: no such file or directory: '/myApp.app/myApp'"}\</error\> stack traceback: [C]: ? [C]: in function 'assert' /myApp.app/.build/libtemplate/Builder.lua:295: in function 'checkError' /myApp.app/.build/libtemplate/Builder.lua:318: in function 'build' ?: in function 'buildExe' ?: in function \<?:695\>

I can build other apps OK, something is happening with my project I guess.

OK it refuses to build with the “plugin.google.iap.v3” plugin:

[lua]plugins = {

         [“plugin.google.iap.v3”] = {publisherId = “com.coronalabs”},

         --[“plugin.openssl”] = { publisherId = “com.coronalabs”, },

         --[“CoronaProvider.analytics.flurry”] = {publisherId = “com.coronalabs”},

         --[“facebook”] = {publisherId = “com.coronalabs”, supportedPlatforms = { iphone = true, [“iphone-sim”] = true }, }, 

    }[/lua]

I guess I can put that under android only right? Its building OK that way

[lua]android = {

        plugins = {

            [“plugin.google.iap.v3”] = {publisherId = “com.coronalabs”},

        },

    },[/lua]

I don’t think that the plugins{} table can be specified there.

What happens if you add “,supportedPlatforms = {iphone=false}” to the google.iap.v3 plugin?

Nope… I tested it myself and adding supportedPlatforms doesn’t help.

iOS builds fail, Android builds are OK.

Yeah tried as well, I just added that plugin recently so I have never tried building with it before probably.

I don’t think that the plugins{} table can be specified there.

I have some old commented out code in my build.settings using that method, not too sure about where it came from. I’ll build an Android version and give it a go.

Thanks for help.

Specifying the plugin under Android did not work, didn’t build with the plugin. I will report the problem.

EDIT: Case 31519

Hi guys, any solution so far? I’m having the same issue as you did back in March

Thanks

I just followed up my bug report this week actually, got reply from Tom:

Hello,

You can specify that the plugin is only used for a specific platform by adding the following line in the plugin definition (build.settings):

    plugins = {

        [“plugin.google.iap.v3”] = { publisherId = “com.coronalabs”,

        supportedPlatforms = { [“android”] = true } }

    }

The above will only include the plugin for Android.

This works. I added a comment to the documentation to amend it as well.

Hi guys, any solution so far? I’m having the same issue as you did back in March

Thanks

I just followed up my bug report this week actually, got reply from Tom:

Hello,

You can specify that the plugin is only used for a specific platform by adding the following line in the plugin definition (build.settings):

    plugins = {

        [“plugin.google.iap.v3”] = { publisherId = “com.coronalabs”,

        supportedPlatforms = { [“android”] = true } }

    }

The above will only include the plugin for Android.

This works. I added a comment to the documentation to amend it as well.