sindresorhus / LaunchAtLogin-Legacy

Add “Launch at Login” functionality to your macOS app in seconds
MIT License
1.55k stars 122 forks source link

Xcode 14.0 - warning build: Run script build phase 'Copy “Launch at Login Helper”' will be run during every build ... #81

Closed honghaoz closed 1 year ago

honghaoz commented 1 year ago

Seeing a warning on Xcode 14.0

warning build: Run script build phase 'Copy “Launch at Login Helper”' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase.
CleanShot 2022-09-24 at 17 25 37@2x

Not sure how to have a reliable input or output file list as the build phase dependency. Given the helper app needs to match the main app's $PRODUCT_BUNDLE_IDENTIFIER and do code resign. Maybe a good fix is to uncheck the Based on dependency analysis option: CleanShot 2022-09-24 at 17 26 47@2x

If so, we should to mentioned it in README.md