fastlane: Gym in Xcode 9 fails on certificate type.

Issue Description

Installed everything yesterday so all latest & new.

I’m trying to maintain auto signing in the project with specific signing in the fast file. So, I’ve got a fast file with setup and then gym is using a number of xcargs. The certificate is installed and sigh is copying the appropriate profile.

    sigh(
        provisioning_name: "AZ_xxx_QA",
        ignore_profiles_with_different_name: true,
    )
    disable_automatic_code_signing
    update_project_provisioning(
        profile: "./InHouse_xxx.qa.mobileprovision",
    )
    gym(
        configuration: "QA",
        export_method: "enterprise",
        xcargs: "PRODUCT_BUNDLE_IDENTIFIER='xxx.qa' APP_BUNDLE_ID='xxx.qa' PROVISIONING_PROFILE='#{lane_context[SharedValues::SIGH_UDID]}' CODE_SIGN_IDENTITY='iOS Distribution: XXX'",
    )
Complete output

This breaks Xcode somehow, specifically:

Provisioning inputs for “AZ” didn’t provide a certificate type. Repair will be incomplete because it lacks certificate type information.

xcodebuild and result:

build	30-Jun-2017 17:12:48	[17:12:48]: $ set -o pipefail && xcodebuild -scheme AZ -project ./AZ.xcodeproj -configuration QA -destination 'generic/platform=iOS' -archivePath ....xcarchive PRODUCT_BUNDLE_IDENTIFIER='xxx.qa' APP_BUNDLE_ID='xxx.qa' PROVISIONING_PROFILE='b8f74a3a-b9dc-4d6e-b00d-1a21b88a2157' CODE_SIGN_IDENTITY='iOS Distribution: XXX' archive | tee /Users/admin/Library/Logs/gym/AZ-AZ.log | xcpretty
build	30-Jun-2017 17:12:49	[17:12:49]: â–¸ Building AZ/AZ [QA]
build	30-Jun-2017 17:12:49	[17:12:49]: â–¸ Check Dependencies
build	30-Jun-2017 17:12:49	[17:12:49]: â–¸ 2017-06-30 17:12:49.561 xcodebuild[55497:587576]  DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/IDEFrameworks/IDEFrameworks-13158.29/IDEFoundation/Provisioning/Mechanic/IDEProvisioningRepairInfo.m:66
build	30-Jun-2017 17:12:49	[17:12:49]: â–¸ Details:  Provisioning inputs for "AZ" didn't provide a certificate type. Repair will be incomplete because it lacks certificate type information.
build	30-Jun-2017 17:12:49	[17:12:49]: â–¸ Object:   <IDEProvisioningRepairInfo>
build	30-Jun-2017 17:12:49	[17:12:49]: â–¸ Method:   +repairInfoWithProvisioningInputs:instigatingErrors:
build	30-Jun-2017 17:12:49	[17:12:49]: â–¸ Thread:   <NSThread: 0x7fd150b38a60>{number = 21, name = (null)}
build	30-Jun-2017 17:12:49	[17:12:49]: â–¸ Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide.
build	30-Jun-2017 17:12:49	[17:12:49]: ▸ ❌  Code signing is required for product type 'Application' in SDK 'iOS 11.0'

Can’t find any similar issues 😦

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 19 (4 by maintainers)

Most upvoted comments

For what is worth, I no longer see the crash with Xcode 9 beta 5.

Yes, I’ve read the troubleshooting guide (multiple times) 😃 I’m not using match because i don’t want to wipe the current contents of my account, but equally i think the certificate and profile on the build machine looks fine.