Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

This bundle is invalid - Your archive contains paths that are not allowed: ( "entitlements.plist" ) #77

Open
lorthirk opened this issue Dec 3, 2015 · 10 comments

Comments

@lorthirk
Copy link

lorthirk commented Dec 3, 2015

Hello. I used iResign in the past, and successfully submitted apps signed with it to the app store. However, since today I'm going to update one of my apps, I'm getting my app rejected with this reason:

This bundle is invalid - Your archive contains paths that are not allowed: ("entitlements.plist")

Of course I don't have the source code, but only the .ipa.

What can I do?

@lyndsey-ferguson
Copy link

We just faced this today. We had provided the mobileprovision file to re-sign an already signed app and that caused the code to write an entitlements.plist file. What we did was to not provide a path to the mobileprovision file and that did not write the entitlements.plist file inside the bundle.

@lyndsey-ferguson
Copy link

@maciekish please look into not writing the entitlements.plist file into the re-signed zip. From what I can see in docs, the file is not to be included in the ipa.

@prijupaul
Copy link

Any updates on this issue? Facing the same issue. Thanks.

@romrell4
Copy link

I have had this issue as well. I'd love to see the solution

@guarani
Copy link

guarani commented Feb 9, 2016

@lyndsey-ferguson are you sure it's not needed? If I leave out the path to the Provisioning Profile, I get:
ERROR ITMS-90166: "Missing Code Signing Entitlements. No entitlements found in bundle 'com.example.app' for executable 'Payload/MyApp.app/MyApp'.""

@lyndsey-ferguson
Copy link

We didn't have any problems sending it to the App store without it. Perhaps your app actually includes its own entitlements file? If so, that seems to mean that resign should point to that file.

@joeljeske
Copy link

I am also getting this issue and do not know how to resign so I can upload via Application Loader. Any ideas?

@blueishsilverbullet
Copy link

It is an intermittent bug in iResign which causes it to include entitlments.plist in application bundle. It is not even plist file but a dump of entitlements keys/values.

Here is a workaround, which SHOULD work:

  1. Extract the ipa into a directory. Assuming your app is named as MyApp.ipa
    $ mkdir extract
    $ unzip -qo MyApp.ipa -d extract
  2. You will notice the entitlements.plist at root of extract directory.
    $ cd extract
    $ ls
    BCSymbolMaps Payload SwiftSupport Symbols entitlements.plist
  3. Delete the entitlements.plist and repackage your ipa
    $ rm entitlements.plist
    $ zip -qry ../MyApp.Fixed.ipa

After this, try submitting the MyApp.Fixed.ipa thru Application Loader. PM me if you have any resigning issues.

@joeljeske
Copy link

I am no longer trying to use iResign, but instead found FastLane, specifically sigh resign, to be a better and more comprehensive solution.

Thanks for the help however!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants
@guarani @prijupaul @joeljeske @lyndsey-ferguson @lorthirk @romrell4 @blueishsilverbullet and others