This bundle is invalid

22 replies [Last post]
MBD's picture
MBD
User offline. Last seen 8 hours 56 min ago. Offline
Joined: 14 Sep 2010

Anyone else getting this message when building for distribution?

warning: This bundle is invalid. The application-identifier entitlement is not formatted correctly; it should contain your 10-character App ID Seed

I've been trying all day to get an update posted for our latest app (just build and signed the same way a week ago) but it won't work. I get this message over and over.

I'm on the latest stable release of Corona SDK.

Replies

MBD's picture
MBD
User offline. Last seen 8 hours 56 min ago. Offline
Joined: 14 Sep 2010

Just a little more insight into this issue.

I always use CFBundleIdentifier="com.mycompany.appname", in my build.settings files. I have for 10 apps now using Corona - always works fine.

When I build, in the app name prompt box I put the bundle ID - which is "appname", with me so far?

So starting today when I build, the error is (in it's entirety)

warning: This bundle is invalid. The application-identifier entitlement is not formatted correctly; it should contain your 10-character App ID Seed, followed by a dot, followed by your bundle identifier: 7K3F8T0T3D.co (-19054)

co is the first part of my bundle ID (co.moonbeam.appname)

I can't help but think this is happening on the built itself when sent away to Corona..

MBD's picture
MBD
User offline. Last seen 8 hours 56 min ago. Offline
Joined: 14 Sep 2010

As another note - I FINALLY got my build submitted to Apple, but I had to go ALLLLLLLL the way back to version 689 of Corona SDK to get it done.
Ansca - please fix this asap.

jonathanbeebe's picture
jonathanbeebe
User offline. Last seen 1 day 4 hours ago. Offline
Staff
Joined: 12 Apr 2011

Remove the CFBundleIdentifier from build.settings, it's not needed. Corona will use the bundle id associated with the provisioning profile. It has never been required to add it into build.settings.

So please try the latest builds again, because it should work. Someone else reported the same problem and removing that line from their build.settings fixed everything.

Tom
User offline. Last seen 8 hours 23 min ago. Offline
Staff
Joined: 13 Jul 2010

To my knowledge, nothing has changed in Corona that would affect the bundle ID error you're seeing. Build 689 should work the same as build 703.

We did some testing today and determine that the error saying the Bundle ID should contain the "10-character App ID Seed" is bogus and a bug in the Apple Validator code. What it's telling you is the build ID specified in the distribution provisioning file does not match the CFBundleIdentifier in the APP package. This generally happens when you add your own Bundle Identifier to the Plist section in the build.settings file.

Jonathan is correct in telling you to not add this to the build.settings file UNLESS you want to match exactly when is in the Distribution Provisioning file. If you leave the CFBundleIdentifier out of the Plist section, Corona will fill in the field for you from the provisioning file that you specify to sign the app. If you try to override it, and you're wrong, the Validator will catch it and display the error you're seeing. The main cause seems to be with provisioning files with wild-card bundle IDs.

We believe the latest version of Xcode (4.2) has an updated Validator program that compares the CFBundleID against the provisioning file Bundle ID and displays this error.

MBD's picture
MBD
User offline. Last seen 8 hours 56 min ago. Offline
Joined: 14 Sep 2010

The above statements are not true in this case I'm afraid.

a) I downloaded the latest Xcode before contacting you guys and it didn't help.

b) I've used the bundle ID in my build.settings file since I started with Corona, it has never been an issue. I always match exactly (copy and paste) what is on my Apple app page for a bundle ID.

jonathanbeebe's picture
jonathanbeebe
User offline. Last seen 1 day 4 hours ago. Offline
Staff
Joined: 12 Apr 2011

@MDB: The difference between older builds and newer builds is, as Tom mentioned, the fact that Xcode 4.2 has a new validation tool that will throw errors if there are problems with the bundle ID. It seems it is very sensitive, and can even throw the error even when you match it exactly and you're using a certain type of provisioning profile.

Your best bet is to just let Corona handle the bundle ID stuff and not worry about setting it yourself in the build.settings file.

fpierron
User offline. Last seen 19 hours 38 min ago. Offline
Joined: 8 Mar 2010

Textmate corona LUA bundle proposes a build.settings template like

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
-- The following are typical values for a landscape-mode app. Edit at will!
-- Supported values for orientation:    portrait, portraitUpsideDown, landscapeLeft, landscapeRight
-- Boolean plist properties take a Lua-style true/false setting
-- Don't forget to set CFBundleIdentifier to something meaningful!
 
settings = {
        orientation = {
                default = "landscapeRight",
                supported = { "landscapeLeft", "landscapeRight" } 
        },
        
        iphone = {
                plist = {
                        UIStatusBarHidden = true, -- true or false
                        CFBundleShortVersionString = "1.0",
                        CFBundleVersion = "1.0.0",
                        CFBundleIdentifier = "com.company.app",
                        UIPrerenderedIcon = true, -- set to false if you want the gradient overlay
                        UIApplicationExitsOnSuspend = true,
                }
        },
        
        androidPermissions = {
        "android.permission.INTERNET",
  },
}

I had encountered this error also because I thought it was a mandatory.

david05
User offline. Last seen 13 hours 31 min ago. Offline
Joined: 2 Mar 2011

Hello, I just upgraded from 4.2 to xcode 4.3, using build 767, and now I am suddenly getting this error, which wasn't there before.

I have never inlcuded CFbundleId in my build.settings, so what else could cause this problem?

Tom
User offline. Last seen 8 hours 23 min ago. Offline
Staff
Joined: 13 Jul 2010

The problem could be in your provisioning file, a build.settings problem or something is wrong in the file name. You didn't post the entire message so it's hard to say. Try building one of the sample apps and see if you get the same error.

I've never heard of this problem caused by upgrading from 4.2 to 4.3.

david05
User offline. Last seen 13 hours 31 min ago. Offline
Joined: 2 Mar 2011

I am getting an armv6 error as well as this one. I have ready that the cfbundleid error can be a generic error, so it might go away if I figure out what is causing the armv6 problem.

Some other apps and sample are building fine. I am just now getting this new issue when trying to simply re-build some of my previously approved apps (unchanged) with the newer corona build/xcode so they will work properly on the new iPad.

Tom
User offline. Last seen 8 hours 23 min ago. Offline
Staff
Joined: 13 Jul 2010

The ARM6 error message means something is wrong with your build.settings file (e.g., plist settings). If you never built this app with Xcode 4.2 before, this may be why you are seeing the error because Apple is now more critical in what they allow in the build process.

Apple's error messages are generally wrong about what the problem is but do mean there is something wrong somewhere, which is generally in the build.settings file.

david05
User offline. Last seen 13 hours 31 min ago. Offline
Joined: 2 Mar 2011

Thanks Tom. I will keep digging... here is my current build.settings file for this project.. it gives the armv6 error in both 4.2 and 4.3, but didnt previously in 4.1x:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
settings =
{
        orientation =
        {
            default = "portrait",
            supported = {"portrait", "portraitUpsideDown" }
        },
 
        iphone =
        {
                plist =
                {
                        UIPrerenderedIcon = true,
                        CFBundleDisplayName = "myAppName",
                        UIApplicationExitsOnSuspend = true,
                        CFBundleIconFile = "Icon.png",
                        CFBundleIconFiles = 
                        {
                                "Icon.png" , 
                                "Icon@2x.png" , 
                                "Icon-72.png" , 
                                "Icon-Small-50.png" , 
                                "Icon-Small.png" , 
                                "Icon-Small@2x.png"
                        },
                        UIAppFonts = 
                        {
                        
                        }
 
                   }
        }
}

I have used this exact build.settings successfully on a different project with 4.2 and 4.3, so I believe the problem is elsewhere in the code... but I have no idea where to start.

Tom
User offline. Last seen 8 hours 23 min ago. Offline
Staff
Joined: 13 Jul 2010

Here are some thoughts.

Try building the app without the build.settings file (rename it) and see if that passes.

What is the project name you are trying to build? We've had problems with that in the past.

Are the apps that work using the same provisioning file as the one that fails? Are you building for developer or distribution? Try a different one (if you can).

david05
User offline. Last seen 13 hours 31 min ago. Offline
Joined: 2 Mar 2011

Tom, Thanks again for your help!

By app name, do you mean the DisplayName defined in build settings, or the app name I give it when I build in the corona dialog?

Here's what I did, but I still get the same armv6 error:

• renamed build.settings to __build.settings
• tried a different mobileprovision (distribution this time) that was previously successful
• eliminated an underscore from my app name in the corona build dialog

All of these didnt help... could there be some deprecated code that requires armv6?

Tom
User offline. Last seen 8 hours 23 min ago. Offline
Staff
Joined: 13 Jul 2010

What corona build are you using?
Do you see any errors or warnings in the terminal when you do a build?
Are you requiring any libraries and if so, make sure there are no issue with the case in the file names.
Are any of your libraries in subdirectories?

I think the ARMV6 and invalid CFBundleIdentifier are bogus errors from Apple but something else is wrong.

You might trying naming your app "test" in the Corona build window and rename your config.lua file to remove it as a possible problem.

david05
User offline. Last seen 13 hours 31 min ago. Offline
Joined: 2 Mar 2011

OK, I will try that... using 2012.767

david05
User offline. Last seen 13 hours 31 min ago. Offline
Joined: 2 Mar 2011

Chiming in to report I resolved both of my issues. For those who might be searching for help with these errors, I'll list them here:

warning: iPhone/iPod Touch: application executable is missing a required architecture. At least one of the following architecture(s) must be present: armv6 (-19033)
warning: This bundle is invalid. The application-identifier entitlement is not formatted correctly; it should contain your 10-character App ID Seed, followed by a dot, followed by your bundle identifier: .... (-19054)

It turns out the problem was a housekeeping issue... I had an old copy of the .app and .zip from the previous version sitting inside my project folder along with main.lua, etc. Removing the old .app and .zip files from the main project folder allowed the app to build successfully.

Hope this helps someone in the future.

lbolduc's picture
lbolduc
User offline. Last seen 2 weeks 3 days ago. Offline
Joined: 20 Nov 2010

Relatively new to Corona, just got one-star "app is useless!" review from irate iPad 3 owner. While trying to quickly resolve retina issue, got first-ever 'invalid bundle' error ...

Setup WAS: 10.6.8, Xcode 3.2.5, Corona 2011.591
Setup NOW: 10.6.8, Xcode 4.2, Corona 2012.767

Testing on iPad 1 & iPad 3 running iOS 5.1, development build runs fine. Distrib builds fine.

I activated CFBundleIdentifier line in my build.settings file for final build and got 'invalid bundle' error. Sounds like I can delete that line and submit.

First, I'd like to confirm 2 things:

1) Per a post recommendation, to make Xcode 4.2 work with iOS 5.1, I added xcode_431_lion.dmg's version.plist and DeviceSupport/5.1 & Latest(alias) files to Xcode 4.2 folders.

2) Corona 2012.767 seems to hang after any build; amber clock animation runs until you quit or relaunch.

Is dmg-file plucking fine; amber-clock normal; just delete CFBunID line and upload?

I greatly appreciate any feedback you can give. Thanks very much. Best, Lynne

Tom
User offline. Last seen 8 hours 23 min ago. Offline
Staff
Joined: 13 Jul 2010

The invalid bundle error will occur if you try to include the CFBundleIdentifier in the build.settings file and you get it wrong. The recent versions of Xcode are now very strict on making sure it matches what you set in your provisioning profile.

As far as extracting the Xcode tools and building for 5.1 using Xcode 4.2, that is untested and unsupported by Ansca. Apple requires Xcode 4.3 and Lion to build for iOS 5.1 and that is the only configuration that is officially supported.

The "amber-clock" after a build is normal and indicates that the simulator has been suspended. You can relaunch or CMD+down arrow to resume.

david05
User offline. Last seen 13 hours 31 min ago. Offline
Joined: 2 Mar 2011

lbolduc, I have a Macbook Pro 2.66ghz... I was a little skeptical about putting Lion on just for the sake of updating xcode to 4.3, but it worked out fine on my machine. Its worth the $30 to get it done and over with.

When you update to xCode 4.3:

  1. Tell the installer YES to remove the old xCode.
  2. Launch xCode once and let it finish its first run.
  3. Look up xcode-select on google or here, to point corona in the right direction for the newly installed xCode app in your Apps folder.

Also be sure to do housekeeping and clean out old versions of the app from your project folder. Test build with the sample apps too if you you are ever unsure whether the problem is in your app vs corona/os/xcode.

Best of luck, and hope that helps

lbolduc's picture
lbolduc
User offline. Last seen 2 weeks 3 days ago. Offline
Joined: 20 Nov 2010

david05, thanks for the honest, logical perspective and scaffold to solution.

I was skeptical, and hoping to avoid the cost to upgrade apps that won't run under 7.1, also saw that Photoshop CS5 has been flagged as having issues in 7.1 ... and, the beat goes on. You're right. Just get it over with and get poor Working-Mom-in-NY's app working on her iPad3.

Thanks very much for your help.

david05
User offline. Last seen 13 hours 31 min ago. Offline
Joined: 2 Mar 2011

Glad to help... I wont digress into the silly consumer features of Lion... it's easy enough to ignore them... and you can change the scrollbar back to normal in the System Prefs under Mouse.

Cheers!

Viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.