Why do I get “could not be added to your itunes library because it is not a valid app” error when trying to install Ad-Hoc build?

I believe I've tracked this down... It seemed to be happening really intermittently, so it's taken some time (I'd reproduce it, roll back the change, confirm it worked, then re-apply the change, for it to then work again! ).

I believe I've tracked this down... It seemed to be happening really intermittently, so it's taken some time (I'd reproduce it, roll back the change, confirm it worked, then re-apply the change, for it to then work again! ). However, after much cleaning/restart/etc., I believe it's related to the "Build" version in the target settings (there are now two version fields, "Version" and "Build").

It seems that if "Build" is blank, then this error occurs. Unfortunately, changing this value doesn't seem to rebuild properly, so sometimes if you change it, then Archive, you still get the previous value. Manually cleaning before Archiving seems to work around this.

The value gets written into the plist file as CFBundleVersion.

Ok.. do one thing.. Open info.plist.. Go to bundle identifier and change bundle identifier name. It needs to be unique.. something like "com.yourcompany. Projectname" and create and try to install the ipa.. It should work.

The identifier is unique, it's an existing app we just upgrade to Xcode4. We even deleted all copies of it from iTunes before trying to drag it in :-( – Danny Tuppeny Sep 28 at 16:53.

Right.. but I guess it is clashing with earlier bundle identifier( this happens because you have upgraded the Xcode). Did you try and change the existing bundle identifier name and install? I had identical problem and wasted 3-4 days.. I changed existing bundle identifier name and it worked.. Also you may want to check Bundle name and Bundle version are present in info.plist.

I haven't tried yet, but there's absolutely no way we change the bundle identifier, as this app is in the store and we need to issue updates. I was able to reproduce it on and off when upgrading another project, but wouldn't do it consistently. Will try again today – Danny Tuppeny Sep 29 at 6:13 I guess this error occurs for "iPhone Distribution" so you can change the bundle identifier for distribution build.. and while issuing updates on the app store you can keep the same bundle identifier.

– Dennis Sep 29 at 9:47 Check my answer below - tracked it down to the CFBundleVersion :-) – Danny Tuppeny Sep 29 at 9:52.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions