iPhone build error with plugin

plugins =

                        {

                            

                            – key is the name passed to Lua’s ‘require()’

                            [“plugin.zip”] =

                            {

                                – required

                                publisherId = “com.coronalabs”,

                            },

                        }

– I am using zip plugin in my app for download files from cloud.This is working well with Android But Error in making build for iPhone.

– it shows " null! " in pop up after completion of build.

– If i remove plugin table from my build.settings then it will not give error but zip file handling is not working.

– Please give me a solution ,if anyone have successfully implement zip plugin in iPhone.

Thank you in advance.

Hey dev110,

Did you ever figure this out?

After spending hours tracking this down, I realize I am having the same error as well.

The “null” error can happen if you have a syntax error in your code when you try to build.  It doesn’t have to be a module you are even using.  Please look at your console log and look for additional errors that could indicate the cause of this. 

Find it odd that a syntax error would be the culprit here since the original poster reports that it builds fine for Android, but not for iOS.

I have error as below in console.

Using additional build settings from: /Users/mshah/Desktop/Bhavin/Secret AgentLinguist/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/iPhoneSimulator6.1.sdk

Runtime error

    …retAgentLinguist.app/.build/libtemplate/Defaults.lua:99: ERROR: Could not determine installed version of iOS SDK.

stack traceback:

    [C]: ?

    [C]: in function ‘assert’

    …retAgentLinguist.app/.build/libtemplate/Defaults.lua:99: in function ‘updateSDK’

    …retAgentLinguist.app/.build/libtemplate/Defaults.lua:120: in function ‘updateSDK_iPhoneSimulator’

    …cretAgentLinguist.app/.build/libtemplate/Builder.lua:210: in function ‘compile’

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

    ?: in function ‘buildExe’

    ?: in function <?:692>

Runtime error: …retAgentLinguist.app/.build/libtemplate/Defaults.lua:99: ERROR: Could not determine installed version of iOS SDK.

stack traceback:

    [C]: ?

    [C]: in function ‘assert’

    …retAgentLinguist.app/.build/libtemplate/Defaults.lua:99: in function ‘updateSDK’

    …retAgentLinguist.app/.build/libtemplate/Defaults.lua:120: in function ‘updateSDK_iPhoneSimulator’

    …cretAgentLinguist.app/.build/libtemplate/Builder.lua:210: in function ‘compile’

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

    ?: in function ‘buildExe’

    ?: in function <?:692>

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

Hey dev110,

Did you ever figure this out?

After spending hours tracking this down, I realize I am having the same error as well.

This is what you should see:

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

The “null” error can happen if you have a syntax error in your code when you try to build.  It doesn’t have to be a module you are even using.  Please look at your console log and look for additional errors that could indicate the cause of this. 

Find it odd that a syntax error would be the culprit here since the original poster reports that it builds fine for Android, but not for iOS.

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.

I have error as below in console.

Using additional build settings from: /Users/mshah/Desktop/Bhavin/Secret AgentLinguist/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/iPhoneSimulator6.1.sdk

Runtime error

    …retAgentLinguist.app/.build/libtemplate/Defaults.lua:99: ERROR: Could not determine installed version of iOS SDK.

stack traceback:

    [C]: ?

    [C]: in function ‘assert’

    …retAgentLinguist.app/.build/libtemplate/Defaults.lua:99: in function ‘updateSDK’

    …retAgentLinguist.app/.build/libtemplate/Defaults.lua:120: in function ‘updateSDK_iPhoneSimulator’

    …cretAgentLinguist.app/.build/libtemplate/Builder.lua:210: in function ‘compile’

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

    ?: in function ‘buildExe’

    ?: in function <?:692>

Runtime error: …retAgentLinguist.app/.build/libtemplate/Defaults.lua:99: ERROR: Could not determine installed version of iOS SDK.

stack traceback:

    [C]: ?

    [C]: in function ‘assert’

    …retAgentLinguist.app/.build/libtemplate/Defaults.lua:99: in function ‘updateSDK’

    …retAgentLinguist.app/.build/libtemplate/Defaults.lua:120: in function ‘updateSDK_iPhoneSimulator’

    …cretAgentLinguist.app/.build/libtemplate/Builder.lua:210: in function ‘compile’

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

    ?: in function ‘buildExe’

    ?: in function <?:692>