Can't build watchOS 2 apps for distribution

Originator:josh
Number:rdar://22188099 Date Originated:2015-08-07
Status:Duplicate/22007571 Resolved:
Product:Developer Tools Product Version:7.0 beta 5 (7A176x)
Classification:Serious Bug Reproducible:Always
 
Summary:
I'm trying to build a watchOS 2 app for ad-hoc distribution, but it's failing with the following error:

error: Embedded binary is not signed with the same certificate as the parent app. Verify the embedded binary target's code sign settings match the parent app's.  
  Embedded Binary Signing Certificate: Not Code Signed  
  Parent App Signing Certificate: iPhone Distribution: [My signing certificate]  

I can't distribute my iPhone app either, since it fails to build due to the watchOS 2 cert issue.

I've verified that the certificate is the same, so the error Xcode is producing is not correct.

Steps to Reproduce:
1. Create an iPhone app with a watchOS 2 app.
2. Choose Product > Archive
3. Build fails due to the following code signing error:

error: Embedded binary is not signed with the same certificate as the parent app. Verify the embedded binary target's code sign settings match the parent app's.  
  Embedded Binary Signing Certificate: Not Code Signed  
  Parent App Signing Certificate: iPhone Distribution: [My signing certificate]  


Expected Results:
Build should succeed and allow me to distribute my watchOS 2 app 

Actual Results:
Build fails with code signing error:

error: Embedded binary is not signed with the same certificate as the parent app. Verify the embedded binary target's code sign settings match the parent app's.  
  Embedded Binary Signing Certificate: Not Code Signed  
  Parent App Signing Certificate: iPhone Distribution: [My signing certificate]  


Version:
Xcode Version 7.0 beta 5 (7A176x)
OS X Yosemite 10.10.4

Notes:


Configuration:
MacBook Pro (Retina, 15-inch, Late 2013)

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!