sindresorhus / LaunchAtLogin-Legacy

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

Error when archive app #99

Closed fisher158163 closed 10 months ago

fisher158163 commented 10 months ago

LaunchAtLogin is integrated with SMP. It works fine when running locally, but encounters an error during archive. The error message is as follows:

image

macOS Version:Sonoma 14.1 Xcode Version:15.0.1

fisher158163 commented 10 months ago

error message is:

error: Sandbox: bash(22733) deny(1) file-read-data /Users/xxx/Library/Developer/Xcode/DerivedData/Switcher-ankopopcbmninxbrgxaouxorttot/Build/Intermediates.noindex/ArchiveIntermediates/Switcher/IntermediateBuildFilesPath/UninstalledProducts/macosx/LaunchAtLogin_LaunchAtLogin.bundle/Contents/Resources/copy-helper-swiftpm.sh (in target 'Switcher' from project 'Switcher') /bin/bash: /Users/xxx/Library/Developer/Xcode/DerivedData/Switcher-ankopopcbmninxbrgxaouxorttot/Build/Intermediates.noindex/ArchiveIntermediates/Switcher/BuildProductsPath/Release/LaunchAtLogin_LaunchAtLogin.bundle/Contents/Resources/copy-helper-swiftpm.sh: Operation not permitted

sindresorhus commented 10 months ago

This is documented in the readme:

The build phase cannot run with "User Script Sandboxing" enabled. With Xcode 15 or newer where it is enabled by default, disable "User Script Sandboxing" in build settings.

fisher158163 commented 10 months ago

This is documented in the readme:

The build phase cannot run with "User Script Sandboxing" enabled. With Xcode 15 or newer where it is enabled by default, disable "User Script Sandboxing" in build settings.

Thank you,I've seen the key message👍