Build Error, Error Code: 12, what to do?

Hello I am getting this error when building for IOS.

 

Application version information:

    Version: 1.0            [CFBundleShortVersionString] (set in Build dialog)

      Build: 2016.03.191637 [CFBundleVersion] (set by Simulator)

mars 19 04:37:17.285: Runtime error

?:0: attempt to index a nil value

stack traceback:

?: in function ‘?’

?: in function ‘?’

?: in function ‘?’

?: in function <?:912>

mars 19 04:37:17.291: iOS build failed (12)

 

What does it mean?

Can you post your build.settings file?

Can you build our HelloWorld sample app located in /Applications/CoronaSDK/SampleCode/GettingStarted/HelloWorld?

Rob

Ok, so i played around some and updated to latest Corona SDK, and now there is a new build error:

A device build error occurred on the server.&nbsp; BuildID: 56ef3898cb649&nbsp; Error: Template not found. Build Number: 2016.2830 Platform: iphone Platform Version: unknown Template Type: basic

This is also output in the console:

mars 21 12:59:18.922 CreateParamsArray: item.value unexpectedly NULL for item.key 'customBuildId'

These are the build.settings

-- Supported values for orientation: -- portrait, portraitUpsideDown, landscapeLeft, landscapeRight settings = { orientation = { default = "landscapeRight", supported = { "landscapeRight", } }, iphone = { plist = { UIStatusBarHidden = false, UIPrerenderedIcon = true, -- set to false for "shine" overlay --UIApplicationExitsOnSuspend = true, -- uncomment to quit app on suspend --[[-- iOS app URL schemes: CFBundleURLTypes = { { CFBundleURLSchemes = { "fbXXXXXXXXXXXXXX", -- example scheme for facebook "coronasdkapp", -- example second scheme } } } --]] } }, --[[-- Android permissions androidPermissions = { "android.permission.INTERNET", },]]-- }

I now also tried building the HelloWorld example, same error:

Building ios app for hej@xxxx.xx with 2016.2830 mars 22 12:14:36.312 CreateParamsArray: item.value unexpectedly NULL for item.key 'customBuildId' mars 22 12:14:37.939 BuildID: kCoronaBuild [A device build error occurred on the server.   BuildID: 56f0805ce70e8  Error: Template not found.  Build Number: 2016.2830 Platform: iphone Platform Version: unknown Template Type: basic

What version of Xcode do you have installed?

What version of OS X are you on?

Can you post the entire console log (for HelloWorld)? CMD-A CMD-C in the console window, then CMD-V here.

Hi again, this is the console log for HelloWorld (using Corona SDK-2843, Xcode Version 7.3 (7D175) and OSX Version 10.11.3 (15D21)):

mars 22 03:05:11.907 Copyright (C) 2009-2016 C o r o n a L a b s I n c . mars 22 03:05:11.908 Version: 3.0.0 mars 22 03:05:11.908 Build: 2016.2843 mars 22 03:05:17.193 Copyright (C) 2009-2016 C o r o n a L a b s I n c . mars 22 03:05:17.193 Version: 3.0.0 mars 22 03:05:17.194 Build: 2016.2843 mars 22 03:05:17.210 Loading project from: /Applications/CoronaSDK/SampleCode/GettingStarted/HelloWorld mars 22 03:05:17.210 Project sandbox folder: ~/Library/Application Support/Corona Simulator/HelloWorld-F8E2C5BA4CE84C12437755BD91CD8FA0 mars 22 03:05:17.224 Platform: iPhone / x86\_64 / 10.11.3 / Intel HD Graphics 4000 OpenGL Engine / 2.1 INTEL-10.12.13 / 2016.2843 / sv | SE | sv\_SE | sv mars 22 03:05:21.229 Warning: provisioning profile "iOSTeam Provisioning Profile: E-K.testsprite" expired: 2015-10-09  Provisioning file: ~/Library/MobileDevice/Provisioning Profiles/0921ec55-81a0-45d9-82bf-a525d3f3992d.mobileprovision mars 22 03:05:21.232 Warning: provisioning profile "iOSTeam Provisioning Profile: E-K.testsprite" expired: 2015-10-09  Provisioning file: ~/Library/MobileDevice/Provisioning Profiles/1f2c8b82-1a4f-4e92-9300-f19232f99d0c.mobileprovision mars 22 03:05:21.235 Warning: provisioning profile "iOS Team Provisioning Profile: E-K.xapp" expired: 2016-02-06  Provisioning file: ~/Library/MobileDevice/Provisioning Profiles/bbbdef80-d547-4da5-b2bc-8db875e57510.mobileprovision mars 22 03:05:21.239 Warning: provisioning profile "iOSTeam Provisioning Profile: E-K.testsprite" expired: 2015-10-17  Provisioning file: ~/Library/MobileDevice/Provisioning Profiles/f6d7ebe9-4c8b-46ac-bc1e-8ed1dbed2f58.mobileprovision mars 22 03:05:24.962 Building ios app for hej@xxxx.xx with 2016.2843 mars 22 03:05:27.482 Using custom build id from app bundle: 00000 (AppSettings.lua) mars 22 03:05:29.261 BuildID: kCoronaBuild [A device build error occurred on the server.   BuildID: 56f0a8686f9d1  Error: Template not found.  Build Number: 2016.2843 Platform: iphone Platform Version: unknown Template Type: basic mars 22 03:05:29.261 ERROR: An error occurred during build. The server returned the following message: --- A device build error occurred on the server.   BuildID: 56f0a8686f9d1  Error: Template not found.  Build Number: 2016.2843 Platform: iphone Platform Version: unknown Template Type: basic --- mars 22 03:05:29.277 iOS build failed (5) mars 22 03:05:29.562 ERROR: Build Failed: A device build error occurred on the server.   BuildID: 56f0a8686f9d1  Error: Template not found.  Build Number: 2016.2843 Platform: iphone Platform Version: unknown Template Type: basic

I think I found a server side issue related to this. Can you give it another try.

Hi, at first I downloaded the latest version: CoronaSDK-2016.2844.dmg and it did not work, it was the same build fail as last time with CoronaSDK-2016.2843.dmg.

However, I downloaded the 2843-version again and it worked! Somehow the server issue is resolved in 2843 but not in 2844. 

Thanks!

Hey guys,

My similar error showed up just after upgrading to Xcode 7.3 last night.  It occurred with Corona 2016.2830 and 2016.2844.  I don’t use any plugins.  To fix it, I had to download my provisioning profiles and reinstall them.

More detail:

  1. Singon at https://developer.apple.com,

  2. Find your profiles and “Download” them,

  3. Double-click the profiles to re-install them,

  4. Start Corona and build with the new profiles

My error:

A device build error occurred on the server.

BuildID: 56f1e494d14c0
Error: Template not found.

Build Number: 2016.2844
Platform: iphone
Platform Version: unknown
Template Type: basic

Mar 22 05:34:30.259 iOS build failed (5)

Mar 22 05:34:30.561 ERROR: Build Failed: A device build error occurred on the server.

BuildID: 56f1e494d14c0
Error: Template not found.

Build Number: 2016.2844
Platform: iphone
Platform Version: unknown
Template Type: basic

Can you post your build.settings file?

Can you build our HelloWorld sample app located in /Applications/CoronaSDK/SampleCode/GettingStarted/HelloWorld?

Rob

Ok, so i played around some and updated to latest Corona SDK, and now there is a new build error:

A device build error occurred on the server.&nbsp; BuildID: 56ef3898cb649&nbsp; Error: Template not found. Build Number: 2016.2830 Platform: iphone Platform Version: unknown Template Type: basic

This is also output in the console:

mars 21 12:59:18.922 CreateParamsArray: item.value unexpectedly NULL for item.key 'customBuildId'

These are the build.settings

-- Supported values for orientation: -- portrait, portraitUpsideDown, landscapeLeft, landscapeRight settings = { orientation = { default = "landscapeRight", supported = { "landscapeRight", } }, iphone = { plist = { UIStatusBarHidden = false, UIPrerenderedIcon = true, -- set to false for "shine" overlay --UIApplicationExitsOnSuspend = true, -- uncomment to quit app on suspend --[[-- iOS app URL schemes: CFBundleURLTypes = { { CFBundleURLSchemes = { "fbXXXXXXXXXXXXXX", -- example scheme for facebook "coronasdkapp", -- example second scheme } } } --]] } }, --[[-- Android permissions androidPermissions = { "android.permission.INTERNET", },]]-- }

I now also tried building the HelloWorld example, same error:

Building ios app for hej@xxxx.xx with 2016.2830 mars 22 12:14:36.312 CreateParamsArray: item.value unexpectedly NULL for item.key 'customBuildId' mars 22 12:14:37.939 BuildID: kCoronaBuild [A device build error occurred on the server.   BuildID: 56f0805ce70e8  Error: Template not found.  Build Number: 2016.2830 Platform: iphone Platform Version: unknown Template Type: basic

What version of Xcode do you have installed?

What version of OS X are you on?

Can you post the entire console log (for HelloWorld)? CMD-A CMD-C in the console window, then CMD-V here.

Hi again, this is the console log for HelloWorld (using Corona SDK-2843, Xcode Version 7.3 (7D175) and OSX Version 10.11.3 (15D21)):

mars 22 03:05:11.907 Copyright (C) 2009-2016 C o r o n a L a b s I n c . mars 22 03:05:11.908 Version: 3.0.0 mars 22 03:05:11.908 Build: 2016.2843 mars 22 03:05:17.193 Copyright (C) 2009-2016 C o r o n a L a b s I n c . mars 22 03:05:17.193 Version: 3.0.0 mars 22 03:05:17.194 Build: 2016.2843 mars 22 03:05:17.210 Loading project from: /Applications/CoronaSDK/SampleCode/GettingStarted/HelloWorld mars 22 03:05:17.210 Project sandbox folder: ~/Library/Application Support/Corona Simulator/HelloWorld-F8E2C5BA4CE84C12437755BD91CD8FA0 mars 22 03:05:17.224 Platform: iPhone / x86\_64 / 10.11.3 / Intel HD Graphics 4000 OpenGL Engine / 2.1 INTEL-10.12.13 / 2016.2843 / sv | SE | sv\_SE | sv mars 22 03:05:21.229 Warning: provisioning profile "iOSTeam Provisioning Profile: E-K.testsprite" expired: 2015-10-09  Provisioning file: ~/Library/MobileDevice/Provisioning Profiles/0921ec55-81a0-45d9-82bf-a525d3f3992d.mobileprovision mars 22 03:05:21.232 Warning: provisioning profile "iOSTeam Provisioning Profile: E-K.testsprite" expired: 2015-10-09  Provisioning file: ~/Library/MobileDevice/Provisioning Profiles/1f2c8b82-1a4f-4e92-9300-f19232f99d0c.mobileprovision mars 22 03:05:21.235 Warning: provisioning profile "iOS Team Provisioning Profile: E-K.xapp" expired: 2016-02-06  Provisioning file: ~/Library/MobileDevice/Provisioning Profiles/bbbdef80-d547-4da5-b2bc-8db875e57510.mobileprovision mars 22 03:05:21.239 Warning: provisioning profile "iOSTeam Provisioning Profile: E-K.testsprite" expired: 2015-10-17  Provisioning file: ~/Library/MobileDevice/Provisioning Profiles/f6d7ebe9-4c8b-46ac-bc1e-8ed1dbed2f58.mobileprovision mars 22 03:05:24.962 Building ios app for hej@xxxx.xx with 2016.2843 mars 22 03:05:27.482 Using custom build id from app bundle: 00000 (AppSettings.lua) mars 22 03:05:29.261 BuildID: kCoronaBuild [A device build error occurred on the server.   BuildID: 56f0a8686f9d1  Error: Template not found.  Build Number: 2016.2843 Platform: iphone Platform Version: unknown Template Type: basic mars 22 03:05:29.261 ERROR: An error occurred during build. The server returned the following message: --- A device build error occurred on the server.   BuildID: 56f0a8686f9d1  Error: Template not found.  Build Number: 2016.2843 Platform: iphone Platform Version: unknown Template Type: basic --- mars 22 03:05:29.277 iOS build failed (5) mars 22 03:05:29.562 ERROR: Build Failed: A device build error occurred on the server.   BuildID: 56f0a8686f9d1  Error: Template not found.  Build Number: 2016.2843 Platform: iphone Platform Version: unknown Template Type: basic

I think I found a server side issue related to this. Can you give it another try.

Hi, at first I downloaded the latest version: CoronaSDK-2016.2844.dmg and it did not work, it was the same build fail as last time with CoronaSDK-2016.2843.dmg.

However, I downloaded the 2843-version again and it worked! Somehow the server issue is resolved in 2843 but not in 2844. 

Thanks!

Hey guys,

My similar error showed up just after upgrading to Xcode 7.3 last night.  It occurred with Corona 2016.2830 and 2016.2844.  I don’t use any plugins.  To fix it, I had to download my provisioning profiles and reinstall them.

More detail:

  1. Singon at https://developer.apple.com,

  2. Find your profiles and “Download” them,

  3. Double-click the profiles to re-install them,

  4. Start Corona and build with the new profiles

My error:

A device build error occurred on the server.

BuildID: 56f1e494d14c0
Error: Template not found.

Build Number: 2016.2844
Platform: iphone
Platform Version: unknown
Template Type: basic

Mar 22 05:34:30.259 iOS build failed (5)

Mar 22 05:34:30.561 ERROR: Build Failed: A device build error occurred on the server.

BuildID: 56f1e494d14c0
Error: Template not found.

Build Number: 2016.2844
Platform: iphone
Platform Version: unknown
Template Type: basic