Giter VIP home page Giter VIP logo

Comments (13)

KrauseFx avatar KrauseFx commented on July 30, 2024

Do you know, if it's possible to update the flag? If so, how?

from sigh.

tonyxiao avatar tonyxiao commented on July 30, 2024

Yea it is possible. Will need to modify the entitlements.plist that gets embedded in the application binary. For example.

# Grab the entitlements and modify entitlement attrributes
codesign -d --entitlements :$ENTITLEMENTS_PATH "Payload/$PRODUCT_NAME.app"
/usr/libexec/PlistBuddy -c "Set :aps-environment production" $ENTITLEMENTS_PATH
/usr/libexec/PlistBuddy -c "Set :get-task-allow false" $ENTITLEMENTS_PATH
/usr/libexec/PlistBuddy -c "Delete :com.apple.developer.associated-domains" $ENTITLEMENTS_PATH
# Resign with the right entitlements
codesign -s "$DEVELOPER_NAME" --entitlements $ENTITLEMENTS_PATH --force --deep "Payload/$BETA_PRODUCT_NAME.app"

from sigh.

KrauseFx avatar KrauseFx commented on July 30, 2024

Are you talking about the sigh resign command? If so, sigh makes uses floatsign.sh to re-sign your app: https://github.com/KrauseFx/sigh/blob/master/lib/assets/resign.sh

If you know how to fix it, I'd appreciate a pull request 👍

from sigh.

tonyxiao avatar tonyxiao commented on July 30, 2024

yea that's right I'm talking about the sigh resign command. I dont know much about floatsigh.sh, is that an external dependency?

from sigh.

tonyxiao avatar tonyxiao commented on July 30, 2024

If you give me some pointers I'd be more than happy to take a look though and hopefully submit a PR.

from sigh.

KrauseFx avatar KrauseFx commented on July 30, 2024

Yes, it is built into sigh, I took it from https://gist.github.com/Weptun/5406993. You can see the full source code in the above link. sigh resign will just call it here: https://github.com/KrauseFx/sigh/blob/master/lib/sigh/resign.rb#L25

Since floatsign.sh is just a sell script, you wouldn't need to make any modifications of the Ruby code.

If the steps taken with https://github.com/KrauseFx/sigh/blob/master/lib/assets/resign.sh seem unnecessary to you to resign an app, you can replace all that with better code of course!

To test it locally, clone the repository and run sudo bundle install (to install the development dependencies) and sudo rake install. You will have to run sudo rake install after you updated resign.sh, since it's copied over to the gems folder of your computer.

from sigh.

tonyxiao avatar tonyxiao commented on July 30, 2024

Awesome, I'll try to find some time to take a look.

from sigh.

EileenH-2 avatar EileenH-2 commented on July 30, 2024

I was having a similar issue, and I noticed that https://gist.github.com/Weptun/5406993 was moved to https://github.com/nanonation/floatsign, and it seems like the -r parameter might already do what you were looking for with beta-reports-active. Just thought I'd mention it in case you hadn't noticed already, since I'm not going to have time to take a deeper look.

from sigh.

tonyxiao avatar tonyxiao commented on July 30, 2024

Great eye, pull request submitted, please take a look?

from sigh.

KrauseFx avatar KrauseFx commented on July 30, 2024

Thanks 👍

from sigh.

KrauseFx avatar KrauseFx commented on July 30, 2024

This is all finished now, right? 😃 Thanks again for your help.

from sigh.

chrisvire avatar chrisvire commented on July 30, 2024

Where are you pulling changes to resign.sh from? Where should upstream PRs be submitted?

This change broke adhoc deployment signing. See #159.

from sigh.

fastlanebot avatar fastlanebot commented on July 30, 2024

This issue was migrated to fastlane/fastlane#2982. Please post all further comments there.

fastlane is now a mono repo, you can read more about the change in our blog post. All tools are now available in the fastlane main repo 🚀

from sigh.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.