Xcode 7 Beta 3 does not find my cert for "iOS Distirbution"

I'm trying to update my build server from Xcode 6.3 to Xocde 7 beta 3, but getting the following error. On my server I use the Enterprise Develoepr Program, so I depend on using the auto-select "iOS Distribution" setting for my "In House" configuration instead of hard coding the cert in the project because I belong to a different Developer Program on my development machine.


+ xcodebuild -project MYAPP.xcodeproj -scheme MYAPP-InHouse archive

=== BUILD TARGET WatchKit App OF PROJECT MYAPP WITH CONFIGURATION In House Distribution ===

Check dependencies

Code Sign error: No matching provisioning profiles found: No valid 'development' profiles were found.

CodeSign error: code signing is required for product type 'WatchKit App' in SDK 'iOS 9.0'


Xcode 7 beta 2 works. beta 3 does not.

Try adding your certificate to the server's System.keychain and the provisioning profile into /Library/Developer/XcodeServer/ProvisioningProfiles. You will need to go into sudo mode to be able to copy the provisioning profile over and then change its ownership to _xcsbuildd:_xcs.

I'm getting the same error for my app extension. Unsure why it's trying to find a development profile when the code signer is distribution...

Phew! I have the same issue with GM version. Why does it say, 'development' when I'm trying to archive with a release and dristubution profile? Weird.

Ane solutions?

I have experienced the same issue with latest Xcode 7. It looks like Xcode 7 is enforcing to have a valid development certificate and provisioning profile even to let us do a build archive with distribution cert & profile. I got this issue because my developer certificate got expired. Once I requested and got a new developer certificate and refreshed my developement provisioning profiles, I was able to archive using distribution cert & profile.

To check if you also have the same issue, check the under your project settings General --> Identity --> Team. If you see a warning under this, it could be the problem. Fix it then you should be able to do archives.

Note: Here both my development and distribution certificates are from same Enterprise Developer Program team, I am not sure how it works if you are trying to archive with distribution certificate and provisioning profiles from a different team.

HTH.

My CI machine have got both developer and distribution certificate / provisioning profiles but this issue still ocurred.

But we have no problem with another AppStore application.

So the issue seems to be enterprise application only.

My XCode version is 7.0(7A220) and OSX Server version is 5.0.3(15S2257)

hi did you resolve this issue , i have this issue with xcode build Version 7.0 (7A220) release;;


thank you

I've hit exactly the same problem with XCode 7 (7A220) release. I'm brining an 'old' app from XCode 5/6 into alignment with iOS 9 changes and rebuilding it, and have always had no issues creating an Archive for Enterprise Distribution. As of XCode 7, like everyone above, I get this bizzare error:


Code Sign error: No matching provisioning profiles found: No valid 'development' profiles were found.


The only way I've found around it is to explicity pick the Provisioning Profile to use, i.e., instead of using "Automatic", pick the specific profile. It seems to change the Debug and Release code-signing identity to "iPhone Developer" and "iPhone Distribution" too ... which are options that I normally don't get in the drop-down list - just "iOS Developer" and "iOS Distribution" instead, if that makes sense.


If anyone can explain what this means or how to make it work with the Provisioning Profile set to "Automatic", I'm sure all of us would love to know.


(My guess is, it will all 'work fine' with new apps you write with Xcode 7, but something isn't quite backward compatible with XCode 6 for previously written XCode projects.)

Oh and Apple - in their infinite wisdom - have decided for (at least) when you create an .ipa for Enterprise Distribution that you no longer get to pick which folder to save the .ipa file in (like in XCode 6). Now, they create a timestamped folder on the desktop and stick it in there. I don't save my apps to the desktop, so it just now makes an extra step. Why on earth did they change that ?!?!?!?!?!

I've been working through this issue via a radar. Last night Apple instructed me to test against Xcode 7.1 beta 3, and I am happy to say the issue is resolved for me.

Xcode 7 Beta 3 does not find my cert for "iOS Distirbution"
 
 
Q