iPhone build error with plugin

What version of Xcode are you running?

I am using xcode 4.6.3

Thanks.

can you run the command line command:

xcode-select --print-path

and let me know what it says?

Hi i got this response.

/Volumes/Xcode/Xcode.app/Contents/Developer

You don’t have a line in your build.settings setting a minimum OS version do you?  Can you  post your build.settings?

My build.setting is 

settings =

{

    orientation =

    {

        default = “portrait”,

        supported = { “portrait”,“landscapeLeft” }

    },

    iphone =

    {

        plist =

        {

            CFBundleIconFile = “Icon.png”,

            CFBundleIconFiles = {

            “Icon.png”, 

            “Icon@2x.png”, 

            “Icon-72.png”, 

            },

        },

    },

    – enable the admob plugin

    plugins =

    {

        [“CoronaProvider.ads.admob”] =

        {

            – required

            publisherId = “com.coronalabs”,

        },

    },        

}

Can you do an: 

ls -l /Applications/Xcode.app/Contents/Developer

from the command line and see if Xcode is actually installed there?  /Volumes/Xcode/Xcode.app/Contents/Developer looks like an old path.  Are you running Xcode from /Volumes/Xcode or /Applications?  If you’re launching it from the dock, you can right-click on the Xcode icon and do a “Show in finder” and see if it’s picking the version in /Applications or /Volumes/Xcode.   Apple has been installing Xcode in /Applications for a while now.

Hi I got this response.

total 0

drwxr-xr-x  3 mshah  admin  102 Aug  1 13:27 Documentation

This is what you should see:

unknown002248a51acb:tmp rmiracle$ ls -l /Applications/Xcode.app/Contents/Developer total 0 drwxr-xr-x@  3 rmiracle  admin  102 Sep  7 01:38 Documentation drwxr-xr-x@  6 rmiracle  admin  204 Sep  7 03:01 Library drwxr-xr-x@  6 rmiracle  admin  204 Sep  7 03:01 Makefiles drwxr-xr-x@  5 rmiracle  admin  170 Sep  7 02:36 Platforms drwxr-xr-x@  3 rmiracle  admin  102 Aug 16 21:25 Toolchains drwxr-xr-x@ 18 rmiracle  admin  612 Sep  7 02:41 Tools drwxr-xr-x@  7 rmiracle  admin  238 Sep  7 03:01 usr

So that tells me your Xcode isn’t installed correctly.   The error messages is looking inside the above folder for things and not finding it.   I would go to the Mac app store and install Xcode from there, and then run the xcode-select tool to point it to the /Applciations version and see if that solves your problems.

Thank you so Much Rob.

Now i understand that corona sdk find xcode.app everytime.In my mac mini there were many xcodes as  [ xcode.app , xcode4.3.2.app , xcode4.3.4 and xcode5-DP6.app.]

I remove all the Xcode.app except  xcode5-DP6.app.And rename it to xcode.app.
We Need to rename because i download this xcode from appstore and it name was xcode5-DP6.app.

Thank you.

If the Mac store is giving you DP6, then you probably should login to the Apple developer’s portal and get it from there since it’s the GM seed and will be named accordingly.

Hello,

I have the same error (Could not determine installed version of iOS SDK) as soon as I add the facebook plugin into build.settings :

    plugins =

    {

        [“facebook”] =

        {

            publisherId = “com.coronalabs”

        },

    },

, as it is explained here : http://docs.coronalabs.com/daily/guide/social/implementFacebook/index.html

Without it, the build is fine. As soon as I add it, there is a Unexpected Build error (error code :5)

Here is the console log :

Mar 17 01:08:04.273: mv: rename /Users/olivier/Desktop/myapp.app/myapp to /Users/olivier/Desktop/myapp.app/myapp: No such file or directory Mar 17 01:08:04.276: mv: rename /Users/olivier/Desktop/myapp.app to /Users/olivier/Desktop/myapp.app/myapp.app: Invalid argument Mar 17 01:08:04.290: Runtime error /Users/olivier/Desktop/myapp.app/.build/libtemplate/Defaults.lua:96: ERROR: Could not determine installed version of iOS SDK. stack traceback: [C]: ? [C]: in function 'assert' /Users/olivier/Desktop/myapp.app/.build/libtemplate/Defaults.lua:96: in function 'updateSDK' /Users/olivier/Desktop/myapp.app/.build/libtemplate/Defaults.lua:124: in function 'updateSDK\_iPhoneSimulator' /Users/olivier/Desktop/myapp.app/.build/libtemplate/Builder.lua:225: in function 'compile' /Users/olivier/Desktop/myapp/.build/libtemplate/Builder.lua:333: in function 'build' ?: in function 'buildExe' ?: in function \<?:641\> Mar 17 01:08:04.298: iOS build failed (5)

What may be wrong ? 

Thanks

Hello,

I have the same error (Could not determine installed version of iOS SDK) as soon as I add the facebook plugin into build.settings :

    plugins =

    {

        [“facebook”] =

        {

            publisherId = “com.coronalabs”

        },

    },

, as it is explained here : http://docs.coronalabs.com/daily/guide/social/implementFacebook/index.html

Without it, the build is fine. As soon as I add it, there is a Unexpected Build error (error code :5)

Here is the console log :

Mar 17 01:08:04.273: mv: rename /Users/olivier/Desktop/myapp.app/myapp to /Users/olivier/Desktop/myapp.app/myapp: No such file or directory Mar 17 01:08:04.276: mv: rename /Users/olivier/Desktop/myapp.app to /Users/olivier/Desktop/myapp.app/myapp.app: Invalid argument Mar 17 01:08:04.290: Runtime error /Users/olivier/Desktop/myapp.app/.build/libtemplate/Defaults.lua:96: ERROR: Could not determine installed version of iOS SDK. stack traceback: [C]: ? [C]: in function 'assert' /Users/olivier/Desktop/myapp.app/.build/libtemplate/Defaults.lua:96: in function 'updateSDK' /Users/olivier/Desktop/myapp.app/.build/libtemplate/Defaults.lua:124: in function 'updateSDK\_iPhoneSimulator' /Users/olivier/Desktop/myapp.app/.build/libtemplate/Builder.lua:225: in function 'compile' /Users/olivier/Desktop/myapp/.build/libtemplate/Builder.lua:333: in function 'build' ?: in function 'buildExe' ?: in function \<?:641\> Mar 17 01:08:04.298: iOS build failed (5)

What may be wrong ? 

Thanks