Problem building to iOS

Hi, I’m getting errors when I build for iOS.

I receive Error Code 5.

When I enter to the console I see:

11/13/14 12:32:17.513 AM Corona Simulator[60277]: Runtime error

            /Users/user90864/Desktop/Thief Job.app/.build/libtemplate/Defaults.lua:96: ERROR: Could not determine installed version of iOS SDK.

stack traceback:

            [C]: ?

            [C]: in function ‘assert’

            /Users/user90864/Desktop/Thief Job.app/.build/libtemplate/Defaults.lua:96: in function ‘updateSDK’

            /Users/user90864/Desktop/Thief Job.app/.build/libtemplate/Defaults.lua:124: in function ‘updateSDK_iPhoneSimulator’

            /Users/user90864/Desktop/Thief Job.app/.build/libtemplate/Builder.lua:225: in function ‘compile’

            /Users/user90864/Desktop/Thief Job.app/.build/libtemplate/Builder.lua:333: in function ‘build’

            ?: in function ‘buildExe’

            ?: in function <?:641>

I checked the xcode used

xcode-select -p

/Applications/Xcode6.1.app/Contents/Developer

They were working fine before but now I just getting that error and I can’t do anything!!  

What can I do? Is there any problems with Xcode6.1?

Thank you

PS: I’m using MacInCloud for this.

I found that commenting the admob plugin the build works.

Any ideas?

Can you post your build.settings?

Sure, here you have…

-- Supported values for orientation: -- portrait, portraitUpsideDown, landscapeLeft, landscapeRight settings = { orientation = { default = "landscapeRight", supported = { "landscapeRight", "landscapeLeft" } }, &nbsp;&nbsp; &nbsp; plugins = &nbsp; { &nbsp; &nbsp; &nbsp; -- key is the name passed to Lua's 'require()' &nbsp; &nbsp; &nbsp; ["CoronaProvider.gameNetwork.google"] = &nbsp; &nbsp; &nbsp; { &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -- required &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; publisherId = "com.coronalabs", &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; supportedPlatforms = { android = true } &nbsp; &nbsp; &nbsp; }, &nbsp; &nbsp; &nbsp; ["plugin.google.play.services"] = &nbsp; &nbsp; &nbsp; { &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; publisherId = "com.coronalabs" &nbsp; &nbsp; &nbsp; }, &nbsp; }, &nbsp;&nbsp; &nbsp; iphone = { plist = { UIStatusBarHidden = true, UIPrerenderedIcon = true, -- set to false for "shine" overlay --UIApplicationExitsOnSuspend = true, -- uncomment to quit app on suspend CFBundleIconFile = "Icon.png", CFBundleIconFiles = { "Icon.png" , "Icon@2x.png" , &nbsp; &nbsp; &nbsp; &nbsp; "Icon-72.png", &nbsp; &nbsp; &nbsp; &nbsp; "Icon-60.png", &nbsp; &nbsp; &nbsp; &nbsp; "Icon-60@2x.png", &nbsp; &nbsp; &nbsp; &nbsp; "Icon-76.png", &nbsp; &nbsp; &nbsp; &nbsp; "Icon-76@2x.png", &nbsp; &nbsp; &nbsp; &nbsp; "Icon-xxhdpi.png", "Icon58.png", }, UIAppFonts = &nbsp;{&nbsp; "Arfmoochikncheez.otf", "TF2 Build.otf" }, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -- iOS app URL schemes: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CFBundleURLTypes = &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; { &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; { &nbsp; &nbsp; CFBundleURLName = "com.tekkogames.thiefjobforkids", &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CFBundleURLSchemes = &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; { &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "thiefjobforkids", &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CFBundleIdentifier = "com.tekkogames.thiefjobforkids", &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; }, &nbsp; &nbsp; &nbsp; &nbsp; components = {}, }, &nbsp; android = &nbsp; { &nbsp; &nbsp; googlePlayGamesAppId = "81102102881", &nbsp; &nbsp; usesPermissions = &nbsp; &nbsp; { &nbsp; &nbsp; &nbsp; &nbsp; "android.permission.INTERNET", &nbsp; &nbsp; &nbsp; &nbsp; "android.permission.ACCESS\_NETWORK\_STATE", &nbsp; &nbsp; &nbsp; &nbsp; "com.android.vending.CHECK\_LICENSE", &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "com.android.vending.BILLING", &nbsp; &nbsp; }, &nbsp; }, &nbsp;&nbsp; }

Just out of curiosity can you rename things so that there is no space in the project name?

Your build.settings is a bit tough to read because its indentions, but it looks correct.  What version of Corona SDK are you building with? 

Can you also look here:
 

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs

and let me know what files are there?

I just ran into this same issue.  I’m also using macincloud.com with build 2393 and Xcode 6.1. Rob, I checked the location you mentioned and there are two directories there.  The first is iPhoneOS.sdk and the second is iPhoneOS8.1.sdk.

I don’t know if this is an issue between 2393 (hopefully the “a” release) and Xcode 6.1 or not.  Hopefully we can get this new public build out soon and it will help with a lot of the iOS 8/8.1 Xcode 6/6.1 isims.

Rob

In my case I tested with the last version of Corona SDK and I have the same problem. (2014.2505)

Same files in my server:

iPhoneOS.sdk and iPhoneOS8.1.sdk.

Thank you!!

Oh, one thing. It doesn’t exist that path. 

I have:

/Applications/Xcode6.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs

/Applications/Xcode6.0.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs

/Applications/Xcode5.1.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs

/Applications/Xcode5.0.2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs

But not a /Applications/Xcode.app/…

Is this ok?

I would suspect that could be a problem.  But your xcode-select points to the right version.  While we know people have used MacInCloud in the past, we can’t really control their setups.  I’m not sure how much assistance we can provide with this.  I’ll ask engineering, maybe they’ve seen that error before and there might be something that can done to point Xcode in the right direction.

Rob

But my question is…

Is Corona looking for the iOS SDK at /Applications/ Xcode.app /Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs

or is it using the xcode-select path?

Do you think I can test asking to MacInCloud to target the xcode-select to another XCode version? For example 6.0.1 or 5.1.1?

Thanks

You can always ask them. 

I just asked them that question.  I built and released my latest game a couple weeks ago using Xcode version 6.0.1 and now I can’t get it to build with Xcode version 6.1.  Their tech support has been outstanding so I doubt it will take long for me to hear back from them. 

Engineering says this is a symptom of not having the Xcode extensions loaded.  We use the extensions as part of the plugin loading process.  Thats why taking out the plugin worked.  Xcode prompts to install these after it’s run the first time.  We think this is a symptom of OSX 10.10 looking for 10.9 exensions or something similar.

Rob

 They downgraded my version of Xcode to 6.0.1 but that didn’t fix the problem.  I’m getting the following error now.  This is with version 10.9.5 of OSX.  Any other thoughts?

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

2014-11-17 10:45:40.734 Corona Simulator[917:507] Runtime error

/Users/user23020/Dropbox/J&J Studios LLC/Builds/Pixum.app/.build/libtemplate/Defaults.lua:97: ERROR: Could not determine installed version of iOS SDK.

stack traceback:

C: in function ‘assert’

/Users/user23020/Dropbox/J&J Studios LLC/Builds/Pixum.app/.build/libtemplate/Defaults.lua:97: in function ‘updateSDK’

/Users/user23020/Dropbox/J&J Studios LLC/Builds/Pixum.app/.build/libtemplate/Defaults.lua:118: in function ‘updateSDK_iPhoneSimulator’

/Users/user23020/Dropbox/J&J Studios LLC/Builds/Pixum.app/.build/libtemplate/Builder.lua:225: in function ‘compile’

/Users/user23020/Dropbox/J&J Studios LLC/Builds/Pixum.app/.build/libtemplate/Builder.lua:333: in function ‘build’

?: in function ‘buildExe’

?: in function <?:624>

Not sure what changed between now and yesterday but I’m able to build my apps via macincloud again.  This is with the latest public release, 2393a, OSX version 10.9.5, and Xcode version 6.1.

borriero, I hope things are working for you as well.

Cool, thanks for the info! I will try it and I’ll let you know!

Yeah, it’s working now.

They had to change the xcode application name to Xcode.app instead of Xcode.app in order to get it working.

I found that commenting the admob plugin the build works.

Any ideas?

Can you post your build.settings?