sindresorhus / LaunchAtLogin-Legacy

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

code object is not signed at all #44

Closed frogg closed 4 years ago

frogg commented 4 years ago

Hello,

I'm encountering some problems with LaunchAtLogin that I can't figure out by myself: I've integrated the framework using Carthage, added the script, and now whenever I try to compile I get this error:

code object is not signed at all
In subcomponent: Contents/Library/LoginItems/LaunchAtLoginHelper.app

Any ideas what I could try to solve this issue?

sindresorhus commented 4 years ago

There are some tips in the readme. You could also try the open PR that adds Swift Package Manager support, which should work more reliably.

xta commented 4 years ago

Getting this error as well: code object is not signed at all. Due to this error, I cannot archive/build the app.

I looked into Swift Package Manager PR and that requires Xcode 12? Current GM Xcode is only v11

@frogg were you able to get this working?

Thanks

paxos commented 4 years ago

I got this running with a custom sign script (Xcode 11):

LOCATION="${BUILT_PRODUCTS_DIR}"/"${FRAMEWORKS_FOLDER_PATH}"
IDENTITY=${EXPANDED_CODE_SIGN_IDENTITY_NAME}

codesign --verbose --force -o runtime --sign "$IDENTITY" "$LOCATION/../Library/LoginItems/LaunchAtLoginHelper.app"
frogg commented 4 years ago

Getting this error as well: code object is not signed at all. Due to this error, I cannot archive/build the app.

I looked into Swift Package Manager PR and that requires Xcode 12? Current GM Xcode is only v11

@frogg were you able to get this working?

Thanks

Managed to get this working with the mentioned Swift Packet Manager Branch. Thanks for the great work @SergeyKuryanov!

Xcode 12 is available here btw.

sindresorhus commented 4 years ago

Good to hear. That branch is now shipping in v4. https://github.com/sindresorhus/LaunchAtLogin/releases/tag/v4.0.0