Re: Adding helper app to sandboxed Cocoa app

2013-12-19 Thread Todd Heberlein

On Dec 18, 2013, at 5:49 PM, Seth Willits sli...@araelium.com wrote:

 I'm positive the same goes for the helpers. I can easily repeat this and 
 setting Skip Install to YES on the tool's target works as expected.

Kaching!!  :)

I had *two* problems. The first was that my certificates were all screwed up. I 
deleted all developer certificates via Keychain Access (after backing up) and 
then manually downloaded just what I needed from Apple's portal and dragged it 
into Keychain Access.  *Then* setting “Skip Install” on the Command Line Tool 
worked.  Whew!

Here is an article I found on the certificate problem.

FIXING XCODE 5.01GM AND MAVERICKS CODE SIGNING ISSUES
http://athiercelin.wordpress.com/2013/10/16/fixing-xcode-5-01gm-and-mavericks-code-signing-issues/

Todd



signature.asc
Description: Message signed with OpenPGP using GPGMail
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Adding helper app to sandboxed Cocoa app

2013-12-18 Thread Todd Heberlein
I am having troubles with the Archive step for a Cocoa program containing a 
command line helper app. The archive keeps coming up with Generic Xcode 
Archive, and clicking Validate generates the message:

“combo6” does not contain a single–bundle application or contains multiple 
products. Please select another archive, or adjust your scheme to create a 
single–bundle application.

Am I missing some magic incantation for embedding a signed  sandboxed command 
line helper tool into Cocoa app?
 
I am using Xcode 5.0.2 on Mavericks 10.9.1.
 
The C++ Command Line Tool has:
• Code Signing Entitlements -- helper/helper.entitlements
• Code Signing Identity -- 3rd Party Mac Developer (via project column)
• Skip Install -- Yes (I've also tried No)
• Create Info.plist Section in Binary -- Yes
• Info.plist File -- helper/helper-info.plist
• Product Name -- helper
 
The Cocoa app has:
• Code Signing Entitlements -- combo6/combo6.entitlements
• Code Signing Identity -- 3rd Party Mac Developer (via project column)
• Other Code Signing Flags -- --deep (I've tried with and without this 
flag)
• Strip Debug Symbols During Copy -- No
• Info.plist File -- combo6/combo6-Info.plist
• Product Name -- combo6
 
• Build Phase, Copy Files copies helper to Executables
 
Even just adding helper to the Cocoa app's Target Dependencies but *not* 
copying helper to executable destination screws up the archive step. :-\
 
Any suggestions? Any pointers to documentation on adding command line helper 
app to a signed/sandboxed Cocoa app in Mavericks?

Thanks,

Todd



signature.asc
Description: Message signed with OpenPGP using GPGMail
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: Adding helper app to sandboxed Cocoa app

2013-12-18 Thread Seth Willits
On Dec 18, 2013, at 3:33 PM, Todd Heberlein todd_heberl...@mac.com wrote:

 I am having troubles with the Archive step for a Cocoa program containing a 
 command line helper app. The archive keeps coming up with Generic Xcode 
 Archive, and clicking Validate generates the message:
 
 “combo6” does not contain a single–bundle application or contains multiple 
 products. Please select another archive, or adjust your scheme to create a 
 single–bundle application.
...


Let's see if I can remember this correctly off the top of my head…

Turn on Skip Installation in the tool's build settings. I think that will do 
it. If you look in the archive you'll see that there's an extra copy because it 
stuck in the installation path (within the archive) which messes everything up.


--
Seth Willits




___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: Adding helper app to sandboxed Cocoa app

2013-12-18 Thread Todd Heberlein

On Dec 18, 2013, at 4:02 PM, Seth Willits sli...@araelium.com wrote:

 Turn on Skip Installation in the tool's build settings. I think that will do 
 it. If you look in the archive you'll see that there's an extra copy because 
 it stuck in the installation path (within the archive) which messes 
 everything up.

No, that didn’t help :-\. (I think that is only for libraries, not executables).

Todd



signature.asc
Description: Message signed with OpenPGP using GPGMail
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: Adding helper app to sandboxed Cocoa app

2013-12-18 Thread Seth Willits
On Dec 18, 2013, at 4:38 PM, Todd Heberlein todd_heberl...@mac.com wrote:

 Turn on Skip Installation in the tool's build settings. I think that will do 
 it. If you look in the archive you'll see that there's an extra copy because 
 it stuck in the installation path (within the archive) which messes 
 everything up.
 
 No, that didn’t help :-\. (I think that is only for libraries, not 
 executables).

I'm positive the same goes for the helpers. I can easily repeat this and 
setting Skip Install to YES on the tool's target works as expected.

Look inside the archive itself at the file hierarchy and what is in there. 
Inside of the Products directory, the only thing in the subtree should be your 
app (nested within the install path folders). 


--
Seth Willits



___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com