Ошибка CodeSign с Jenkin при использовании Docker Slave, Fastlane - PullRequest
0 голосов
/ 05 апреля 2020

Я работаю над настройкой iOS CI / CD, которая использует Jenkin, начала использовать Docker. Jenkin создает iOS на хосте, который является подчиненным узлом Jenkin Server.

Я использую Fastlane Match для подписи кода и Gym для сборки.

В фазе Gym я получаю ошибку

    ** ARCHIVE FAILED **


    The following build commands failed:
        CodeSign /Users/manas/Library/Developer/Xcode/DerivedData/DemoJenkin-123-eyursrkfnowxifdsuzbyiqrfugpc/Build/Intermediates.noindex/ArchiveIntermediates/DemoJenkin-123/InstallationBuildProductsLocation/Applications/DemoJenkin-123.app

(1 failure)
ERROR [2020-04-05 16:49:05.73]: [31mExit status: 65[0m

+---------------+-------------------------+
|            [32m[33mBuild environment[0m            |
+---------------+-------------------------+
| xcode_path    | /Applications/Xcode.app |
| gym_version   | 2.144.0                 |
| export_method | app-store               |
| sdk           | iPhoneOS13.2.sdk        |
+---------------+-------------------------+

INFO [2020-04-05 16:49:05.75]: ▸ [35m                      (471c6439-a942-4938-88b7-378c6f44582c)[0m
INFO [2020-04-05 16:49:05.75]: ▸ [35m    /usr/bin/codesign --force --sign 41659467FB5872F49FB29BC8BA25CDA4CD9E540C --entitlements /Users/manas/Library/Developer/Xcode/DerivedData/DemoJenkin-123-eyursrkfnowxifdsuzbyiqrfugpc/Build/Intermediates.noindex/ArchiveIntermediates/DemoJenkin-123/IntermediateBuildFilesPath/DemoJenkin-123.build/Release-iphoneos/DemoJenkin-123.build/DemoJenkin-123.app.xcent /Users/manas/Library/Developer/Xcode/DerivedData/DemoJenkin-123-eyursrkfnowxifdsuzbyiqrfugpc/Build/Intermediates.noindex/ArchiveIntermediates/DemoJenkin-123/InstallationBuildProductsLocation/Applications/DemoJenkin-123.app[0m
INFO [2020-04-05 16:49:05.75]: ▸ [35m/Users/manas/Library/Developer/Xcode/DerivedData/DemoJenkin-123-eyursrkfnowxifdsuzbyiqrfugpc/Build/Intermediates.noindex/ArchiveIntermediates/DemoJenkin-123/InstallationBuildProductsLocation/Applications/DemoJenkin-123.app: errSecInternalComponent[0m
INFO [2020-04-05 16:49:05.75]: ▸ [35mCommand CodeSign failed with a nonzero exit code[0m
INFO [2020-04-05 16:49:05.75]: 

Мой быстрый файл выглядит так:

default_platform(:ios)

platform :ios do
  desc "Push a new beta build to TestFlight"
  lane :beta do
      delete_keychain(name: "fast.keychain") if File.exists? File.expand_path("~/Library/Keychains/fast.keychain-db")
      create_keychain(
            name: "fast.keychain",
            password: "123",
            timeout: false,
            lock_when_sleeps: false,
            unlock: true,
      )
        match()
      sh "security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k 123 fast.keychain"
      sh "security unlock-keychain -p 123 fast.keychain"
      gym()

    #upload_to_testflight
  end
end

MatchFile

git_url("git@bitbucket.org:******/jenkindemocert.git")

storage_mode("git")

type("appstore") # The default type, can be: appstore, adhoc, enterprise or development

app_identifier(["com.*****.******.******"])
username("************************")
readonly(true)
verbose(true)
keychain_name("fast.keychain")
keychain_password("123")

GymFile :

scheme("DemoJenkin-123")
 #sdk("iphoneos10.0")
 clean(true)
 include_bitcode(false)
 silent(false)
 skip_profile_detection(true)
 export_method("app-store")
 configuration("Release")
 include_symbols(true)
 export_options({
            signingStyle: "manual",
            provisioningProfiles: {
                "com.*****.****.******" => "match AppStore com.****.****.****"
            }
        })

output_directory("./")

Пожалуйста, помогите мне найти ошибку, которая вызывает ошибку. ТИА ..

...