zip Plugin With Error : sh: /Applications/Xcode: No such file or directory

Hi

I use zip Plugin in my app and get This Error .

i searched all post in forum but i did not get the answer .

My build.setting is :

settings =

{

–[[

orientation = {

default = “portrait”, 

supported = { “portrait”, },

– supported = { “landscapeLeft”, “landscapeRight” },

– supported = { “landscapeLeft”, “landscapeRight”, “portrait”, “portraitUpsideDown”, },

},

–]]

iphone =

{

plist =

{

– UIApplicationExitsOnSuspend = true, – default is false

CFBundleIconFile = “Icon.png”,

CFBundleIconFiles =

{

“Icon.png”, 

“Icon@2x.png”, 

“Icon-72.png”, 

},

},

},

– INSTRUCTIONS

– 

– 1. Rename PLUGIN_NAME to the name of your plugin, e.g. “openudid”

– 2. Rename REVERSE_PUBLISHER_URL using the reverse domain name, e.g. “com.mycompany”

plugins = 

   {

      [“plugin.zip”] =

      {

         publisherId = “com.coronalabs”,

      },

   },

}

my main.lua is :

local zip = require( “plugin.zip” )

yes , i lust require zip plugin but i have this Error :

Mar 25 14:33:57.573: Server dir name: Corona.app

Mar 25 14:33:57.573: Server app name: Corona (local name: Corona)

Mar 25 14:33:57.697: builder: buildOptions: {

Mar 25 14:33:57.697:   “dstDir”:"/Users/amirhessam/Desktop/Build Apps/Corona.app",

Mar 25 14:33:57.697:   “dstName”:“Corona”,

Mar 25 14:33:57.697:   “dstPath”:"/Users/amirhessam/Desktop/Build Apps/Corona.app/Corona",

Mar 25 14:33:57.697:   “librarySearchPaths”:["/Users/amirhessam/Desktop/Build Apps/Corona.app/.build/libtemplate"],

Mar 25 14:33:57.698:   “pluginsDir”:"/Users/amirhessam/Desktop/Build Apps/Corona.app/.build",

Mar 25 14:33:57.698:   “sdkType”:“iphonesimulator”,

Mar 25 14:33:57.698:   “tmpDir”:"/var/folders/5v/3q5rc5j52zv3dknrbvvktcj80000gn/T/CLtmpwinVgM",

Mar 25 14:33:57.698:   “verbose”:false

Mar 25 14:33:57.698: }

Mar 25 14:33:57.832: ERROR: Builder failed: sh: /Applications/Xcode: No such file or directory

Mar 25 14:33:57.832: BUILD ERROR: There was a problem linking the app.

 

Check the console for more information.

Mar 25 14:33:57.839: iOS build failed (12)

 

 

 

i use :

 

corona sdk 2015.2565

xcode 6.1

mac os 10.9.4

 

 

help me to solve this problem .

i get this error when i use another plugins like : openudid , pasteboard , …

 

Thanks

When you run:

xcode-select -p

from a terminal command line, what dos it say?

hi rob

when i run Xcode-select -p in terminal , output is :

/Applications/Xcode 2.app/Contents/Developer

Normally I would expect Xcode to be at: /Applications/Xcode.app/Contents/Developer

This is the path that the Apple Store would install your Xcode at.   So my question is why is yours “Xcode 2”?  Most likely the space is causing issues with the shell scripts that build’s the app. 

You can use xcode-select -s /Applications/Xcode.app/Contents/Developer

to point it to where it should be, but if your Xcode is really at Xcode 2, then you may have to solve that issue.

Rob

When you run:

xcode-select -p

from a terminal command line, what dos it say?

hi rob

when i run Xcode-select -p in terminal , output is :

/Applications/Xcode 2.app/Contents/Developer

Normally I would expect Xcode to be at: /Applications/Xcode.app/Contents/Developer

This is the path that the Apple Store would install your Xcode at.   So my question is why is yours “Xcode 2”?  Most likely the space is causing issues with the shell scripts that build’s the app. 

You can use xcode-select -s /Applications/Xcode.app/Contents/Developer

to point it to where it should be, but if your Xcode is really at Xcode 2, then you may have to solve that issue.

Rob