Xcode 7 Beta 3 not auto-selecting Code Sign certificate for "iOS Distribution"

Update: Just before posting this, I thought that I would try Xcode 7 Beta 2, and it worked!


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 an enterprise account, so I depend on using the "iOS Distribution" setting for my "In House" configuration instead of hard coding the cert in the project.


+ 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'


when I modify the build settings on the server and select "My Company name - iOS Distribution Certificate" instead of "iOS Distribution" the build will work, but I need the auto-select to work. It's not clear why it says 'development' in the error, this scheme is configured to use my In House configuration where I had "iOS Distribution" selected. Also everything works fine with Xcode 6.3

Having exactly the same issue since Xcode 7 Beta 4 (haven't tried Beta 3). And it actually still persists on GM.

For now I'm solving this issue using environment variables for each target. Build-script is looking for required provisioning profile and sets it in env-variable. That works ok, but it's kind of weird.

I would like to have everything set to automatic to be able to switch certificates and profiles w/o changing anything in project.

Did anyone of you file a bug report I could dupe?

Having the same issue with the final Xcode 7 -- I'm using xcodebuild with a distribution configuration, but getting the error "Code Sign error: No matching provisioning profiles found: No valid 'development' profiles were found."

I'm seeing the same issue with the official, final build of Xcode 7. I can't archive locally or on my build server unless I manually select the right provisioning profile. I'm only seeing the issue for my enterprise app, so maybe that means something.


I filed radar 22746179 for this.

how about then

I have the same problem. What OS X version do you have? In El Capitan is everything ok, but in Yosemite + Xcode 7 I have this issue too.

I was getting similar errors on some of my projects, so I created a blank new project to see what the default settings are:

Code Signing Identity: iOS Developer (for both Debug and Release)

Provisioning Profile: Automatic


When I set my older projects to match this, I don't get the errors. The Enterprise apps still install fine (OTA from internal web server) on non-development devices.


However, I haven't tried it with a WatchKit app, and I'm not using a build server (or a different account, obviously)

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 not auto-selecting Code Sign certificate for "iOS Distribution"
 
 
Q