Compile error when using zip plugin

Hi all,

i was using the zip plugin successfully until last friday.

Today, when I compile the app I’m receiving an error:

Runtime error

/Users/iMac1VVirtual/Desktop/Corona/bagarela.app/.build/libtemplate/Builder.lua:310: <error>{“status”:256,“message”:“duplicate symbol _llvm.cmdline in:\n    /Users/iMac1VVirtual/Desktop/Corona/bagarela.app/.build/plugin.zip/libplugin.zip.a(ioapi.o)\n    /Users/iMac1VVirtual/Desktop/Corona/bagarela.app/.build/plugin.zip/libplugin.zip.a(unzip.o)\nduplicate symbol _llvm.embedded.module in:\n    /Users/iMac1VVirtual/Desktop/Corona/bagarela.app/.build/plugin.zip/libplugin.zip.a(ioapi.o)\n    /Users/iMac1VVirtual/Desktop/Corona/bagarela.app/.build/plugin.zip/libplugin.zip.a(unzip.o)\nduplicate symbol _llvm.cmdline in:\n    /Users/iMac1VVirtual/Desktop/Corona/bagarela.app/.build/plugin.zip/libplugin.zip.a(ioapi.o)\n    /Users/iMac1VVirtual/Desktop/Corona/bagarela.app/.build/plugin.zip/libplugin.zip.a(zip.o)\nduplicate symbol _llvm.embedded.module in:\n    /Users/iMac1VVirtual/Desktop/Corona/bagarela.app/.build/plugin.zip/libplugin.zip.a(ioapi.o)\n    /Users/iMac1VVirtual/Desktop/Corona/bagarela.app/.build/plugin.zip/libplugin.zip.a(zip.o)\nduplicate symbol _llvm.cmdline in:\n    /Users/iMac1VVirtual/Desktop/Corona/bagarela.app/.build/plugin.zip/libplugin.zip.a(ioapi.o)\n    /Users/iMac1VVirtual/Desktop/Corona/bagarela.app/.build/plugin.zip/libplugin.zip.a(ZipTask.o)\nduplicate symbol _llvm.embedded.module in:\n    /Users/iMac1VVirtual/Desktop/Corona/bagarela.app/.build/plugin.zip/libplugin.zip.a(ioapi.o)\n    /Users/iMac1VVirtual/Desktop/Corona/bagarela.app/.build/plugin.zip/libplugin.zip.a(ZipTask.o)\nduplicate symbol _llvm.cmdline in:\n    /Users/iMac1VVirtual/Desktop/Corona/bagarela.app/.build/plugin.zip/libplugin.zip.a(ioapi.o)\n    /Users/iMac1VVirtual/Desktop/Corona/bagarela.app/.build/plugin.zip/libplugin.zip.a(ZipLibrary.o)\nduplicate symbol _llvm.embedded.module in:\n    /Users/iMac1VVirtual/Desktop/Corona/bagarela.app/.build/plugin.zip/libplugin.zip.a(ioapi.o)\n    /Users/iMac1VVirtual/Desktop/Corona/bagarela.app/.build/plugin.zip/libplugin.zip.a(ZipLibrary.o)\nduplicate symbol _llvm.cmdline in:\n    /Users/iMac1VVirtual/Desktop/Corona/bagarela.app/.build/plugin.zip/libplugin.zip.a(ioapi.o)\n    /Users/iMac1VVirtual/Desktop/Corona/bagarela.app/.build/plugin.zip/libplugin.zip.a(ZipEvent.o)\nduplicate symbol _llvm.embedded.module in:\n    /Users/iMac1VVirtual/Desktop/Corona/bagarela.app/.build/plugin.zip/libplugin.zip.a(ioapi.o)\n    /Users/iMac1VVirtual/Desktop/Corona/bagarela.app/.build/plugin.zip/libplugin.zip.a(ZipEvent.o)\nduplicate symbol _llvm.cmdline in:\n    /Users/iMac1VVirtual/Desktop/Corona/bagarela.app/.build/plugin.zip/libplugin.zip.a(ioapi.o)\n    /Users/iMac1VVirtual/Desktop/Corona/bagarela.app/.build/plugin.zip/libplugin.zip.a(AsyncZip.o)\nduplicate symbol _llvm.embedded.module in:\n    /Users/iMac1VVirtual/Desktop/Corona/bagarela.app/.build/plugin.zip/libplugin.zip.a(ioapi.o)\n    /Users/iMac1VVirtual/Desktop/Corona/bagarela.app/.build/plugin.zip/libplugin.zip.a(AsyncZip.o)\nduplicate symbol _llvm.cmdline in:\n    /Users/iMac1VVirtual/Desktop/Corona/bagarela.app/.build/plugin.zip/libplugin.zip.a(ioapi.o)\n    /Users/iMac1VVirtual/Desktop/Corona/bagarela.app/.build/plugin.zip/libplugin.zip.a(AsyncTask.o)\nduplicate symbol _llvm.embedded.module in:\n    /Users/iMac1VVirtual/Desktop/Corona/bagarela.app/.build/plugin.zip/libplugin.zip.a(ioapi.o)\n    /Users/iMac1VVirtual/Desktop/Corona/bagarela.app/.build/plugin.zip/libplugin.zip.a(AsyncTask.o)\nld: 14 duplicate symbols for architecture armv7\nclang: error: linker command failed with exit code 1 (use -v to see invocation)”}</error>

If I comment the zip plugin into build.settings the compilation runs OK but the app crashes when I run it on device.

I’m using Corona 2014.2511

Above my build.settings.

Thanks for any help.

Edu

settings =

{

    plugins =

    {

        [“plugin.openssl”] =

        {

            publisherId = “com.coronalabs”,

            supportedPlatforms = { android = true, iphone = true, [“mac-sim”] = true, [“win32-sim”] = true },

        },

        [“plugin.zip”] =

        {

            publisherId = “com.coronalabs”,

        },

    },

orientation =

{

default = “landscape”,

supported = { “landscape” }

},

}

Hi, I also facing this problem and it always returning BUILD ERROR: There was a problem linking the app.

I’m using corona version 2576, did you find way to fix it yet?

uysuntray,

Unfortunatelly no.

I’m still looking for a solution.

All I know is if I remove the plugin.zip reference from build settings the compilation runs ok, but my app uses the zip functions. And until last Friday the compilations was working fine with the zip plugin.

Edu

The issue is present also on Corona build 2690.

Downloading XCode7 and the latest Corona public release to see if it is affected too… It will take me a while.

Updating to a newer build and version of xcode should fix this issue. This was an oversight on our end and the plugin should now only require Xcode 6.4 or above.

Hi @Michael,
I am using Xcode 6.4 and I already try with the latest version of corona but the same problem always occur (BUILD ERROR: There was a problem linking the app.) it is because of the zip plugin. With Xcode 6.4 and corona 2576 I had build with this for long time and nothing wrong with the zip plugin but this just error in this few day.

Regards.

Tray

I believe the linker errors you are getting because of a mismatch between the version of iOS in 2576 and Xcode 6.4. Your version of Xcode needs iOS 8.4. You should use build 2668 or newer which supports iOS 8.4.

Apples requires the version of Xcode to match the iOS build version. We enforce this rule in our newer daily builds for builds issues like you are seeing.

It seem everything is back to normal. and the build is fine now with my current Xcode and corona. Thank Tom for all the info.

Regards.

Thanks for reply guys, but it’s been working fine last week! :slight_smile: Something got broken in last few days…

I have XCode 6.4 with iOS SDK 8.4. I’ve been using it successfuly with Corona build 2690 for months.

Yes. With my current version of corona (2014.2511 (2014.11.18) and Xcode (6.4) the compilations came back to work. Thanks a lot.

But I guess I’ll schedule the update of my Xcode and Corona builder to the last release. Good bye Yosemite. El Captain here I go.

Thanks again.

Edu

It’s my post - I was logged on my other account on my PC desktop at home…

Today I tried to perform a build on my old setup on my Mac (XCode 6.4 / iOS SDK 8.4, Corona 2690) and it ran smoothly with no errors!

Great thanks to the staff guys for fixing the issue.

Hi, I also facing this problem and it always returning BUILD ERROR: There was a problem linking the app.

I’m using corona version 2576, did you find way to fix it yet?

uysuntray,

Unfortunatelly no.

I’m still looking for a solution.

All I know is if I remove the plugin.zip reference from build settings the compilation runs ok, but my app uses the zip functions. And until last Friday the compilations was working fine with the zip plugin.

Edu

The issue is present also on Corona build 2690.

Downloading XCode7 and the latest Corona public release to see if it is affected too… It will take me a while.

Updating to a newer build and version of xcode should fix this issue. This was an oversight on our end and the plugin should now only require Xcode 6.4 or above.

Hi @Michael,
I am using Xcode 6.4 and I already try with the latest version of corona but the same problem always occur (BUILD ERROR: There was a problem linking the app.) it is because of the zip plugin. With Xcode 6.4 and corona 2576 I had build with this for long time and nothing wrong with the zip plugin but this just error in this few day.

Regards.

Tray

I believe the linker errors you are getting because of a mismatch between the version of iOS in 2576 and Xcode 6.4. Your version of Xcode needs iOS 8.4. You should use build 2668 or newer which supports iOS 8.4.

Apples requires the version of Xcode to match the iOS build version. We enforce this rule in our newer daily builds for builds issues like you are seeing.

It seem everything is back to normal. and the build is fine now with my current Xcode and corona. Thank Tom for all the info.

Regards.

Thanks for reply guys, but it’s been working fine last week! :slight_smile: Something got broken in last few days…

I have XCode 6.4 with iOS SDK 8.4. I’ve been using it successfuly with Corona build 2690 for months.