nowsecure / node-applesign

NodeJS module and commandline utility for re-signing iOS applications (IPA files).
https://www.nowsecure.com
MIT License
420 stars 77 forks source link

Can't override the get-task-allow to false #91

Closed jsramraj closed 4 years ago

jsramraj commented 4 years ago

When resigning my .iPa with new distribution certificate, I try override the entitlement get-task-allow to false by using the following code. But the value never changes in the signed ipa file.

const as = new Applesign({ withGetTaskAllow: false, identity: 'path to certificate', mobileprovision: 'path to mobileprovision', });

jsramraj commented 4 years ago

I looked at the code and I found that the block never executes if the withGetTaskAllow is set to false.

if (this.config.withGetTaskAllow) {
      if (entMacho['get-task-allow'] !== true) {
        this.emit('message', 'get-task-allow set to true');
        entMacho['get-task-allow'] = true;
        changed = true;
      }
    }
trufae commented 4 years ago

this is fixed in master in https://github.com/nowsecure/node-applesign/pull/92