diff options
| author | FivePixels <o5pxels@gmail.com> | 2019-01-07 20:13:47 -0600 |
|---|---|---|
| committer | FivePixels <o5pxels@gmail.com> | 2019-01-07 20:13:47 -0600 |
| commit | 33590b7c5b66d4a8abf043f0edd4e32dbd39795c (patch) | |
| tree | 23bb3fb6e9b11dc788a4b7496a8157ca54008f52 /Carthage/Checkouts/LaunchAtLogin/before-after.md | |
| parent | ac6f551c70d67afe5a76dcfdafcde7eda7748b79 (diff) | |
| download | dwa140shortcut-33590b7c5b66d4a8abf043f0edd4e32dbd39795c.tar.xz dwa140shortcut-33590b7c5b66d4a8abf043f0edd4e32dbd39795c.zip | |
meet?
Diffstat (limited to 'Carthage/Checkouts/LaunchAtLogin/before-after.md')
| -rw-r--r-- | Carthage/Checkouts/LaunchAtLogin/before-after.md | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Carthage/Checkouts/LaunchAtLogin/before-after.md b/Carthage/Checkouts/LaunchAtLogin/before-after.md new file mode 100644 index 0000000..91cbe70 --- /dev/null +++ b/Carthage/Checkouts/LaunchAtLogin/before-after.md @@ -0,0 +1,21 @@ +# Before and after + +With `LaunchAtLogin`, you only have to do 2 steps instead of 13! + +```diff +- 1. Create a new target that will be the helper app that launches your app +- 2. Set `LSBackgroundOnly` to true in the `Info.plist` file +- 3. Set `Skip Install` to `YES` in the build settings for the helper app +- 4. Enable sandboxing for the helper app +- 5. Add a new `Copy Files` build phase to the main app +- 6. Select `Wrapper` as destination +- 7. Enter `Contents/Library/LoginItems` as subpath +- 8. Add the helper build product to the build phase +- 9. Copy-paste some boilerplate code into the helper app +- 10. Remember to replace `bundleid.of.main.app` and `MainExectuableName` with your own values +- 11. Copy-paste some code to register the helper app into your main app +- 12. Make sure the main app and helper app use the same code signing certificate +- 13. Manually verify that you did everything correctly ++ 1. Install this package ++ 2. Add a new "Run Script Phase" +``` |
