Code signing from Terminal with 4.7 and 4.8 Standalones

Using Standalone Maker to build executables or delivering projects for use with the SuperCard Player? Discuss it here.

Code signing from Terminal with 4.7 and 4.8 Standalones

Postby HairyHighlandCow » Tue Jan 17, 2017 4:10 am

I built a test standalone using the SC 4.8 Standalone Maker. When I went to code-sign the various frameworks and the app using the Terminal, it said that everything was already signed. Does 4.8 code-sign standalones automatically if it detects the correct certificate on the system?

I also built a standalone with the 4.7 Standalone Maker, but under Mac OS 10.12 this is coming up with a new error when I attempt to code sign the app itself: "resource fork, Finder information, or similar detritus not allowed"

Does this mean Apple have effectively blocked code-signing standalones built with SC 4.7?

Thanks, Alec
Externals, projects and software made with SC:
www.hairyhighlandcow.net/software/SC-projects.html
User avatar
HairyHighlandCow
 
Posts: 226
Joined: Sun Jul 06, 2008 1:45 pm
Location: London, UK

Re: Code signing from Terminal with 4.7 and 4.8 Standalones

Postby Scott » Tue Jan 17, 2017 9:38 am

HairyHighlandCow wrote:I built a test standalone using the SC 4.8 Standalone Maker. When I went to code-sign the various frameworks and the app using the Terminal, it said that everything was already signed. Does 4.8 code-sign standalones automatically if it detects the correct certificate on the system?


The binaries in 4.8 are signed by Solutions Etcetera. You should re-sign everything with your cert.

I also built a standalone with the 4.7 Standalone Maker, but under Mac OS 10.12 this is coming up with a new error when I attempt to code sign the app itself: "resource fork, Finder information, or similar detritus not allowed"

Does this mean Apple have effectively blocked code-signing standalones built with SC 4.7?


No... they just further convoluted the process by disallowing signing if files contain either resource forks or any metadata. You can clear out all extended attribute metadata by changing the working directory to the bundle and running...

Code: Select all
xattr -rc .
User avatar
Scott
Site Admin
 
Posts: 1158
Joined: Sat Jul 05, 2008 1:37 pm
Location: Northern Sierra Nevada

Re: Code signing from Terminal with 4.7 and 4.8 Standalones

Postby HairyHighlandCow » Tue Jan 17, 2017 10:45 am

Thanks Scott, I will give that a go.
Externals, projects and software made with SC:
www.hairyhighlandcow.net/software/SC-projects.html
User avatar
HairyHighlandCow
 
Posts: 226
Joined: Sun Jul 06, 2008 1:45 pm
Location: London, UK

Re: Code signing from Terminal with 4.7 and 4.8 Standalones

Postby HairyHighlandCow » Wed Jan 18, 2017 8:58 am

Hi Scott,
Thanks, removing the resource forks etc. worked and the codesign command stopped complaining. The 'c' needs to go before the 'r' in the 'xattr' command, however (c is clear, r is the recursive flag to work on all files for the folder and sub-folders.)

Code: Select all
xattr -cr


Thanks,
Alec
Externals, projects and software made with SC:
www.hairyhighlandcow.net/software/SC-projects.html
User avatar
HairyHighlandCow
 
Posts: 226
Joined: Sun Jul 06, 2008 1:45 pm
Location: London, UK

Re: Code signing from Terminal with 4.7 and 4.8 Standalones

Postby Scott » Thu Jan 19, 2017 6:28 am

Here, the order doesn't matter.
User avatar
Scott
Site Admin
 
Posts: 1158
Joined: Sat Jul 05, 2008 1:37 pm
Location: Northern Sierra Nevada

Re: Code signing from Terminal with 4.7 and 4.8 Standalones

Postby HairyHighlandCow » Thu Jan 19, 2017 6:50 am

Hmm, that's odd. Maybe I mis-typed something.
What's up with those error messages from code-sign though? I remember when resource forks were handy, now they are calling them 'detritus'! ;)
Externals, projects and software made with SC:
www.hairyhighlandcow.net/software/SC-projects.html
User avatar
HairyHighlandCow
 
Posts: 226
Joined: Sun Jul 06, 2008 1:45 pm
Location: London, UK

Re: Code signing from Terminal with 4.7 and 4.8 Standalones

Postby Scott » Thu Jan 19, 2017 9:05 am

Gotta love Apple!
Image
User avatar
Scott
Site Admin
 
Posts: 1158
Joined: Sat Jul 05, 2008 1:37 pm
Location: Northern Sierra Nevada


Return to Building Standalones

Who is online

Users browsing this forum: No registered users and 1 guest

cron