Skip to content

Instantly share code, notes, and snippets.

@harmancode
Forked from zetachang/gist:4111314
Last active May 30, 2023 17:22
Show Gist options
  • Select an option

  • Save harmancode/af6d68e5af071a672a3b99c8966303d4 to your computer and use it in GitHub Desktop.

Select an option

Save harmancode/af6d68e5af071a672a3b99c8966303d4 to your computer and use it in GitHub Desktop.

Revisions

  1. harmancode revised this gist Feb 8, 2021. No changes.
  2. harmancode revised this gist Feb 8, 2021. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,5 @@
    ## How to add Acknowledgements to an iOS app's Settings bundle

    * To add Settings.bundle in Xcode. __Command N__ and in __Resource__, choose __Settings Bundle__ .
    * Open `Root.plist` in source code, paste the code below to replace it,

  3. harmancode revised this gist Jan 1, 2021. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -57,4 +57,7 @@

    Modify version number and add third party license and attribution texts.

    To automate this process, see this: https://stackoverflow.com/questions/6428353/best-way-to-add-license-section-to-ios-settings-bundle/6453507#6453507
    --
    Extra resources:

    * To automate this process: https://stackoverflow.com/questions/6428353/best-way-to-add-license-section-to-ios-settings-bundle/6453507#6453507
  4. harmancode revised this gist Jan 1, 2021. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -55,4 +55,6 @@
    </plist>
    ```

    Modify version number and add third party license and attribution texts.
    Modify version number and add third party license and attribution texts.

    To automate this process, see this: https://stackoverflow.com/questions/6428353/best-way-to-add-license-section-to-ios-settings-bundle/6453507#6453507
  5. harmancode revised this gist Jan 1, 2021. 1 changed file with 14 additions and 34 deletions.
    48 changes: 14 additions & 34 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -34,45 +34,25 @@
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
    <key>StringsTable</key>
    <string>Acknowledgements</string>
    <key>PreferenceSpecifiers</key>
    <array>
    <dict>
    <key>Title</key>
    <string>
    XXXKit is available under the MIT license.

    Copyright (c) 2012 ZZZ

    Permission is hereby granted, free of charge, to any person obtaining a copy
    of this software and associated documentation files (the "Software"), to deal
    in the Software without restriction, including without limitation the rights
    to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
    copies of the Software, and to permit persons to whom the Software is
    furnished to do so, subject to the following conditions:

    The above copyright notice and this permission notice shall be included in
    all copies or substantial portions of the Software.

    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
    THE SOFTWARE.
    </string>
    <key>StringsTable</key>
    <string>Root</string>
    <key>PreferenceSpecifiers</key>
    <array>
    <dict>
    <key>Type</key>
    <string>PSGroupSpecifier</string>
    <key>Title</key>
    <string>Version X.X.X</string>
    <key>FooterText</key>
    <string>This app uses the following software and intellectual property under the following license agreements:
    ***ADD THIRD PARTY LICENSE and ATTRIBUTION TEXTS HERE***

    </string>
    </dict>
    </array>
    </dict>
    </plist>
    ```

    The big chunk of data above in string tag is the place you can place your long long third party license.

    * Finally in the `Settings.app`, we got the license section as Apple did in a lot of apps.

    ![License in Settings.app](http://d.pr/i/Wjib+)
    Modify version number and add third party license and attribution texts.
  6. @zetachang zetachang revised this gist Nov 19, 2012. 1 changed file with 6 additions and 8 deletions.
    14 changes: 6 additions & 8 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    * To add Settings.bundle. __Command N__, in __Resource__, choose __Settings Bundle__ .
    * To add Settings.bundle in Xcode. __Command N__ and in __Resource__, choose __Settings Bundle__ .
    * Open `Root.plist` in source code, paste the code below to replace it,

    ```xml
    @@ -35,13 +35,11 @@
    <plist version="1.0">
    <dict>
    <key>StringsTable</key>
    <string>Acknowledgements</string>
    <key>Title</key>
    <string>License</string>
    <key>PreferenceSpecifiers</key>
    <array>
    <dict>
    <key>Title</key>
    <string>Acknowledgements</string>
    <key>PreferenceSpecifiers</key>
    <array>
    <dict>
    <key>Title</key>
    <string>
    XXXKit is available under the MIT license.

  7. @zetachang zetachang revised this gist Nov 19, 2012. 1 changed file with 14 additions and 8 deletions.
    22 changes: 14 additions & 8 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,6 @@
    1. To add Settings.bundle. __Command N__, in __Resource__, choose __Settings Bundle__ .
    2. Open `Root.plist` in source code, paste the code below to replace it,
    * To add Settings.bundle. __Command N__, in __Resource__, choose __Settings Bundle__ .
    * Open `Root.plist` in source code, paste the code below to replace it,

    ```xml
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    @@ -21,11 +22,12 @@
    </dict>
    </plist>
    ```
    3. Right click `Settings.bundle`, choose __Open in Finder__.
    4. In Finder, right click `Settings.bundle`, choose __Show Package Contents__.
    5. __Command D__ to duplicate the `Root.plist`.
    6. Rename the duplicated one to `Acknowledgements.plist`.
    7. Back to Xcode, open `Acknowledgements.plist` in source code, and replace the content with code below,

    * Right click `Settings.bundle`, choose __Open in Finder__.
    * In Finder, right click `Settings.bundle`, choose __Show Package Contents__.
    * __Command D__ to duplicate the `Root.plist`.
    * Rename the duplicated one to `Acknowledgements.plist`.
    * Back to Xcode, open `Acknowledgements.plist` in source code, and replace the content with code below,

    ```xml
    <?xml version="1.0" encoding="UTF-8"?>
    @@ -71,4 +73,8 @@ THE SOFTWARE.
    </plist>
    ```

    The big chunk of data is the place you can place your long long third party license.
    The big chunk of data above in string tag is the place you can place your long long third party license.

    * Finally in the `Settings.app`, we got the license section as Apple did in a lot of apps.

    ![License in Settings.app](http://d.pr/i/Wjib+)
  8. @zetachang zetachang revised this gist Nov 19, 2012. 1 changed file with 0 additions and 2 deletions.
    2 changes: 0 additions & 2 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,5 @@
    1. To add Settings.bundle. __Command N__, in __Resource__, choose __Settings Bundle__ .
    2. Open `Root.plist` in source code, paste the code below to replace it,

    ```xml
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    @@ -22,7 +21,6 @@
    </dict>
    </plist>
    ```

    3. Right click `Settings.bundle`, choose __Open in Finder__.
    4. In Finder, right click `Settings.bundle`, choose __Show Package Contents__.
    5. __Command D__ to duplicate the `Root.plist`.
  9. @zetachang zetachang revised this gist Nov 19, 2012. 1 changed file with 52 additions and 0 deletions.
    52 changes: 52 additions & 0 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -22,3 +22,55 @@
    </dict>
    </plist>
    ```

    3. Right click `Settings.bundle`, choose __Open in Finder__.
    4. In Finder, right click `Settings.bundle`, choose __Show Package Contents__.
    5. __Command D__ to duplicate the `Root.plist`.
    6. Rename the duplicated one to `Acknowledgements.plist`.
    7. Back to Xcode, open `Acknowledgements.plist` in source code, and replace the content with code below,

    ```xml
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
    <key>StringsTable</key>
    <string>Acknowledgements</string>
    <key>Title</key>
    <string>License</string>
    <key>PreferenceSpecifiers</key>
    <array>
    <dict>
    <key>Title</key>
    <string>
    XXXKit is available under the MIT license.

    Copyright (c) 2012 ZZZ

    Permission is hereby granted, free of charge, to any person obtaining a copy
    of this software and associated documentation files (the "Software"), to deal
    in the Software without restriction, including without limitation the rights
    to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
    copies of the Software, and to permit persons to whom the Software is
    furnished to do so, subject to the following conditions:

    The above copyright notice and this permission notice shall be included in
    all copies or substantial portions of the Software.

    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
    THE SOFTWARE.
    </string>
    <key>Type</key>
    <string>PSGroupSpecifier</string>
    </dict>
    </array>
    </dict>
    </plist>
    ```

    The big chunk of data is the place you can place your long long third party license.
  10. @zetachang zetachang revised this gist Nov 19, 2012. 1 changed file with 23 additions and 2 deletions.
    25 changes: 23 additions & 2 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,24 @@
    # Add Settings.bundle
    1. To add Settings.bundle. __Command N__, in __Resource__, choose __Settings Bundle__ .
    2. Open `Root.plist` in source code, paste the code below to replace it,

    1. __Command N__, choose __Resource__
    ```xml
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
    <key>PreferenceSpecifiers</key>
    <array>
    <dict>
    <key>Type</key>
    <string>PSChildPaneSpecifier</string>
    <key>File</key>
    <string>Acknowledgements</string>
    <key>Title</key>
    <string>Acknowledgements</string>
    </dict>
    </array>
    <key>StringsTable</key>
    <string>Root</string>
    </dict>
    </plist>
    ```
  11. @zetachang zetachang created this gist Nov 19, 2012.
    3 changes: 3 additions & 0 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    # Add Settings.bundle

    1. __Command N__, choose __Resource__