Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable Hardened runtime #234

Open
letoosh opened this issue Jan 22, 2019 · 5 comments
Open

Enable Hardened runtime #234

letoosh opened this issue Jan 22, 2019 · 5 comments

Comments

@letoosh
Copy link

letoosh commented Jan 22, 2019

Is there a way to notarize an app with Squirrel in it?

I'm trying to submit it for notarization, but I get:

Hardened Runtime is not enabled.

"ShipIt" must be rebuilt with support for the Hardened Runtime. Enable the Hardened Runtime capability in the project editor, then test your app, rebuild your archive, and upload again.

I've set "Enable Hardened Runtime" on ShipIt target but didn't help.

@mRs-
Copy link

mRs- commented May 16, 2019

Yep got the same Issue. Is there a way to get this running. I really want to notarize my App. Without this, I can't use Squirrel for updating my Application :(

@MarshallOfSound
Copy link
Collaborator

Are y'all actually signing the shipit binary? I don't know how y'all are codesigning but I've successfully notarized an app with squirrel.mac I side it :)

@mRs-
Copy link

mRs- commented May 16, 2019

Maybe it's a problem that I use Carthage? It seems the binary has no direct connection to my current Xcode Project (It's a dependency of the Squirrel.Framework).

Maybe we need to add ShipIt as a Dependency to the main Project?

@MarshallOfSound
Copy link
Collaborator

I'm pretty sure it'll just be a case of you finding the right configuration. My codesigning is done manually by executing the codesign binary so I don't know what project config you'd need to do to get the equivalent result

@mRs-
Copy link

mRs- commented May 16, 2019

I added a Run Script Phase to my Build Phases. Now it's working.

It's the following script:

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


# By default, use the configured code signing identity for the project/target
IDENTITY="${CODE_SIGN_IDENTITY}"
if [ "$IDENTITY" == "" ]
then
# If a code signing identity is not specified, use ad hoc signing
IDENTITY="-"
fi

codesign --verbose --force --deep -o runtime --sign "$IDENTITY" "$LOCATION/Squirrel.framework/Resources/Shipit"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants