Build error (NULL) for iOS 2013.2100

Last week i upgraded from Starter to Basic, i downloaded the latest public release (2013.2100), but since then i can’t build anymore for iOS.

I get a build error (NULL) and the following error in the Console:

Using additional build settings from: /Users/user/Dropbox/Projecten/Game/build.settings

Runtime error

    …gs/Insectosuction.app/.build/libtemplate/Builder.lua:295: <error>{“status”:256,“message”:“clang: error: no such file or directory: ‘/Users/user/Dropbox/Projecten/Game.app/Game’”}</error>

stack traceback:

    [C]: ?

    [C]: in function ‘assert’

    …gs/Game.app/.build/libtemplate/Builder.lua:295: in function ‘checkError’

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

    ?: in function ‘buildExe’

    ?: in function <?:695>

Runtime error: …gs/Game.app/.build/libtemplate/Builder.lua:295: <error>{“status”:256,“message”:“clang: error: no such file or directory: ‘/Users/user/Dropbox/Projecten/Game/Game.app/Game’”}</error>

stack traceback:

    [C]: ?

    [C]: in function ‘assert’

    …gs/Game.app/.build/libtemplate/Builder.lua:295: in function ‘checkError’

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

    ?: in function ‘buildExe’

    ?: in function <?:695>

i still can successfully build for android.

i’ve:

mac OS X 10.7.5

xCode 4.6
Corona SDK 2013.2100

I’ve removed all unused lua files from my Game directory. I dont have subfolders.

Minor change is: since the update i got Graphics 2.0, but have the build.settings adjusted to compatibility-mode 

What can cause this error? I really need to build for iOS :slight_smile:

I am using the same OS X, xCode and Corona versions and have the same problem. For me it’s the plugins I use. If, in my build.settings I list the plugins like this:

 settings =

{
plugins =
{
– key is the name passed to Lua’s ‘require()’
[“plugin.photon”] =
{
– required
publisherId = “com.exitgames”,
},
},
}

I get the NULL error when I build for IOS. If I remove the plugins from the build settings everything builds fine but the functionality of the plugins will not work. 

Still working on it.

Chris 

Can you post your build.settings?

Mac OS X 10.7.5

xCode 4.6

Corona 2013-2100

Pro Subscriber

build.setting

settings =

{

      plugins =

    {

        

    [“plugin.photon”] =

        {publisherId = “com.exitgames”, }, 

    [“CoronaProvider.analytics.flurry”] =

        {publisherId = “com.coronalabs”,},

        [“CoronaProvider.ads.admob”] =

            {publisherId = “com.coronalabs”,},

        [“plugin.tapfortap”] =

           {publisherId = “com.tapfortap”,},

    },

     orientation =

    {default = “landscape”,

    supported = { “landscape”  },

        },

      android =

    {

        usesPermissions =

        {“android.permission.INTERNET”,},

    },

      iphone =

    {

        plist =

        {

            CFBundleIconFile = “Icon.png”,

            CFBundleIconFiles =

            {

                “Icon.png”, 

                “Icon@2x.png”, 

                “Icon-72.png”, 

                “Icon-72@2x.png”, 

            },

        },

    },

}

Output window:

Runtime error

    …er/SailBoatBattle.app/.build/libtemplate/Builder.lua:295: <error>{“status”:32512,“message”:“sh: /Applications/Xcode.app/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++: No such file or directory”}</error>

stack traceback:

    [C]: ?

    [C]: in function ‘assert’

    …er/SailBoatBattle.app/.build/libtemplate/Builder.lua:295: in function ‘checkError’

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

    ?: in function ‘buildExe’

    ?: in function <?:695>

Runtime error: …er/SailBoatBattle.app/.build/libtemplate/Builder.lua:295: <error>{“status”:32512,“message”:“sh: /Applications/Xcode.app/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++: No such file or directory”}</error>

stack traceback:

    [C]: ?

    [C]: in function ‘assert’

    …er/SailBoatBattle.app/.build/libtemplate/Builder.lua:295: in function ‘checkError’

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

    ?: in function ‘buildExe’

    ?: in function <?:695>

When I build with the plugins I get this error. If I build without the plugins it will build but not run properly because of the missing plugins. 

 Thanks for looking into this. 

 Chris

Everything worked for Android

https://play.google.com/store/apps/details?id=com.rennie.sailboatbattlearena

Working to get it out for iOS. Any help would be great. 

can you try and build commenting out one plugin at a time to see if it’s a particular plugin?

Thanks

Rob

Rob, already thought of that. If any plugin is there the build fails.

The other question is have you downloaded the new public build (2189) and tried that?

I’ll check with engineering and see if they recognize those errors.  Do you have a file called “Builder.lua”?

I was going to download the new public build and test that out but came across a problem:

Requires OS 10.8 , I have 10.7.5

Upgrading to Maverick gave me problems so I restored 10.7.5.

Getting an external drive delivered next week so I can backup my drive and try again. 

When I can get that going, and upgrade xCode 4.6 to 5.1 then I will install the latest public release.

I’m not sure if Graphics 1 compatibility is still available in this release , if not I’ll have to go in and convert everything over to Graphics 2 so I don’t get any errors and things still look right.

Then I’ll try to build for iOS again.

Oh, and no Builder.lua file. I thought this was an internal corona file

Chris

Just for fun, can you copy your build.settings to a file called buildsettings.lua then in your main.lua do a :

require(“buildsettings”)

and see if you get any errors.

Rob

The error seems to be due to Xcode not being installed correctly.  I doubt you can still get 4.6 to install, so you may have to go to Xcode 5.1.

Rob

I was able to reload xCode 4.6.3 and now the plugins do not give me any trouble .

Thank you

 Chris

Sailboat Battle coming soon to iOS!!

Hi Rob,

I’m now also getting this problem.

I moved my XCode to trash, and downloaded it from the App Store again.

I moved my Corona SDK to trash, and downloaded it from the Corona website again (https://developer.coronalabs.com/downloads/mac)

This is the output from terminal:

Using additional build settings from: /Users/MacKirk/Dropbox/Best Cricket Pro Graphics/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
    /Users/MacKirk/Dropbox/TheBestCricketGameEver.app/.build/libtemplate/Builder.lua:295: <error>{“status”:256,“message”:“clang: error: no such file or directory: ‘/Users/MacKirk/Dropbox/TheBestCricketGameEver.app/TheBestCricketGameEver’”}</error>
stack traceback:
    [C]: ?
    [C]: in function ‘assert’
    /Users/MacKirk/Dropbox/TheBestCricketGameEver.app/.build/libtemplate/Builder.lua:295: in function ‘checkError’
    /Users/MacKirk/Dropbox/TheBestCricketGameEver.app/.build/libtemplate/Builder.lua:318: in function ‘build’
    ?: in function ‘buildExe’
    ?: in function <?:695>
Runtime error: /Users/MacKirk/Dropbox/TheBestCricketGameEver.app/.build/libtemplate/Builder.lua:295: <error>{“status”:256,“message”:“clang: error: no such file or directory: ‘/Users/MacKirk/Dropbox/TheBestCricketGameEver.app/TheBestCricketGameEver’”}</error>
stack traceback:
    [C]: ?
    [C]: in function ‘assert’
    /Users/MacKirk/Dropbox/TheBestCricketGameEver.app/.build/libtemplate/Builder.lua:295: in function ‘checkError’
    /Users/MacKirk/Dropbox/TheBestCricketGameEver.app/.build/libtemplate/Builder.lua:318: in function ‘build’
    ?: in function ‘buildExe’
    ?: in function <?:695>
 

This is my build.settings

settings =
{

    iphone = {
        plist = {

             CFBundleIconFiles = {
            “Icon.png”,
            “Icon@2x.png”,
            “Icon-Small-40.png”,
            “Icon-Small-40@2x.png”,
            “Icon-60.png”,
            “Icon-60@2x.png”,
            “Icon-72.png”,
            “Icon-72@2x.png”,
            “Icon-76.png”,
            “Icon-76@2x.png”,
            “Icon-Small-50.png”,
            “Icon-Small-50@2x.png”,
            “Icon-Small.png”,
            “Icon-Small@2x.png”
            },
        
            UIApplicationExitsOnSuspend = false,

            FacebookAppID = “188128428059002”,  --replace XXXXXXXXXX with your Facebook App ID

            CFBundleURLTypes = {
                {
                CFBundleURLSchemes = { “fb188128428059002”, }  --replace XXXXXXXXXX with your Facebook App ID
                }
            },
            
            [“URL types”] = {
                item = {
                    [“URL Schemes”] =
                        { [“Item 0”] = “fb188128428059002” },  --replace XXXXXXXXXX with your Facebook App ID
                },
            },            
        }
    },
    
    android =
    {
    versionCode = “103”,
    installLocation=“preferExternal”
    },

    androidPermissions =
    {
       “android.permission.READ_PHONE_STATE”,
       “android.permission.ACCESS_NETWORK_STATE”,
       “android.permission.VIBRATE”,
       “android.permission.INTERNET”,
        “android.permission.ACCESS_WIFI_STATE”,    
        “android.permission.ACCESS_FINE_LOCATION”,
        “android.permission.ACCESS_COARSE_LOCATION”,
        “com.android.vending.CHECK_LICENSE”,
        “com.android.vending.BILLING”,
        },

    plugins =
    {
      --key is the name passed to Lua’s ‘require()’
     [“CoronaProvider.native.popup.social”] =
      {
        --required
        publisherId = “com.coronalabs”, – don’t change, is’t the publisher of the plugin
      },
      
      
– key is the name passed to Lua’s ‘require()’
        [“plugin.google.iap.v3”] =
        {
            – required
            publisherId = “com.coronalabs”,
        },
        
        – key is the name passed to Lua’s ‘require()’
        [“CoronaProvider.ads.admob”] =
        {
            – required
            publisherId = “com.coronalabs”, – don’t change, it’s the publisher of the plugin
        },
        
        – key is the name passed to Lua’s ‘require()’
        [“CoronaProvider.ads.vungle”] =
        {
            – required
            publisherId = “com.vungle”,
        },
        
    },

  orientation =
    {
        default = “portrait”,
        supported =
        {
        “portrait”,
        “portraitUpsideDown”,
        },
                    
    },
    

}
  

Any suggestions much appreciated?

thx

I just tried this, and narrowed it down to

 ["plugin.google.iap.v3"] = { -- required publisherId = "com.coronalabs", },

so by commenting this out I can build… but obviously it’s not ideal to have to keep commenting/uncommenting for different builds?

thx

Google IAP is an Android only plugin.  You can include

supportedPlatforms = { android = true },

As part of your plugin right after the publisherId

Rob

thx again, you’re a miracle worker!

Hi Rob,

Actually this isn’t quite working for me.

This is what I have in build.settings:

– key is the name passed to Lua’s ‘require()’
        [“plugin.google.iap.v3”] =
        {
            – required
           publisherId = “com.coronalabs”,
            supportedPlatforms = { android = true },
        },

It does now allow me to build.  However, if I try to run the app I get this error in the console:

Runtime Error:

module ‘plugin.google.iap.v3’ not found:resource (plugin.google.iap.vr.lu) does not exist in archive

thx

hmmm i’m getting this error in the console even after commenting out the iap.v3 stuff in build.settings.

I’ve deleted the app off the ipad, and I’ve tried rebuilding and recopying using both itunes and xcode.  Obviously I’m doing something wrong because there’s no way I should be getting this error if plugin.google.iap v3 is commented out in the settings.

Let me try figure out what that is…

okay never mind me, the error was coding, not settings, because I was loading the v3 store even if it wasn’t a build for google play,

I am using the same OS X, xCode and Corona versions and have the same problem. For me it’s the plugins I use. If, in my build.settings I list the plugins like this:

 settings =

{
plugins =
{
– key is the name passed to Lua’s ‘require()’
[“plugin.photon”] =
{
– required
publisherId = “com.exitgames”,
},
},
}

I get the NULL error when I build for IOS. If I remove the plugins from the build settings everything builds fine but the functionality of the plugins will not work. 

Still working on it.

Chris 

Can you post your build.settings?