Bug 29188 - itms 90047 Error Disallow Path ITuneMetaData.PList
Summary: itms 90047 Error Disallow Path ITuneMetaData.PList
Status: RESOLVED FIXED
Alias: None
Product: iOS
Classification: Xamarin
Component: Pre-release ()
Version: master
Hardware: Macintosh Mac OS
: Normal normal
Target Milestone: Untriaged
Assignee: Jeffrey Stedfast
URL:
Depends on:
Blocks:
 
Reported: 2015-04-17 09:18 UTC by Sanjeet
Modified: 2015-06-29 08:19 UTC (History)
11 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description Sanjeet 2015-04-17 09:18:21 UTC
itms 90047 Error Disallow Path "ITuneMetaData.PList"
Comment 1 Sebastien Pouliot 2015-04-17 10:01:54 UTC
Hello, can you give us more details about the code you submitted that resulted in this error ?

Also please provide us with all version informations of the software you're using.

The easiest way to get exact version information is to use the "Xamarin Studio" menu, "About Xamarin Studio" item, "Show Details" button and copy/paste the version informations (you can use the "Copy Information" button).
Comment 2 Connor 2015-04-29 12:52:19 UTC
I am getting this same error too.

My output from "About Xamarin Studio", "Show Details":

Xamarin Studio
Version 5.8.3 (build 1)
Installation UUID: 7f32abd0-4bf5-4d74-a848-fcd69bfcf845
Runtime:
	Mono 3.12.1 ((detached/0849ec7)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 312010003

Apple Developer Tools
Xcode 6.3.1 (7703)
Build 6D1002

Xamarin.Mac
Not Installed

Xamarin.iOS
Version: 8.9.1.3 (Business Edition)
Hash: f7736a4
Branch: 
Build date: 2015-04-09 04:22:08-0400

Xamarin.Android
Version: 4.20.2.1 (Business Edition)
Android SDK: /Users/Connor/Library/Android/sdk
	Supported Android versions:
		5.0 (API level 21)
Java SDK: /usr
java version "1.8.0_25"
Java(TM) SE Runtime Environment (build 1.8.0_25-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode)

Xamarin Android Player
Version: Unknown version
Location: /Applications/Xamarin Android Player.app

Build Information
Release ID: 508030001
Git revision: 6e8e725e0d689351901c2c70453bfa4ea25e293b
Build date: 2015-04-06 20:31:47-04
Xamarin addins: 051cd5f8c1b5dbfc87eaef80a74aec03f34c60a8

Operating System
Mac OS X 10.10.3
Darwin Connors-MacBook-Pro.local 14.3.0 Darwin Kernel Version 14.3.0
    Mon Mar 23 11:59:05 PDT 2015
    root:xnu-2782.20.48~5/RELEASE_X86_64 x86_64
Comment 4 Connor 2015-04-29 13:00:12 UTC
1. Unzip your ipa
2. Go to destination folder and compress "Payload" folder
3. Upload that .zip

This worked for me.
Comment 5 Cody Beyer (MSFT) 2015-05-06 13:29:58 UTC
Additional version information

Xamarin Studio
Version 5.9 (build 431)
Installation UUID: 266bea7d-a353-49ff-90ed-654d4845b855
Runtime:
Mono 4.0.0 ((detached/d136b79)
GTK+ 2.24.23 (Raleigh theme)

Package version: 400000143

Apple Developer Tools
Xcode 6.3.1 (7703)
Build 6D1002

Xamarin.Mac
Not Installed

Xamarin.Android
Version: 5.1.0.115 (Enterprise Edition)
Android SDK: /Users/wilsondy/Library/Developer/Xamarin/android-sdk-mac_x86
Supported Android versions:
2.3 (API level 10)
4.0.3 (API level 15)
4.4 (API level 19)
4.4.87 (API level 20)
5.0 (API level 21)
Java SDK: /usr
java version "1.8.0_25"
Java(TM) SE Runtime Environment (build 1.8.0_25-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode)

Xamarin Android Player
Not Installed

Xamarin.iOS
Version: 8.10.0.267 (Enterprise Edition)
Hash: 6481535
Branch: master
Build date: 2015-04-27 04:38:13-0400

Build Information
Release ID: 509000431
Git revision: 7560726734fc7267de2fa9abed2509968deefaa8
Build date: 2015-04-17 19:25:48-04
Xamarin addins: 2e772c734ab3148054eae7bf8949f340fdeb5e5e
Comment 6 Connor 2015-05-06 13:30:50 UTC
I believe this is fixed in the latest version of Xamarin Studio.
Comment 7 Cody Beyer (MSFT) 2015-05-06 13:32:24 UTC
@Connor

Thanks for the feedback. It appears that, at least in a limited manner, it is occurring in 5.9

Can you provide the full version details where it appears to be working correctly for you?

Thanks!
Comment 8 Sebastien Pouliot 2015-05-06 13:35:05 UTC
@Jeff, I believe you fixed that with the new workflow right ? Can you confirm and link to the documentation (for support).
Comment 9 Connor 2015-05-06 13:38:33 UTC
Looks like you have the same version as me @Cody. Regardless the workaround I posted will work.
Comment 10 Jeffrey Stedfast 2015-05-06 13:46:56 UTC
Yes, this is already fixed. There's no documentation to link tho, though, so I have no idea what you want me to link to.
Comment 11 Andy Hopper 2015-05-06 14:19:20 UTC
I have tried the workaround of unzipping, but the iTunesMetadata.plist file is not in the root. I have tried removing it from the app contents folder, but that invalidated the signature. Trying to re-sign by re-running the codesign command line resulted in an ITMS-90046 griping about the team ID.

I'm trying XS build 5.9.0.464 now.
Comment 12 Jeffrey Stedfast 2015-05-06 14:22:30 UTC
How are you creating the IPA? If you use Xamarin Studio to create it, it works fine.
Comment 13 Andy Hopper 2015-05-06 14:25:42 UTC
Not sure what you mean; I used XS to create the original IPA, which I then unzipped (creating a Payload folder). Looking in the Payload folder, I see no iTunesMetadata.plist file, but there is one if you view the .app contents.

To re-create the IPA, I re-signed, then zipped back up into a .zip that was then renamed to the original IPA name.

Is there a way to get XS to handle the signing/repackaging from the unzipped & modified contents of the original .IPA?
Comment 14 Jeffrey Stedfast 2015-05-06 14:42:09 UTC
I mean if you use Xamarin Studio's "Publish Archive" feature, it works fine.

It sounds like you are using the IPA produced by the build output which is wrong. That bug has been fixed in Xamarin.iOS 8.12 but the patch cannot be easily back-ported to Xamarin.iOS 8.10.
Comment 15 Andy Hopper 2015-05-06 14:48:09 UTC
No, I'm using the .ipa the Publish Archive flow creates; I'm just detouring from the App Loader to do this unzip/modify/zip dance.

Using 5.9.0464 results in a brand new error:
ERROR ITMS-90166: "Missing code signing entitlement. No entitlements found in bundle <bundle> for executable 'Payload etc'
Comment 16 Jeffrey Stedfast 2015-05-06 14:53:13 UTC
Make sure you choose the option to re-sign your app.
Comment 17 Andy Hopper 2015-05-06 14:55:38 UTC
I did. This is awfully frustrating.
Comment 18 Connor 2015-05-06 14:59:50 UTC
If the iTunesMetadata.plist file is not in the root then you don't need to do my workaround. If submitting the IPA produced is giving you the error "itms 90047 Error Disallow Path "ITuneMetaData.PList"" when the iTunesMetadata.plist isn't in the root then you seem to have a different problem.
Comment 20 Jeffrey Stedfast 2015-05-06 15:13:04 UTC
Connor: No, that's wrong. The Xamarin.iOS MSBuild logic adds the iTunesMetadata.plist file to the .app bundle when it builds it. Apple's recent policy change is to reject IPA's that have app bundles with that file in it, so he does need to remove it.
Comment 21 Andy Hopper 2015-05-06 15:21:56 UTC
Is there anything I can extract from the build log that would help diagnose this? I'm afraid I can't upload our clients' code, but I can at least provide the .csproj file...
Comment 22 Christian Schmitt 2015-05-06 15:29:37 UTC
Same problem here since the "new" update from XS.
I can't upload any file and i do the same thing like before.

Create archive for publishing and save the ipa and upload with applicationloader and xcode won't work.

Also unzip and delete or unpack and repack does not work.

Xamarin Studio
Version 5.9 (build 431)
Installation UUID: affdce82-583b-4ae1-82eb-c2c7e012d733
Runtime:
	Mono 4.0.0 ((detached/d136b79)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 400000143

Apple Developer Tools
Xcode 6.3.1 (7703)
Build 6D1002

Xamarin.Mac
Not Installed

Xamarin.Android
Not Installed

Xamarin Android Player
Not Installed

Xamarin.iOS
Version: 8.10.0.267 (Business Edition)
Hash: 6481535
Branch: master
Build date: 2015-04-27 04:38:13-0400

Build Information
Release ID: 509000431
Git revision: 7560726734fc7267de2fa9abed2509968deefaa8
Build date: 2015-04-17 19:25:48-04
Xamarin addins: 2e772c734ab3148054eae7bf8949f340fdeb5e5e

Operating System
Mac OS X 10.10.4
Darwin iMac.local 14.4.0 Darwin Kernel Version 14.4.0
    Sun Apr 19 20:30:19 PDT 2015
    root:xnu-2782.30.2~2/RELEASE_X86_64 x86_64
Comment 23 Jeffrey Stedfast 2015-05-06 15:37:58 UTC
the error in comment #15 looks like a duplicate of https://bugzilla.xamarin.com/show_bug.cgi?id=29810 which I think I've just fixed in git master (back port coming soon for 5.9)
Comment 24 Andy Hopper 2015-05-06 15:44:03 UTC
Awesome. Is there a way for me to get a build with that change? I see that 464 appears to omit the iTunesMetadata.plist file, so if I can just get the entitlement issue sorted out I would hope to be back in iTunes' good graces...
Comment 26 Christian Schmitt 2015-05-08 00:59:17 UTC
Its working with 5.9.1.5 thanks
Comment 27 Matt Jones 2015-06-19 11:24:24 UTC
Respect to all, and this possibly isn't the right place for opinions, but two months and still not in the stable channel is a bit annoying. Do we also need to raise this for iOS too as it's in there as well?
Comment 28 Connor 2015-06-19 11:34:41 UTC
This is for iOS Matt. I didn't have the error on my last release so not sure what's up with your scenario.
Comment 29 Matt Jones 2015-06-19 11:48:43 UTC
Ah my bad, for some reason I thought it was for the Mac App Store.

I have the issue on 5.9.3 build 1.
Comment 30 Jeffrey Stedfast 2015-06-19 11:56:04 UTC
This is already fixed and in stable.

If you are trying to submit IPA files created by the build process as opposed to submitting an IPA from the Publishing Workflow (created from the Archives), then you need to go into your Project Options and uncheck the following checkbox:

[ ] Include iTunes Artwork
Comment 31 Alek Slater 2015-06-29 05:41:34 UTC
I've got this issue as well, I've been archiving using the "Archive for Publishing" in XS, then I upload via Xcode Organiser. I can't seem to find this Include iTunes Artwork tick box in the project settings, where is it ?
Comment 32 Jeffrey Stedfast 2015-06-29 07:09:27 UTC
Alek: Don't use Xcode's Organizer to submit your app, use Xamarin Studio's publisher to do it - it will remove the iTunesMetadata.plist file for you.

You can't get Xcode's publisher to work.
Comment 33 Alek Slater 2015-06-29 07:55:21 UTC
Xcode's publisher works, although just a bit annoying that I have to manually remove the iTunesMetadata.plist from the archive before I upload, that's all. I'll give the Xamarin Studio a try then, never had much luck with that before :P

Thanks!
Comment 34 Matt Jones 2015-06-29 08:19:07 UTC
Xcode's Organizer works every time for us. We have to strip out the file manually but that's the only extra step.