fastlane: gym error on macOS Ventura 13.0, Xcode 14.0.1 & Xcode 14.1

New Issue Checklist

Issue Description

Command executed
lane :buildIpa do
    gym(
      scheme: "xxx",
      output_name: "#{outputName}", 
      workspace: "xxx.xcworkspace",
      export_method: "#{exportMethod}", # app-store、ad-hoc、development、enterprise
      include_bitcode: false,
      include_symbols: true,
      silent: true,
      clean: true,
      configuration: "#{configurationType}",
      xcargs: "#{xcargs}",
      toolchain: "#{toolchain}",
      skip_profile_detection: true,
      export_options: {
        compileBitcode: false,
        provisioningProfiles: {
         ... ...
        }
      },
      output_directory: "#{exportDir}", 
    )
  end
Complete output when running fastlane, including the stack trace and command used
** ARCHIVE FAILED **
[09:48:17]: Exit status: 65
[09:48:17]:
[09:48:17]: Maybe the error shown is caused by using the wrong version of Xcode
[09:48:17]: Found multiple versions of Xcode in '/Applications/'
[09:48:17]: Make sure you selected the right version for your project
[09:48:17]: This build process was executed using '/Applications/Xcode.app'
[09:48:17]: If you want to update your Xcode path, either
[09:48:17]:
[09:48:17]: - Specify the Xcode version in your Fastfile
[09:48:17]: ▸ xcversion(version: "8.1") # Selects Xcode 8.1.0
[09:48:17]:
[09:48:17]: - Specify an absolute path to your Xcode installation in your Fastfile
[09:48:17]: ▸ xcode_select "/Applications/Xcode8.app"
[09:48:17]:
[09:48:17]: - Manually update the path using
[09:48:17]: ▸ sudo xcode-select -s /Applications/Xcode.app
+---------------+-------------------------+
|            Build environment            |
+---------------+-------------------------+
| xcode_path    | /Applications/Xcode.app |
| gym_version   | 2.210.1                 |
| export_method | development             |
| sdk           | iPhoneOS16.0.sdk        |
+---------------+-------------------------+
[09:48:17]: ⬆️  Check out the few lines of raw `xcodebuild` output above for potential hints on how to solve this error
[09:48:17]: 📋  For the complete and more detailed error log, check the full log at:
[09:48:17]: 📋  /Users/xxx/Library/Logs/gym/xxxx-xxxxx.log
[09:48:17]:
[09:48:17]: Your `export_method` in gym is defined as `development`
[09:48:17]: which might cause problems when signing your application
[09:48:17]: Are you sure want to build and export for development?
[09:48:17]: Please make sure to define the correct export methods when calling
[09:48:17]: gym in your Fastfile or from the command line
[09:48:17]:
[09:48:17]:
[09:48:17]: Looks like fastlane ran into a build/archive error with your project
[09:48:17]: It's hard to tell what's causing the error, so we wrote some guides on how
[09:48:17]: to troubleshoot build and signing issues: https://docs.fastlane.tools/codesigning/getting-started/
[09:48:17]: Before submitting an issue on GitHub, please follow the guide above and make
[09:48:17]: sure your project is set up correctly.
[09:48:17]: fastlane uses `xcodebuild` commands to generate your binary, you can see the
[09:48:17]: the full commands printed out in yellow in the above log.
[09:48:17]: Make sure to inspect the output above, as usually you'll find more error information there

Environment

<details><summary>✅ fastlane environment ✅</summary>

### Stack

| Key                         | Value                                       |
| --------------------------- | ------------------------------------------- |
| OS                          | 13.0                                        |
| Ruby                        | 3.0.0                                       |
| Bundler?                    | false                                       |
| Git                         | git version 2.37.0 (Apple Git-136)          |
| Installation Source         | /usr/local/bin/fastlane                     |
| Host                        | macOS 13.0 (22A380)                         |
| Ruby Lib Dir                | ~/.rvm/rubies/ruby-3.0.0/lib                |
| OpenSSL Version             | OpenSSL 1.1.1q  5 Jul 2022                  |
| Is contained                | false                                       |
| Is homebrew                 | false                                       |
| Is installed via Fabric.app | false                                       |
| Xcode Path                  | /Applications/Xcode.app/Contents/Developer/ |
| Xcode Version               | 14.0.1                                      |
| Swift Version               | 5.7                                         |


### System Locale

| Variable | Value       |   |
| -------- | ----------- | - |
| LANG     | zh_CN.UTF-8 | ✅ |
| LC_ALL   |             |   |
| LANGUAGE |             |   |

### fastlane gems

| Gem      | Version | Update-Status |
| -------- | ------- | ------------- |
| fastlane | 2.210.1 | ✅ Up-To-Date  |


### Loaded fastlane plugins:

| Plugin                | Version | Update-Status |
| --------------------- | ------- | ------------- |
| fastlane-plugin-pgyer | 0.2.4   | ✅ Up-To-Date  |
| fastlane-plugin-badge | 1.5.0   | ✅ Up-To-Date  |


<details><summary><b>Loaded gems</b></summary>

| Gem                             | Version      |
| ------------------------------- | ------------ |
| did_you_mean                    | 1.5.0        |
| atomos                          | 0.1.3        |
| CFPropertyList                  | 3.0.5        |
| claide                          | 1.1.0        |
| colored2                        | 3.1.2        |
| nanaimo                         | 0.3.0        |
| xcodeproj                       | 1.22.0       |
| rouge                           | 2.0.7        |
| xcpretty                        | 0.3.0        |
| terminal-notifier               | 2.0.0        |
| unicode-display_width           | 1.8.0        |
| terminal-table                  | 1.8.0        |
| plist                           | 3.6.0        |
| public_suffix                   | 4.0.7        |
| addressable                     | 2.8.1        |
| multipart-post                  | 2.0.0        |
| word_wrap                       | 1.0.0        |
| optparse                        | 0.1.1        |
| tty-screen                      | 0.8.1        |
| tty-cursor                      | 0.7.1        |
| tty-spinner                     | 0.9.3        |
| artifactory                     | 3.0.15       |
| babosa                          | 1.0.4        |
| colored                         | 1.2          |
| highline                        | 2.0.3        |
| commander                       | 4.6.0        |
| excon                           | 0.93.1       |
| faraday-em_http                 | 1.0.0        |
| faraday-em_synchrony            | 1.0.0        |
| faraday-excon                   | 1.1.0        |
| faraday-httpclient              | 1.0.1        |
| faraday-multipart               | 1.0.4        |
| faraday-net_http                | 1.0.1        |
| faraday-net_http_persistent     | 1.2.0        |
| faraday-patron                  | 1.0.0        |
| faraday-rack                    | 1.0.0        |
| faraday-retry                   | 1.0.3        |
| ruby2_keywords                  | 0.0.5        |
| faraday                         | 1.10.2       |
| unf_ext                         | 0.0.8.2      |
| unf                             | 0.1.4        |
| domain_name                     | 0.5.20190701 |
| http-cookie                     | 1.0.5        |
| faraday-cookie_jar              | 0.0.7        |
| faraday_middleware              | 1.2.0        |
| fastimage                       | 2.2.6        |
| gh_inspector                    | 1.1.3        |
| mini_magick                     | 4.11.0       |
| naturally                       | 2.2.1        |
| rubyzip                         | 2.3.2        |
| security                        | 0.1.3        |
| xcpretty-travis-formatter       | 1.0.1        |
| dotenv                          | 2.8.1        |
| bundler                         | 2.2.3        |
| simctl                          | 1.6.8        |
| jwt                             | 2.5.0        |
| uber                            | 0.1.0        |
| declarative                     | 0.0.20       |
| trailblazer-option              | 0.1.2        |
| representable                   | 3.2.0        |
| retriable                       | 3.1.2        |
| mini_mime                       | 1.1.2        |
| memoist                         | 0.16.2       |
| multi_json                      | 1.15.0       |
| os                              | 1.1.4        |
| signet                          | 0.17.0       |
| googleauth                      | 1.3.0        |
| httpclient                      | 2.8.3        |
| webrick                         | 1.7.0        |
| google-apis-core                | 0.9.1        |
| google-apis-playcustomapp_v1    | 0.12.0       |
| google-apis-androidpublisher_v3 | 0.29.0       |
| google-cloud-env                | 1.6.0        |
| google-cloud-errors             | 1.3.0        |
| google-cloud-core               | 1.6.0        |
| google-apis-iamcredentials_v1   | 0.15.0       |
| google-apis-storage_v1          | 0.19.0       |
| digest-crc                      | 0.6.4        |
| google-cloud-storage            | 1.43.0       |
| emoji_regex                     | 3.2.3        |
| jmespath                        | 1.6.1        |
| aws-partitions                  | 1.651.0      |
| aws-eventstream                 | 1.2.0        |
| aws-sigv4                       | 1.5.2        |
| aws-sdk-core                    | 3.166.0      |
| aws-sdk-kms                     | 1.59.0       |
| aws-sdk-s3                      | 1.117.1      |
| tsort                           | 0.1.0        |
| set                             | 1.0.1        |
| uri                             | 0.10.1       |
| rexml                           | 3.2.5        |
| json                            | 2.6.2        |
| rake                            | 13.0.6       |
| forwardable                     | 1.3.2        |
| logger                          | 1.4.3        |
| pathname                        | 0.1.0        |
| shellwords                      | 0.1.0        |
| cgi                             | 0.2.0        |
| date                            | 3.1.0        |
| timeout                         | 0.1.1        |
| stringio                        | 3.0.0        |
| securerandom                    | 0.1.0        |
| openssl                         | 2.2.0        |
| io-nonblock                     | 0.1.0        |
| ipaddr                          | 1.2.2        |
| io-wait                         | 0.1.0        |
| zlib                            | 1.1.0        |
| resolv                          | 0.2.0        |
| digest                          | 3.0.0        |
| time                            | 0.1.0        |
| open-uri                        | 0.1.0        |
| mutex_m                         | 0.1.1        |
| net-protocol                    | 0.1.0        |
| net-smtp                        | 0.2.1        |
| ostruct                         | 0.3.1        |
| english                         | 0.7.1        |
| erb                             | 2.2.0        |
| strscan                         | 3.0.0        |
| abbrev                          | 0.1.0        |
| io-console                      | 0.5.6        |
| tempfile                        | 0.1.1        |
| delegate                        | 0.2.0        |
| fileutils                       | 1.5.0        |
| tmpdir                          | 0.1.1        |
| base64                          | 0.1.0        |
| singleton                       | 0.1.1        |
| open3                           | 0.1.1        |
| nkf                             | 0.1.0        |
| prettyprint                     | 0.1.0        |
| pp                              | 0.1.0        |
| find                            | 0.1.0        |
| yaml                            | 0.1.1        |
| psych                           | 3.3.0        |
| fastlane-plugin-pgyer           | 0.2.4        |
| badge                           | 0.13.0       |
| fastlane-plugin-badge           | 1.5.0        |
</details>


*generated on:* **2022-11-02**
</details>

I encounter this problem after I upgrade my mac os to Ventura 13.0. But It works with Xcode14.0.1 on macOS 12.6.1.
It works for about a few minutes on my project till it fails. I can’t find any useful error message that told me where is the error. It seems that gym fails before the ‘code sign’ action I suppose.

About this issue

  • Original URL
  • State: open
  • Created 2 years ago
  • Reactions: 7
  • Comments: 37

Most upvoted comments

This seemed to solve the problem for our app by adding this to the Podfile. Hope this helps someone with the pending apple requirement starting in April to build on xcode 14

post_install do |installer|
  installer.generated_projects.each do |project|
    project.targets.each do |target|
      target.build_configurations.each do |config|
        config.build_settings["DEVELOPMENT_TEAM"] = "XXXXX"
        # This is necessary for Xcode 14, because it signs resource bundles by default
        # when building for devices
        config.build_settings['CODE_SIGNING_ALLOWED'] = 'NO' 
      end
    end
  end
  
  react_native_post_install(installer)
  __apply_Xcode_12_5_M1_post_install_workaround(installer)
end

any update? same issue

Hi,

Not working too with Xcode 14.2, any update?

Thanks

Hi, Could someone (@joshdholtz?) from Fastlane team give us any updates? I have tried all suggested workarounds without success from 6 months on my CI… It is really a major problem to me for now on 🙏

My last error trace

[10:56:40]: All required keys, certificates and provisioning profiles are installed 🙌
[10:56:40]: Setting Provisioning Profile type to 'app-store'
tput: No value for $TERM and no -T specified
tput: No value for $TERM and no -T specified
[10:56:40]: -----------------
[10:56:40]: --- Step: gym ---
[10:56:40]: -----------------
[10:56:40]: Skipped Swift Package Manager dependencies resolution.
[10:56:40]: $ xcodebuild -showBuildSettings -workspace Liberty\ Rider.xcworkspace -scheme Release -configuration Release
[10:56:43]: Command timed out after 3 seconds on try 1 of 4, trying again with a 6 second timeout...
[10:56:49]: Command timed out after 6 seconds on try 2 of 4, trying again with a 12 second timeout...
--- xcodebuild: WARNING: Using the first of multiple matching destinations:
{ platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device }
{ platform:iOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-iphonesimulator:placeholder, name:Any iOS Simulator Device }
{ platform:iOS Simulator, id:63FF07F4-83BA-48CC-A7AB-6F6D7770DE1C, OS:15.5, name:iPhone 13 }
{ platform:iOS Simulator, id:2BF445C5-B223-4C5B-ABFB-B343FA686C00, OS:15.5, name:iPhone 13 Pro }
{ platform:iOS Simulator, id:8A4CFB1C-484A-459E-A08F-AA80A1BE72D8, OS:15.5, name:iPhone 13 Pro Max }
{ platform:iOS Simulator, id:9EF015E0-26E3-4CF0-8338-F4EB8E83C0BE, OS:15.5, name:iPhone 13 mini }
{ platform:iOS Simulator, id:56AE6AAE-7385-4453-AD41-112C369322A6, OS:16.2, name:iPhone 14 }
{ platform:iOS Simulator, id:21452B8C-7170-4BDF-ABDC-CC69123BC461, OS:16.2, name:iPhone 14 Plus }
{ platform:iOS Simulator, id:309CE2B6-45C8-4FE5-9B43-87A0A93C72E1, OS:16.2, name:iPhone 14 Pro }
{ platform:iOS Simulator, id:AFF1A48C-D8FA-4F9D-84F0-382F2FB9F1B0, OS:16.2, name:iPhone 14 Pro Max }
{ platform:iOS Simulator, id:27B987A2-631B-494C-B82B-9250DAB548B4, OS:15.5, name:iPhone SE (3rd generation) }
{ platform:iOS Simulator, id:3AEDBC8B-C49E-48B4-9854-8096FA7D5595, OS:16.2, name:iPhone SE (3rd generation) }
{ platform:iOS Simulator, id:CF49EB86-AA50-45D7-8D46-D9DC3AE53211, OS:15.5, name:iPod touch (7th generation) }
{ platform:iOS Simulator, id:89572413-4FB7-4048-9205-8F533B1DC2D0, OS:15.5, name:iPad (9th generation) }
{ platform:iOS Simulator, id:BE3B5223-D9AF-412F-9A73-95F6CA5B5198, OS:16.2, name:iPad (10th generation) }
{ platform:iOS Simulator, id:81A624CA-10EF-4E7D-AF81-558CB315087F, OS:15.5, name:iPad Air (5th generation) }
{ platform:iOS Simulator, id:1096D066-4531-4174-9AF4-99AF5B10F814, OS:16.2, name:iPad Air (5th generation) }
{ platform:iOS Simulator, id:F5348267-FAD8-40E8-8D12-DE13971B63D6, OS:15.5, name:iPad Pro (9.7-inch) }
{ platform:iOS Simulator, id:69A11FF3-D102-48B1-9A95-2CF77F8F69AE, OS:15.5, name:iPad Pro (11-inch) (3rd generation) }
{ platform:iOS Simulator, id:3D01F8CE-F519-4295-83E8-D690358D829B, OS:16.2, name:iPad Pro (11-inch) (4th generation) }
{ platform:iOS Simulator, id:BB354921-4E7B-4691-82FD-491C8EDE4A4D, OS:15.5, name:iPad Pro (12.9-inch) (5th generation) }
{ platform:iOS Simulator, id:AAECFEEF-83B9-4964-896F-9DFA5D15647D, OS:16.2, name:iPad Pro (12.9-inch) (6th generation) }
{ platform:iOS Simulator, id:909D94E5-18C7-44FC-A68B-8C1543F2FFD8, OS:15.5, name:iPad mini (6th generation) }
{ platform:iOS Simulator, id:362D1B0F-D1DF-4337-9CC5-96570437E88B, OS:16.2, name:iPad mini (6th generation) }
--- xcodebuild: WARNING: Using the first of multiple matching destinations:
{ platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device }
{ platform:iOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-iphonesimulator:placeholder, name:Any iOS Simulator Device }
{ platform:iOS Simulator, id:63FF07F4-83BA-48CC-A7AB-6F6D7770DE1C, OS:15.5, name:iPhone 13 }
{ platform:iOS Simulator, id:2BF445C5-B223-4C5B-ABFB-B343FA686C00, OS:15.5, name:iPhone 13 Pro }
{ platform:iOS Simulator, id:8A4CFB1C-484A-459E-A08F-AA80A1BE72D8, OS:15.5, name:iPhone 13 Pro Max }
{ platform:iOS Simulator, id:9EF015E0-26E3-4CF0-8338-F4EB8E83C0BE, OS:15.5, name:iPhone 13 mini }
{ platform:iOS Simulator, id:56AE6AAE-7385-4453-AD41-112C369322A6, OS:16.2, name:iPhone 14 }
{ platform:iOS Simulator, id:21452B8C-7170-4BDF-ABDC-CC69123BC461, OS:16.2, name:iPhone 14 Plus }
{ platform:iOS Simulator, id:309CE2B6-45C8-4FE5-9B43-87A0A93C72E1, OS:16.2, name:iPhone 14 Pro }
{ platform:iOS Simulator, id:AFF1A48C-D8FA-4F9D-84F0-382F2FB9F1B0, OS:16.2, name:iPhone 14 Pro Max }
{ platform:iOS Simulator, id:27B987A2-631B-494C-B82B-9250DAB548B4, OS:15.5, name:iPhone SE (3rd generation) }
{ platform:iOS Simulator, id:3AEDBC8B-C49E-48B4-9854-8096FA7D5595, OS:16.2, name:iPhone SE (3rd generation) }
{ platform:iOS Simulator, id:CF49EB86-AA50-45D7-8D46-D9DC3AE53211, OS:15.5, name:iPod touch (7th generation) }
{ platform:iOS Simulator, id:89572413-4FB7-4048-9205-8F533B1DC2D0, OS:15.5, name:iPad (9th generation) }
{ platform:iOS Simulator, id:BE3B5223-D9AF-412F-9A73-95F6CA5B5198, OS:16.2, name:iPad (10th generation) }
{ platform:iOS Simulator, id:81A624CA-10EF-4E7D-AF81-558CB315087F, OS:15.5, name:iPad Air (5th generation) }
{ platform:iOS Simulator, id:1096D066-4531-4174-9AF4-99AF5B10F814, OS:16.2, name:iPad Air (5th generation) }
{ platform:iOS Simulator, id:F5348267-FAD8-40E8-8D12-DE13971B63D6, OS:15.5, name:iPad Pro (9.7-inch) }
{ platform:iOS Simulator, id:69A11FF3-D102-48B1-9A95-2CF77F8F69AE, OS:15.5, name:iPad Pro (11-inch) (3rd generation) }
{ platform:iOS Simulator, id:3D01F8CE-F519-4295-83E8-D690358D829B, OS:16.2, name:iPad Pro (11-inch) (4th generation) }
{ platform:iOS Simulator, id:BB354921-4E7B-4691-82FD-491C8EDE4A4D, OS:15.5, name:iPad Pro (12.9-inch) (5th generation) }
{ platform:iOS Simulator, id:AAECFEEF-83B9-4964-896F-9DFA5D15647D, OS:16.2, name:iPad Pro (12.9-inch) (6th generation) }
{ platform:iOS Simulator, id:909D94E5-18C7-44FC-A68B-8C1543F2FFD8, OS:15.5, name:iPad mini (6th generation) }
{ platform:iOS Simulator, id:362D1B0F-D1DF-4337-9CC5-96570437E88B, OS:16.2, name:iPad mini (6th generation) }
--- xcodebuild: WARNING: Using the first of multiple matching destinations:
{ platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device }
{ platform:iOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-iphonesimulator:placeholder, name:Any iOS Simulator Device }
{ platform:iOS Simulator, id:63FF07F4-83BA-48CC-A7AB-6F6D7770DE1C, OS:15.5, name:iPhone 13 }
{ platform:iOS Simulator, id:2BF445C5-B223-4C5B-ABFB-B343FA686C00, OS:15.5, name:iPhone 13 Pro }
{ platform:iOS Simulator, id:8A4CFB1C-484A-459E-A08F-AA80A1BE72D8, OS:15.5, name:iPhone 13 Pro Max }
{ platform:iOS Simulator, id:9EF015E0-26E3-4CF0-8338-F4EB8E83C0BE, OS:15.5, name:iPhone 13 mini }
{ platform:iOS Simulator, id:56AE6AAE-7385-4453-AD41-112C369322A6, OS:16.2, name:iPhone 14 }
{ platform:iOS Simulator, id:21452B8C-7170-4BDF-ABDC-CC69123BC461, OS:16.2, name:iPhone 14 Plus }
{ platform:iOS Simulator, id:309CE2B6-45C8-4FE5-9B43-87A0A93C72E1, OS:16.2, name:iPhone 14 Pro }
{ platform:iOS Simulator, id:AFF1A48C-D8FA-4F9D-84F0-382F2FB9F1B0, OS:16.2, name:iPhone 14 Pro Max }
{ platform:iOS Simulator, id:27B987A2-631B-494C-B82B-9250DAB548B4, OS:15.5, name:iPhone SE (3rd generation) }
{ platform:iOS Simulator, id:3AEDBC8B-C49E-48B4-9854-8096FA7D5595, OS:16.2, name:iPhone SE (3rd generation) }
{ platform:iOS Simulator, id:CF49EB86-AA50-45D7-8D46-D9DC3AE53211, OS:15.5, name:iPod touch (7th generation) }
{ platform:iOS Simulator, id:89572413-4FB7-4048-9205-8F533B1DC2D0, OS:15.5, name:iPad (9th generation) }
{ platform:iOS Simulator, id:BE3B5223-D9AF-412F-9A73-95F6CA5B5198, OS:16.2, name:iPad (10th generation) }
{ platform:iOS Simulator, id:81A624CA-10EF-4E7D-AF81-558CB315087F, OS:15.5, name:iPad Air (5th generation) }
{ platform:iOS Simulator, id:1096D066-4531-4174-9AF4-99AF5B10F814, OS:16.2, name:iPad Air (5th generation) }
{ platform:iOS Simulator, id:F5348267-FAD8-40E8-8D12-DE13971B63D6, OS:15.5, name:iPad Pro (9.7-inch) }
{ platform:iOS Simulator, id:69A11FF3-D102-48B1-9A95-2CF77F8F69AE, OS:15.5, name:iPad Pro (11-inch) (3rd generation) }
{ platform:iOS Simulator, id:3D01F8CE-F519-4295-83E8-D690358D829B, OS:16.2, name:iPad Pro (11-inch) (4th generation) }
{ platform:iOS Simulator, id:BB354921-4E7B-4691-82FD-491C8EDE4A4D, OS:15.5, name:iPad Pro (12.9-inch) (5th generation) }
{ platform:iOS Simulator, id:AAECFEEF-83B9-4964-896F-9DFA5D15647D, OS:16.2, name:iPad Pro (12.9-inch) (6th generation) }
{ platform:iOS Simulator, id:909D94E5-18C7-44FC-A68B-8C1543F2FFD8, OS:15.5, name:iPad mini (6th generation) }
{ platform:iOS Simulator, id:362D1B0F-D1DF-4337-9CC5-96570437E88B, OS:16.2, name:iPad mini (6th generation) }
2023-05-18 10:56:54.033 xcodebuild[7802:21124] Requested but did not find extension point with identifier Xcode.InterfaceBuilderBuildSupport.PlatformDefinition
2023-05-18 10:56:54.034 xcodebuild[7816:21119] Requested but did not find extension point with identifier Xcode.InterfaceBuilderBuildSupport.PlatformDefinition
2023-05-18 10:56:54.034 xcodebuild[7826:21127] Requested but did not find extension point with identifier Xcode.InterfaceBuilderBuildSupport.PlatformDefinition
[10:56:54]: Detected provisioning profile mapping: {:"com.xxx"=>"match AppStore com.xxx", :"com.xxx"=>"match AppStore com.xxx.watchkitapp", :"com.xxx"=>"match AppStore com.xxx.watchkitextension"}

+---------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------+
|                                                                             Summary for gym 2.212.2                                                                              |
+---------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------+
| workspace                                                                                         | Liberty Rider.xcworkspace                                                    |
| scheme                                                                                            | Release                                                                      |
| configuration                                                                                     | Release                                                                      |
| export_method                                                                                     | app-store                                                                    |
| include_bitcode                                                                                   | false                                                                        |
| include_symbols                                                                                   | true                                                                         |
| output_directory                                                                                  | ./artifacts/                                                                 |
| output_name                                                                                       | LibertyRider                                                                 |
| skip_package_dependencies_resolution                                                              | true                                                                         |
| xcargs                                                                                            | -UseModernBuildSystem=YES CODE_SIGN_STYLE=Manual DEVELOPMENT_TEAM=XXXXXXXXXX |
| export_options.provisioningProfiles.com.xxx                               | match AppStore com.xxx                              |
| export_options.provisioningProfiles.com.xxx.watchkitapp                   | match AppStore com.xxx                  |
| export_options.provisioningProfiles.com.xxx.watchkitextension | match AppStore com.xxx |
| clean                                                                                             | false                                                                        |
| silent                                                                                            | false                                                                        |
| skip_package_ipa                                                                                  | false                                                                        |
| skip_package_pkg                                                                                  | false                                                                        |
| build_path                                                                                        | /Users/distiller/Library/Developer/Xcode/Archives/2023-05-18                 |
| result_bundle                                                                                     | false                                                                        |
| buildlog_path                                                                                     | ~/Library/Logs/gym                                                           |
| destination                                                                                       | generic/platform=iOS                                                         |
| xcodebuild_formatter                                                                              | xcpretty                                                                     |
| build_timing_summary                                                                              | false                                                                        |
| skip_profile_detection                                                                            | false                                                                        |
| xcodebuild_command                                                                                | xcodebuild                                                                   |
| disable_package_automatic_updates                                                                 | false                                                                        |
| use_system_scm                                                                                    | false                                                                        |
| xcode_path                                                                                        | /Applications/Xcode-14.2.app                                                 |
+---------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------+

[10:56:54]: $ set -o pipefail && xcodebuild -workspace Liberty\ Rider.xcworkspace -scheme Release -configuration Release -destination 'generic/platform=iOS' -archivePath /Users/distiller/Library/Developer/Xcode/Archives/2023-05-18/LibertyRider\ 2023-05-18\ 10.56.54.xcarchive -UseModernBuildSystem=YES CODE_SIGN_STYLE=Manual DEVELOPMENT_TEAM=XXXXXXXXXX archive | tee /Users/distiller/Library/Logs/gym/Liberty\ Rider-Release.log | xcpretty
[10:57:04]: ▸     no rule to process file '/Users/distiller/project/Pods/lottie-ios/Sources/Private/Model/DotLottie/ZipFoundation/README.md' of type 'net.daringfireball.markdown' for architecture 'arm64' (in target 'lottie-ios' from project 'Pods')
[10:57:04]: ▸ ** ARCHIVE FAILED **
    no rule to process file '/Users/distiller/project/Pods/lottie-ios/Sources/Private/Model/DotLottie/ZipFoundation/README.md' of type 'net.daringfireball.markdown' for architecture 'arm64' (in target 'lottie-ios' from project 'Pods')
** ARCHIVE FAILED **
[10:57:04]: Exit status: 65
[10:57:05]: 
[10:57:05]: Maybe the error shown is caused by using the wrong version of Xcode
[10:57:05]: Found multiple versions of Xcode in '/Applications/'
[10:57:05]: Make sure you selected the right version for your project
[10:57:05]: This build process was executed using '/Applications/Xcode-14.2.app'
[10:57:05]: If you want to update your Xcode path, either
[10:57:05]: 
[10:57:05]: - Specify the Xcode version in your Fastfile
[10:57:05]: ▸ xcversion(version: "8.1") # Selects Xcode 8.1.0
[10:57:05]: 
[10:57:05]: - Specify an absolute path to your Xcode installation in your Fastfile
[10:57:05]: ▸ xcode_select "/Applications/Xcode8.app"
[10:57:05]: 
[10:57:05]: - Manually update the path using
[10:57:05]: ▸ sudo xcode-select -s /Applications/Xcode.app
[10:57:05]: 

+---------------+------------------------------+
|              Build environment               |
+---------------+------------------------------+
| xcode_path    | /Applications/Xcode-14.2.app |
| gym_version   | 2.212.2                      |
| export_method | app-store                    |
| sdk           | iPhoneOS16.2.sdk             |
+---------------+------------------------------+

[10:57:05]: ▸ note: Run script build phase 'Clear git hash' will be run during every build because the option to run the script phase "Based on dependency analysis" is unchecked. (in target 'Liberty Rider' from project 'Liberty Rider')
[10:57:05]: ▸ note: Run script build phase 'Crashlytics' will be run during every build because the option to run the script phase "Based on dependency analysis" is unchecked. (in target 'Liberty Rider' from project 'Liberty Rider')
[10:57:05]: ▸ /Users/distiller/project/Liberty Rider.xcodeproj: error: No profile for team 'XXXXXXXXXX' matching 'match Development com.xxx.watchkitapp.watchkitextension' found: Xcode couldn't find any provisioning profiles matching 'XXXXXXXXXX/match Development com.xxx.watchkitextension'. Install the profile (by dragging and dropping it onto Xcode's dock item) or select a different one in the Signing & Capabilities tab of the target editor. (in target 'LRWatch Extension' from project 'Liberty Rider')
[10:57:05]: ▸ /Users/distiller/project/Liberty Rider.xcodeproj: error: No profile for team 'XXXXXXXXXX' matching 'match Development com.xxx.watchkitapp' found: Xcode couldn't find any provisioning profiles matching 'XXXXXXXXXX/match Development com.xxx'. Install the profile (by dragging and dropping it onto Xcode's dock item) or select a different one in the Signing & Capabilities tab of the target editor. (in target 'LRWatch' from project 'Liberty Rider')
[10:57:05]: ▸ warning: no rule to process file '/Users/distiller/project/Pods/lottie-ios/Sources/Private/Model/DotLottie/ZipFoundation/README.md' of type 'net.daringfireball.markdown' for architecture 'arm64' (in target 'lottie-ios' from project 'Pods')
[10:57:05]: 
[10:57:05]: ⬆️  Check out the few lines of raw `xcodebuild` output above for potential hints on how to solve this error
[10:57:05]: 📋  For the complete and more detailed error log, check the full log at:
[10:57:05]: 📋  /Users/distiller/Library/Logs/gym/Liberty Rider-Release.log
[10:57:05]: 
[10:57:05]: Looks like fastlane ran into a build/archive error with your project
[10:57:05]: It's hard to tell what's causing the error, so we wrote some guides on how
[10:57:05]: to troubleshoot build and signing issues: https://docs.fastlane.tools/codesigning/getting-started/
[10:57:05]: Before submitting an issue on GitHub, please follow the guide above and make
[10:57:05]: sure your project is set up correctly.
[10:57:05]: fastlane uses `xcodebuild` commands to generate your binary, you can see the
[10:57:05]: the full commands printed out in yellow in the above log.
[10:57:05]: Make sure to inspect the output above, as usually you'll find more error information there
[10:57:05]: 
tput: No value for $TERM and no -T specified
tput: No value for $TERM and no -T specified
[10:57:05]: -------------------
[10:57:05]: --- Step: slack ---
[10:57:05]: -------------------
[10:57:05]: Successfully sent Slack notification
+------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|                                                                                                                                                                                       Lane Context                                                                                                                                                                                       |
+------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| DEFAULT_PLATFORM                   | ios                                                                                                                                                                                                                                                                                                                                                 |
| PLATFORM_NAME                      | ios                                                                                                                                                                                                                                                                                                                                                 |
| LANE_NAME                          | ios deployTestFlight                                                                                                                                                                                                                                                                                                                                |
| KEYCHAIN_PATH                      | ~/Library/Keychains/fastlane_tmp_keychain                                                                                                                                                                                                                                                                                                           |
| ORIGINAL_DEFAULT_KEYCHAIN          | "/Users/distiller/Library/Keychains/login.keychain-db"                                                                                                                                                                                                                                                                                              |
| SIGH_PROFILE_TYPE                  | app-store                                                                                                                                                                                                                                                                                                                                           |
| MATCH_PROVISIONING_PROFILE_MAPPING | {"com.xxx"=>"match AppStore com.xxx", "com.xxx"=>"match AppStore com.xxx", "com.xxx"=>"match AppStore com.xxx"} |
+------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
[10:57:05]: Error building the application - see the log above

+------+------------------+-------------+
|           fastlane summary            |
+------+------------------+-------------+
| Step | Action           | Time (in s) |
+------+------------------+-------------+
| 1    | default_platform | 0           |
| 2    | setup_circle_ci  | 0           |
| 3    | match            | 2           |
| 💥   | gym              | 24          |
| 5    | slack            | 0           |
+------+------------------+-------------+

[10:57:05]: fastlane finished with errors

[!] Error building the application - see the log above

Exited with code exit status 1
CircleCI received exit code 1

Thank you very much

I was also facing the same Exit status: 65 problem with Bitrise’s “Xcode 14.1.x, on macOS Monterey 12.5” stack. However, I was able to work around it by specifying "CODE_SIGN_STYLE='Manual'" in the xcargs of the gym.

Unfortunately didn’t work for me 😦

I have the same issue, I cannot build ipa via gym xCode Version 14.3 (14E222b) MacOS Ventura 13.3 latest version of pods, ruby and fastlane

@fbaumgart I only have one Xcode on my mac. This is not the case. As I described above, it works before I upgrade my mac os to Ventura 13.0. And my colleagues also encounter the same case.

Not working on Xcode 14.3. Facing same issue.

i confirm, this solution worked for me.

You need to add some xcargs to the Gym command (either in your Gymfile, or in the gym() command in your lane). Here’s what I added: gym( [...], xcargs: "CODE_SIGN_STYLE=Manual DEVELOPMENT_TEAM=XXX" )

+1 monterey 12.6.1 keep fail too on Bitrise “Xcode 14.1.x, on macOS Monterey 12.5” stack

Finally, I’ve resolved this error by changing some SDKs from framework to xcframework as mentioned below this issue https://github.com/apple/swift-driver/issues/1271.

Those SDKs showed error info with SwiftDriver compilation error: com.apple.xcode.tools.swift.compiler is not absolute in the build log.

If the SDK you linked in your project doesn’t offer xcframework. You can use the framework file to generate the xcframework file with lipo and xcodebuild -create-xcframework tools.

After some info mention above, I try to add match appstore before match development, then CircleCI is success! It’s because we need to install all provision profile and certs in build machine and let the actual need profile at the below or it will have error? Not sure the conclusion is correct or not, but it seems total different from others samples and notes on the internet.

platform :ios do
  before_all do
    setup_circle_ci
  end

  desc "Run iOS debug build"
  lane :debug_build do
    match(
      type: "appstore",
      readonly: true
    )
    match(
      type: "development",
      readonly: true
    )
    Dir.chdir "../.." do
      sh("flutter", "packages", "get")
      sh("flutter", "clean")
      sh("flutter", "build", "ios", "--debug")
    end
  end

  desc "Build a new iOS debug App"
  lane :dev_deploy do
    debug_build
    commit = last_git_commit
    short_hash = commit[:abbreviated_commit_hash]
    current_time = Time.new.strftime("%Y%m%d")
    file_name = "#{current_time}_#{short_hash}"
    build_ios_app(
      export_method: 'development',
      output_name: "#{file_name}.ipa",
    )
  end
end

Thanks for your information. I found that it works when I build with ad-hoc or appstore environment. It only failed with the development environment. I don’t use match action in our project. I’ll continue to dig into what causes this error.

I ❤️ U @tjbenton

Hi, any update on this issue? Thanks.

@Daemonson I’m using Flutter right now so I’m not sure the solution of flutter environment. So I need to have additional job setting before flutter build ios --debug? Or this is just gym’s issue?

Sorry, I don’t use Flutter in my project. I’m not sure if it’s the gyms issue. I can only make sure that if you have this error message SwiftDriver compilation error: com.apple.xcode.tools.swift.compiler in the build log as shown below image, the gym may output an Archive Failed message and exit. image

This is the case that I encountered. And I can fix it with the solution I mentioned above.

It seems like some message mentioned on issue apple/swift#20784 is useful for you.