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

Use PlistBuddy instead of defaults in scripts #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Dec 12, 2019

  1. Use PlistBuddy instead of defaults in scripts

    The defaults command will sometimes fail with an error like this:
    
    > The domain/default pair of (.../FraudForce.framework/Info.plist, CFBundleExecutable) does not exist
    
    The defaults command seems intended for use with the macOS preferences system. Included in its man page is:
    
    > WARNING: The defaults command will be changed in an upcoming major release to only operate on preferences domains. General plist manipulation utilities will be folded into a different command-line program.
    
    Perhaps Catalina is that upcoming major release 😅
    
    A better alternative to using defaults is PlistBuddy. If you replace the defaults command in slim-build-frameworks.sh with /usr/libexec/PlistBuddy -c "Print :CFBundleExecutable" "${OUTPUT_FRAMEWORK_PATH}/Info.plist" then it will return the same value and shouldn't fail with the error quoted above.
    interstateone committed Dec 12, 2019
    Configuration menu
    Copy the full SHA
    5504d77 View commit details
    Browse the repository at this point in the history