Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Fri Dec 14, 2018 3:31 am
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: Mac App Store Code-Signing Woes Continue
PostPosted: Wed Jan 26, 2011 10:40 pm 
Offline

Joined: Fri Dec 23, 2005 7:59 pm
Posts: 35
Unfortunately, as I posted here, I am having problems properly codesigning my app and installer package before submission to Apple for the Mac App Store.

As I indicated in that other thread, after I sign my app, using codesign, and build the package using productbuild, I delete the built app, use the package to install and launch the app. Originally, the app was loading and quitting with the errorcode 173 (as expected), but not going any further. I was getting the following messages in Console.app:

Jan 26 21:20:41 Serenity com.apple.launchd.peruser.502[104] ([0x0-0x674674].com.searchwaresolutions.AppStore.MyApp[18081]): Exited with exit code: 173
Jan 26 21:20:41 Serenity storeagent[18085]: port created
Jan 26 21:20:41 Serenity storeagent[18085]: Unsigned app (/Applications/MyApp.app).


(As I also mentioned in that thread, "MyApp" is not actually the name of the app, but I'm not yet allowed to include it in a public forum.)

So, the storeagent process was thinking the app was not signed. After a bit of trouble-shooting, I discovered that after restarting the computer, everything worked the way it was supposed to. No longer was I getting the "Unsigned app" message in Console.app. Rather, the validation dialog would appear and I could enter my test user's credentials and the app would launch correctly.

Things were fine for a few days, but now, suddenly, I'm getting the "Unsigned app" message in Console.app again. Unfortunately, this time, restarting the computer has not helped.

I've done a bit more trouble-shooting and have discovered that it has to do something with productbuild. After I sign the app, using codesign, I can launch the app and it will attempt to validate correctly, as it should. But, after I use productbuild, launching the copy of the app it puts in /Applications, will result in the "Unsigned app" message. AAAARRRGGGHHHH!!!!

I think I'm using the correct command to build the package:
productbuild --component "MyApp.app" /Applications --sign "3rd Party Mac Developer Installer: MyName" "MyApp.pkg"


I'm at wits end here. I'm now under a deadline to submit to the Mac App Store that is looming ever closer and I've spent two days trying to figure this out. Apple's Developer Forums don't appear to be working (after I log in at http://devforums.apple.com, I get a message saying that they are experiencing technical problems—it's been like that for days), Google searches aren't turning up much and I'm not sure where else to ask for help.

So...I'm here asking for help! :)

Any and all help would be greatly appreciated! Anyone else run into this, or have a good idea what's going on?

Thank you!

_________________
Searchware Solutions
Simply Great Software
http://www.searchwaresolutions.com


Top
 Profile  
Reply with quote  
 Post subject: Re: Mac App Store Code-Signing Woes Continue
PostPosted: Sat Jan 29, 2011 4:34 pm 
Offline

Joined: Fri Dec 23, 2005 7:59 pm
Posts: 35
Bump.

I'm surprised no one else seems to have run into this? I'm seeing this happen on two completely unrelated Macs.

Scott

_________________
Searchware Solutions
Simply Great Software
http://www.searchwaresolutions.com


Top
 Profile  
Reply with quote  
 Post subject: Re: Mac App Store Code-Signing Woes Continue
PostPosted: Sun Feb 13, 2011 7:41 pm 
Offline

Joined: Fri Dec 23, 2005 7:59 pm
Posts: 35
Well, I have finally solved this problem. It appears that there is some sort of permissions problem with the built app that, after codesigned, stuffed into a package and then installed, caused the storeagent process to think the app was not actually signed.

So, to solve this problem, I've added a step to my submission process. Right before codesigning the app, I run the following command on the built app:
chmod -R 775 myapp.app


Now, after installing the app, the storeagent recognizes it as a signed app.

WOOOOO!!!!

Scott

_________________
Searchware Solutions
Simply Great Software
http://www.searchwaresolutions.com


Top
 Profile  
Reply with quote  
 Post subject: Re: Mac App Store Code-Signing Woes Continue
PostPosted: Sat Aug 06, 2011 4:52 pm 
Offline

Joined: Sat Sep 30, 2006 7:05 am
Posts: 33
Scott,

I'd like to thank you belatedly for posting your solution. It just helped me. :)


Top
 Profile  
Reply with quote  
 Post subject: Re: Mac App Store Code-Signing Woes Continue
PostPosted: Sun Aug 07, 2011 7:39 am 
Offline

Joined: Fri Dec 23, 2005 7:59 pm
Posts: 35
I'm glad it helped you. I know EXACTLY how frustrating that problem was... :D

_________________
Searchware Solutions
Simply Great Software
http://www.searchwaresolutions.com


Top
 Profile  
Reply with quote  
 Post subject: Re: Mac App Store Code-Signing Woes Continue
PostPosted: Tue Aug 30, 2011 7:57 pm 
Offline

Joined: Tue Aug 05, 2008 9:51 pm
Posts: 48
I had an error with CodeSigning where is said the identity could not be found. Drove me crazy. I was using the exact same shell script to prepare my application -- I was thinking it was related to upgrading to Lion. Just about getting ready to install Snow Leopard onto an external bootable drive when I decided to try 1 thing.

I went back onto the Apple site and built two new security certificates (App + Installer) and installed them into my keychain. Fixed the problem -- everything worked perfectly again.

Don't know what happened for the original certificates to get hosed -- that may have been related to the Lion upgrade, but I don't know (and yes, the certificates were still valid).

_________________
REALStudio 2011R3
MacBook Air OS X Lion
Pilot eLog: http://www.sheald.net/flying


Top
 Profile  
Reply with quote  
 Post subject: Re: Mac App Store Code-Signing Woes Continue
PostPosted: Sun Mar 17, 2013 5:59 am 
Offline

Joined: Sat Feb 16, 2013 7:28 am
Posts: 3
Hi Scott,

Just want to say thank you very much for this advice. It really saved my day. That was the last barrier before submitting my app to the Mac App Store. Hopefully the guys at Apple don't have any reasons for rejecting it.

Greetings from Germany
Thomas


Top
 Profile  
Reply with quote  
 Post subject: Re: Mac App Store Code-Signing Woes Continue
PostPosted: Sun Mar 17, 2013 8:51 pm 
Offline

Joined: Fri Dec 23, 2005 7:59 pm
Posts: 35
Thomas. wrote:
Just want to say thank you very much for this advice. It really saved my day. That was the last barrier before submitting my app to the Mac App Store. Hopefully the guys at Apple don't have any reasons for rejecting it.


I'm glad it helped you Thomas! Good luck with your submission!

_________________
Searchware Solutions
Simply Great Software
http://www.searchwaresolutions.com


Top
 Profile  
Reply with quote  
 Post subject: Re: Mac App Store Code-Signing Woes Continue
PostPosted: Mon Mar 18, 2013 12:14 am 
Offline
User avatar

Joined: Fri Sep 30, 2005 11:00 am
Posts: 583
Location: Beautiful Taiwan
A quick way to confirm if it's your script or not is to download App Wrapper and test it with App Wrapper. If it works, then you know it's your script, if not then it's something else.

And yes the permissions do cause an issue, so by clearing them before you code sign (once you code sign, any changes to the app will break the code signature), it will help.

Other things to watch out for are incorrectly code signed components, this recently gave me a headache as one item with a broken code signature in your bundle seems to invalidate the entire app silently too!

_________________
Sam Rowlands
rMBP 15" @ 10.8 & '08 MBA 13" @ 10.6 + 10.7, RB2012
http://www.ohanaware.com/
AppWrapper - Prepare Apps for Mac App Store & OS X 10.8 - http://www.ohanaware.com/appwrapper/


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group