fastlane: [Fastlane.Swift] get_provisioning_profile error: You can't enable both :developer_id and :adhoc

New Issue Checklist

Issue Description

Using sample lane

    func fetcherLane() {
        getProvisioningProfile(
            appIdentifier: "XXX",
            username: "XXX",
            teamId: "XXX",
            teamName: "XXX",
            provisioningName: "XXX",
            ignoreProfilesWithDifferentName: true,
            certOwnerName: nil,
            skipFetchProfiles: true,
            skipCertificateVerification: true,
            readonly: true
        )
    }

You’ll get error

You can't enable both :developer_id and :adhoc

similar to May 2018 Issue 12506

Command executed
bundle exec fastlane fetcher
Complete output when running fastlane, including the stack trace and command used
 [REPLACE THIS WITH YOUR INFORMATION] 

Environment

 
🚫 fastlane environment 🚫

Stack

Key Value
OS 10.15.6
Ruby 2.6.6
Bundler? true
Git git version 2.24.3 (Apple Git-128)
Installation Source ~/.rvm/gems/ruby-2.6.6/bin/fastlane
Host Mac OS X 10.15.6 (19G2021)
Ruby Lib Dir ~/.rvm/rubies/ruby-2.6.6/lib
OpenSSL Version OpenSSL 1.1.1g 21 Apr 2020
Is contained false
Is homebrew false
Is installed via Fabric.app false
Xcode Path /Applications/Xcode-12.0.app/Contents/Developer/
Xcode Version 12.0.1

System Locale

Error
No Locale with UTF8 found 🚫

fastlane files:

`./fastlane/Fastfile.swift`
// This file contains the fastlane.tools configuration
// You can find the documentation at https://docs.fastlane.tools
//
// For a list of all available actions, check out
//
//     https://docs.fastlane.tools/actions
//

import Foundation

class Fastfile: LaneFile {
    func fetcherLane() {
        getProvisioningProfile(
            appIdentifier: "XXX",
            username: "XXX", //environmentVariable(get: "APPLE_USERNAME"),
            teamId: "XXX",
            teamName: "XXX",
            provisioningName: "XXX",
            ignoreProfilesWithDifferentName: true,
            certOwnerName: nil,
            skipFetchProfiles: true,
            skipCertificateVerification: true,
            readonly: true
        )
    }
    func fetchAndResignLane(withOptions options:[String: String]?) {
        desc("Fetches the ipa file from `repository`, increments build number and resigns with `signing_identity`. Usage: `fastlane fetchAndResign app:befaring`")
        switch options?["app"] {
        case "befaring":
            xcversion(version: environmentVariable(get: "FL_XCODE_VERSION"))
            //let repository = "ssh://git@git.tech-01.net/nmb/ios_resigning.git"
            //sh(command: "rm -rf ../build && git clone --depth 1 \(repository) ../build")
            getProvisioningProfile(
                appIdentifier: "no.dnb.befaringspres",
                username: "theodore.partoza.gonzalez@dnb.no", //environmentVariable(get: "APPLE_USERNAME"),
                teamId: "YVFWMVJ9Y9",
                teamName: "DnB ASA",
                provisioningName: "BefaringProd",
                ignoreProfilesWithDifferentName: true,
                certOwnerName: nil,
                skipFetchProfiles: true,
                skipCertificateVerification: true,
                readonly: true
            )
            resign(
                ipa: "../build/Befaring.ipa",
                signingIdentity: "iPhone Distribution: DnB ASA (119504671)",
                provisioningProfile: "BefaringProd",
                version: "1" //environmentVariable(get: "BUILD_NUMBER")
            )

        default:
            echo(message: "Please specify app")
        }
	}
}

No Appfile found

fastlane gems

Gem Version Update-Status
fastlane 2.161.0 ✅ Up-To-Date

Loaded fastlane plugins:

No plugins Loaded

Loaded gems
Gem Version
did_you_mean 1.3.0
executable-hooks 1.6.0
bundler-unload 1.0.2
rubygems-bundler 1.4.5
bundler 2.1.4
rake 13.0.1
CFPropertyList 3.0.2
public_suffix 4.0.6
addressable 2.7.0
atomos 0.1.3
aws-eventstream 1.1.0
aws-partitions 1.376.0
aws-sigv4 1.2.2
jmespath 1.4.0
aws-sdk-core 3.108.0
aws-sdk-kms 1.38.0
aws-sdk-s3 1.81.1
babosa 1.0.3
claide 1.0.3
colored 1.2
colored2 3.1.2
highline 1.7.10
commander-fastlane 4.4.6
declarative 0.0.20
declarative-option 0.1.0
digest-crc 0.6.1
unf_ext 0.0.7.7
unf 0.1.4
domain_name 0.5.20190701
dotenv 2.7.6
emoji_regex 3.0.0
excon 0.76.0
multipart-post 2.0.0
faraday 1.0.1
http-cookie 1.0.3
faraday-cookie_jar 0.0.7
faraday_middleware 1.0.0
fastimage 2.2.0
gh_inspector 1.1.3
jwt 2.2.2
memoist 0.16.2
multi_json 1.15.0
os 1.1.1
signet 0.14.0
googleauth 0.13.1
httpclient 2.8.3
mini_mime 1.0.2
uber 0.1.0
representable 3.0.4
retriable 3.1.2
google-api-client 0.38.0
google-cloud-env 1.3.3
google-cloud-errors 1.0.1
google-cloud-core 1.5.0
google-cloud-storage 1.29.0
json 2.3.1
mini_magick 4.10.1
plist 3.5.0
rubyzip 2.3.0
security 0.1.3
naturally 2.2.0
simctl 1.6.8
slack-notifier 2.3.2
terminal-notifier 2.0.0
unicode-display_width 1.7.0
terminal-table 1.8.0
tty-screen 0.8.1
tty-cursor 0.7.1
tty-spinner 0.9.3
word_wrap 1.0.0
nanaimo 0.3.0
xcodeproj 1.18.0
rouge 2.0.7
xcpretty 0.3.0
xcpretty-travis-formatter 1.0.0
xcode-install 2.6.6

generated on: 2020-09-29

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 18 (9 by maintainers)

Most upvoted comments

Maybe I can treat all booleans as OptionalConfigItems without changing them on the Ruby side 🤔 . That’d fix this issue from the root.

I guess this gets automatically updated, as all Swift interface, with each update of the core.

This probably could be closed with the latest PR 😇