Can't Build Distribution with iOS SDK 6.1

Is it just me?

I’ve removed xcode 4.6 beta and installed xcode 4.6
Using daily build 1019 (also happened with 1017),
Attempting an iOS build with a distribution code signing identity, the SDK dropdown shows 6.0 and 6.1. If I choose 6.1, Corona displays the error “Distribution Code Signing Identities are not allowed with Beta SDKs”
Selecting iOS SDK 6.0 builds successfully, as does building with 6.1 and a development identity. Why does Corona think that 6.1 is beta?

-thanks
Scott

[import]uid: 31041 topic_id: 35512 reply_id: 335512[/import]

I’ll alert the team. [import]uid: 199310 topic_id: 35512 reply_id: 141134[/import]

I tested build 1019 with an AdHoc Distribution profile and it worked fine and was able to install it on a couple devices. I’m using Xcode 4.6 downloaded from the App store. I installed it over Xcode 4.5.

My guess is you didn’t completely removed the old Xcode version and Corona is signing with that instead of the released 4.6. The error you’re seeing is coming from a beta Xcode which won’t allow you to sign a distribution build.

You can check the Xcode path by typing the following in a terminal window:
xcode-select -print-path

Mine returns: /Applications/Xcode.app/Contents/Developer
[import]uid: 7559 topic_id: 35512 reply_id: 141154[/import]

I also have the same problem with 2013.1019.

I only have Xcode 4.6 now on my system.
I 've removed Xcode 4.6 beta, and also removed Xcode 4.5.

I’ve confirmed that my versions are correct:
[text]
melekeok:~ ingemar$ xcode-select --print-path
/Applications/Xcode.app/Contents/Developer

melekeok:~ ingemar$ xcodebuild -version
Xcode 4.6
Build version 4H127
[/text]

In the CoronaSDK Build dialog, I can compile successfully with an App Store Distribution Certificate if I choose 6.0 in the drop down list.
If I choose 6.1, I get the same error as the OP.
[import]uid: 70847 topic_id: 35512 reply_id: 141160[/import]

I took one of my native Xcode projects and compiled with a Distribution Certificate (in Xcode 4.6 with the Base SDK set to iOS 6.1) without any errors, so it looks like there’s something weird with the Corona build process when 6.1 is chosen. [import]uid: 70847 topic_id: 35512 reply_id: 141161[/import]

Try this to see if Corona is picking up the wrong Xcode version.

Build an iOS project for Xcode Simulator. When the iOS Simulator opens, it should show “iOS 6.1 (10B141)” at the top of the window. This is the released version.

It’s possible to have the released version of Xcode on your machine and able to do a native Xcode build correctly but Corona could be picking up the older build if it wasn’t removed correctly.

My system is building correctly but I never had the beta version of Xcode installed so I’m not sure if we have an issue with how Corona is picking up Xcode tools or not.

I believe the error message is posted by Apple’s Validation tool and I’m wondering if it is not getting updated from the beta version and blocks any distribution build.

UPDATE:
You an also check the Terminal when doing a Corona build. This is what my console says:

[DEBUG] SDK Root: path=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.1.sdk version=6.1 name=Simulator - iOS 6.1
[DEBUG] using device family unspecified

Doing a non-simulator build returns this:

Corona Simulator[42987:707] validationTool: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/Validation [import]uid: 7559 topic_id: 35512 reply_id: 141221[/import]

If I build for the Xcode Simulator it opens in “iOS 6.1 (10B141)”.
EDIT:
@Tom
Regarding your update:
The build doesn’t even get that far. It fails before any output to the terminal is written…
It doesn’t even come as far as “Using Custom build Id xxxxxxxxxxxxxxxxxxxx”

When I build for Xcode Simulator I get:
[text]
[DEBUG] SDK Root: path=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.1.sdk version=6.1 name=Simulator - iOS 6.1
[DEBUG] using device family unspecified
[DEBUG] Session started
[/text] [import]uid: 70847 topic_id: 35512 reply_id: 141222[/import]

@Tom
I set up an AdHoc Distribution profile for one of my apps, and it works with 2013.1019 and 6.1.
It’s an AppStore Distribution Profile that for whatever reason has the problem. [import]uid: 70847 topic_id: 35512 reply_id: 141225[/import]

@swipeware, if it doesn’t even display “Using Custom build id” then it’s not a signing problem. It sounds like you have a problem with your distribution provisioning file. What is the exact message you’re getting from Corona? This error is different than can’t build for distribution error. Can you build for developer?

The reason Xcode simulator builds work is because it doesn’t require a valid provisioning file. [import]uid: 7559 topic_id: 35512 reply_id: 141226[/import]

The error I get is a pop-down from the build dialog that says:
[text]
Distribution Code Signing Identities are not allowed with Beta SDKs.
Please select a Developer Code Signing Identity and try again.
[/text]
See: http://postimage.org/image/65bx0cc11/

I can build without a problem using the same AppStore Distribution profile if I choose 6.0 from the Corona build dialog instead of 6.1.

As I mentioned above, I created an AdHoc Distribution profile which *does* work with the 6.1 option.
The AppStore Distribution does not. It only works with the 6.0 option.

Can you confirm that you can build with an *AppStore* distribution profile? [import]uid: 70847 topic_id: 35512 reply_id: 141228[/import]

OP here - I can confirm all of @swipeware’s experiences are what I’m seeing.
I can build with a distribution profile to the xcode simulator, where it opens with the title bar “iOS 6.1 (10B141)”
Only when attempting to build with a distribution profile to device with 6.1 do I get the popup (which is identical to the pic that @swipeware posted).
Scott
[import]uid: 31041 topic_id: 35512 reply_id: 141232[/import]

I recall reading in either a Corona blog post or daily build notes after 6.1 beta was released that Corona made some ‘hard coded’ adjustments to allow builds to work on 6.1 beta. Seems like this could be related.
[import]uid: 31041 topic_id: 35512 reply_id: 141233[/import]

My apologies to all about this. I checked the code and Corona is putting out that error message when you try building for the App Store from the second pull-down item in the build window. It was intended for beta use only so it was hardcoded to check for that. We will fix this.

I didn’t think AdHoc builds were different from App Store builds, but this this case it is.

Thanks everyone for tracking this down. [import]uid: 7559 topic_id: 35512 reply_id: 141236[/import]

CoronaSDK build 1020 fixes the iOS 6.1 build issue. You should be now be able to build for the App Store. In this release, Corona automatically builds for iOS 6.1 (we removed the option to select between 6.0 and 6.1). If you need to build for iOS 6.0, please use the release build (971) or an earlier daily build. [import]uid: 7559 topic_id: 35512 reply_id: 141542[/import]

Confirmed fixed. Thanks :slight_smile: [import]uid: 70847 topic_id: 35512 reply_id: 141551[/import]

I’ll alert the team. [import]uid: 199310 topic_id: 35512 reply_id: 141134[/import]

I tested build 1019 with an AdHoc Distribution profile and it worked fine and was able to install it on a couple devices. I’m using Xcode 4.6 downloaded from the App store. I installed it over Xcode 4.5.

My guess is you didn’t completely removed the old Xcode version and Corona is signing with that instead of the released 4.6. The error you’re seeing is coming from a beta Xcode which won’t allow you to sign a distribution build.

You can check the Xcode path by typing the following in a terminal window:
xcode-select -print-path

Mine returns: /Applications/Xcode.app/Contents/Developer
[import]uid: 7559 topic_id: 35512 reply_id: 141154[/import]

I also have the same problem with 2013.1019.

I only have Xcode 4.6 now on my system.
I 've removed Xcode 4.6 beta, and also removed Xcode 4.5.

I’ve confirmed that my versions are correct:
[text]
melekeok:~ ingemar$ xcode-select --print-path
/Applications/Xcode.app/Contents/Developer

melekeok:~ ingemar$ xcodebuild -version
Xcode 4.6
Build version 4H127
[/text]

In the CoronaSDK Build dialog, I can compile successfully with an App Store Distribution Certificate if I choose 6.0 in the drop down list.
If I choose 6.1, I get the same error as the OP.
[import]uid: 70847 topic_id: 35512 reply_id: 141160[/import]

I took one of my native Xcode projects and compiled with a Distribution Certificate (in Xcode 4.6 with the Base SDK set to iOS 6.1) without any errors, so it looks like there’s something weird with the Corona build process when 6.1 is chosen. [import]uid: 70847 topic_id: 35512 reply_id: 141161[/import]

Try this to see if Corona is picking up the wrong Xcode version.

Build an iOS project for Xcode Simulator. When the iOS Simulator opens, it should show “iOS 6.1 (10B141)” at the top of the window. This is the released version.

It’s possible to have the released version of Xcode on your machine and able to do a native Xcode build correctly but Corona could be picking up the older build if it wasn’t removed correctly.

My system is building correctly but I never had the beta version of Xcode installed so I’m not sure if we have an issue with how Corona is picking up Xcode tools or not.

I believe the error message is posted by Apple’s Validation tool and I’m wondering if it is not getting updated from the beta version and blocks any distribution build.

UPDATE:
You an also check the Terminal when doing a Corona build. This is what my console says:

[DEBUG] SDK Root: path=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.1.sdk version=6.1 name=Simulator - iOS 6.1
[DEBUG] using device family unspecified

Doing a non-simulator build returns this:

Corona Simulator[42987:707] validationTool: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/Validation [import]uid: 7559 topic_id: 35512 reply_id: 141221[/import]