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

Code Sign Update Script broken on Xcode 11 #19

Open
OskarGroth opened this issue Oct 22, 2019 · 2 comments
Open

Code Sign Update Script broken on Xcode 11 #19

OskarGroth opened this issue Oct 22, 2019 · 2 comments

Comments

@OskarGroth
Copy link

Mac Developer certificates are now on the form Apple Development: instead of Mac Developer:, causing the code sign update script to fail.

It can be fixed by updating the macDeveloper function as follows:

if ! [[ ${macDeveloperCN} =~ ^Apple\ Development:\ .*\ \([A-Z0-9]{10}\)$ ]]; then
    printf "%s\n" "Invalid Mac Developer CN: ${macDeveloperCN}"
    exit 1
fi
@OskarGroth OskarGroth changed the title Code Sign Update Script broken on Xcode 12 Code Sign Update Script broken on Xcode 11 Oct 22, 2019
@NghiaTranUIT
Copy link

Thank for the fix 🌮. I was stuck on it for a day 😱

@jaroslavas
Copy link

Or you can use this if statement if you need it to work on both of and new names:

if ! [[ ${macDeveloperCN} =~ ^Mac\ Developer:\ .*\ \([A-Z0-9]{10}\)$ ]] && ! [[ ${macDeveloperCN} =~ ^Apple\ Development:\ .*\ \([A-Z0-9]{10}\)$ ]]; then

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