fastlane icon indicating copy to clipboard operation
fastlane copied to clipboard

Fastlane accidentally takes longer time for xcodebuild

Open canhth opened this issue 2 years ago • 1 comments

New Issue Checklist

Issue Description

We having some weird behavior in our CI machines. In the past, the build and test job only take 10-15 mins, but now takes more an 1 hour to complete.

1. Getting lot of "Command timed out ...." warnings

Command timed out after 192 seconds on try 6 of 11, trying again with a 384 second timeout
Screen Shot 2022-12-24 at 11 48 26
xcodebuild[87139:73831907] Requested but did not find extension point with identifier Xcode.InterfaceBuilderBuildSupport.PlatformDefinition
Screen Shot 2022-12-24 at 11 48 35

2. set -o pipefail && xcodebuild -workspace ... take long time to continue

  • The command set -o pipefail && xcodebuild -workspace ... starts at [20:54:44], but the next log command is at [21:15:40]. (sometime it take almost an hour to continue)
Screen Shot 2022-12-24 at 11 48 02

I tried several suggestions from the community, but it didn't help to solve the issue.

Gym

    gym(
      workspace: ENV['APP_PROJECT_WORKSPACE'],
      buildlog_path: "#{ENV['APP_PROJECT_PATH']}/buildlog",
      scheme: ENV['APP_PROJECT_SCHEME'],
      skip_package_dependencies_resolution: true,
      configuration: 'AppStore Release',
      skip_archive: true,
      skip_package_ipa: true,
      export_options: {
        manageAppVersionAndBuildNumber: false
      },
      result_bundle: true,
      result_bundle_path: ENV['XCRESULT_PATH']
    )

Environment

Take notice that this output may contain sensitive information, or simply information that you don't want to make public. 

canhth avatar Dec 24 '22 10:12 canhth

It seems like you have not included the output of fastlane env To make it easier for us help you resolve this issue, please update the issue to include the output of fastlane env :+1:

fastlane-bot avatar Dec 24 '22 10:12 fastlane-bot