Use signing certificate identity hash
Some checks failed
TestFlight / testflight (push) Failing after 24s
Some checks failed
TestFlight / testflight (push) Failing after 24s
This commit is contained in:
@@ -35,8 +35,8 @@ targets:
|
|||||||
configs:
|
configs:
|
||||||
Release:
|
Release:
|
||||||
CODE_SIGN_STYLE: Manual
|
CODE_SIGN_STYLE: Manual
|
||||||
CODE_SIGN_IDENTITY: Apple Distribution
|
CODE_SIGN_IDENTITY: 6B74B268C4761720FB2051D01D8BB3E47B55D9F5
|
||||||
"CODE_SIGN_IDENTITY[sdk=iphoneos*]": Apple Distribution
|
"CODE_SIGN_IDENTITY[sdk=iphoneos*]": 6B74B268C4761720FB2051D01D8BB3E47B55D9F5
|
||||||
PROVISIONING_PROFILE_SPECIFIER: Sybil AppStore CI
|
PROVISIONING_PROFILE_SPECIFIER: Sybil AppStore CI
|
||||||
|
|
||||||
schemes:
|
schemes:
|
||||||
|
|||||||
@@ -7,7 +7,8 @@ APP_IDENTIFIER = "net.buzzert.sybil2"
|
|||||||
SCHEME = "Sybil"
|
SCHEME = "Sybil"
|
||||||
TEAM_ID = "DQQH5H6GBD"
|
TEAM_ID = "DQQH5H6GBD"
|
||||||
PROFILE_NAME = "Sybil AppStore CI"
|
PROFILE_NAME = "Sybil AppStore CI"
|
||||||
SIGNING_IDENTITY = "Apple Distribution: James Magahern (DQQH5H6GBD)"
|
SIGNING_IDENTITY_NAME = "Apple Distribution: James Magahern (DQQH5H6GBD)"
|
||||||
|
SIGNING_IDENTITY_SHA1 = "6B74B268C4761720FB2051D01D8BB3E47B55D9F5"
|
||||||
MATCH_BRANCH = "master"
|
MATCH_BRANCH = "master"
|
||||||
IOS_ROOT = File.expand_path("..", __dir__)
|
IOS_ROOT = File.expand_path("..", __dir__)
|
||||||
PROJECT_FILE = File.join(IOS_ROOT, "Sybil.xcodeproj")
|
PROJECT_FILE = File.join(IOS_ROOT, "Sybil.xcodeproj")
|
||||||
@@ -72,7 +73,7 @@ platform :ios do
|
|||||||
identities = sh("security find-identity -v -p codesigning #{keychain_path.shellescape}", log: false)
|
identities = sh("security find-identity -v -p codesigning #{keychain_path.shellescape}", log: false)
|
||||||
UI.message(identities)
|
UI.message(identities)
|
||||||
|
|
||||||
unless identities.include?(SIGNING_IDENTITY)
|
unless identities.include?(SIGNING_IDENTITY_NAME)
|
||||||
UI.user_error!("The CI keychain does not contain the expected Apple Distribution signing identity")
|
UI.user_error!("The CI keychain does not contain the expected Apple Distribution signing identity")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -158,7 +159,7 @@ platform :ios do
|
|||||||
|
|
||||||
if ENV["CI"]
|
if ENV["CI"]
|
||||||
build_options[:xcargs] = [
|
build_options[:xcargs] = [
|
||||||
"CODE_SIGN_IDENTITY=#{SIGNING_IDENTITY.shellescape}",
|
"CODE_SIGN_IDENTITY=#{SIGNING_IDENTITY_SHA1.shellescape}",
|
||||||
"OTHER_CODE_SIGN_FLAGS=#{("--keychain #{ENV.fetch("MATCH_KEYCHAIN_NAME")}").shellescape}"
|
"OTHER_CODE_SIGN_FLAGS=#{("--keychain #{ENV.fetch("MATCH_KEYCHAIN_NAME")}").shellescape}"
|
||||||
].join(" ")
|
].join(" ")
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user