Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gym error on macOS Ventura 13.0, Xcode 14.0.1 & Xcode 14.1 #20810

Open
4 tasks done
Daemonson opened this issue Nov 2, 2022 · 38 comments
Open
4 tasks done

gym error on macOS Ventura 13.0, Xcode 14.0.1 & Xcode 14.1 #20810

Daemonson opened this issue Nov 2, 2022 · 38 comments

Comments

@Daemonson
Copy link

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.

@fbaumgart
Copy link

fbaumgart commented Nov 2, 2022

@Daemonson as written in the logs - seems that you have multiple versions of Xcode on your machine and for fastlane it's not clear which one should be used. Can this be the case?

@Daemonson
Copy link
Author

@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.

@KevinJ1008
Copy link

KevinJ1008 commented Nov 2, 2022

Having same issue here after upgrade fastlane to 2.210.1, but I could finally work by export path of my ruby and run bundle update, still don't know why. However, it still could not build success in my CircleCI with xcode: 13.4.1 when build a development ipa by showing:
error: No profile for team '${team_id}' matching 'match AppStore ${app_identifier}' found: Xcode couldn't find any provisioning profiles matching '${team_id}/match AppStore ${app_identifier}'. 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 'Runner' from project 'Runner').
If I modify CircleCI xcode to 14.X, it will show same error message like @Daemonson described.

And my fastlane is:

platform :ios do
  before_all do
    setup_circle_ci
  end

  desc "Run iOS debug build"
  lane :debug_build do
    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

I'm pretty sure match download development cert and profile for me also install to machine. Having this issue for days and still don't know why. Any idea?

@Daemonson
Copy link
Author

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

@Daemonson
Copy link
Author

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

I suppose something went wrong when it executed the code sign action. Maybe permission error on macOS 13.0 or something else.

@KevinJ1008
Copy link

@Daemonson Tks, I will dig in this problem by the issue you mention, but it still have problem when use xcode: 14.x on CircleCI, I could only local build development recently.

@KevinJ1008
Copy link

KevinJ1008 commented Nov 2, 2022

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

@Daemonson
Copy link
Author

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.

@Daemonson
Copy link
Author

Daemonson commented Nov 3, 2022

Maybe something changed about the toolchain by the system on Ventura 13.0. I build success for all export_method with another toolchain, not the system toolchain com.apple.dt.toolchain.
I checked the log file output by Fastlane, there's no error message shown.
And I also checked the archive files in the /Developer/Xcode/Archives. Actually, each build generates the xcarchive file successfully even the Fastlane output archive failed message in the terminal with status: 65.

@Daemonson
Copy link
Author

This issue might be the reason why it fails. apple/swift-driver#1271

@Daemonson
Copy link
Author

Finally, I've resolved this error by changing some SDKs from framework to xcframework as mentioned below this issue apple/swift-driver#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.

@KevinJ1008
Copy link

@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?

@Daemonson
Copy link
Author

@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.

@Daemonson Daemonson changed the title gym error on macOS Ventura 13.0, Xcode 14.0.1 gym error on macOS Ventura 13.0, Xcode 14.0.1 & Xcode 14.1 Nov 4, 2022
@treastrain
Copy link

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.

@imXcoder
Copy link

any update? same issue

@patissier-boulanger
Copy link

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

@tomcheung1208
Copy link

anyone can help? my company is waiting my build at least 1 week. Thank you so much.

@adamhari
Copy link

adamhari commented Dec 1, 2022

I was getting the archive failed exit code 65 with no helpful logging after updating to xcode 14 on CI.

It was a code signing issue. I needed to change my Fastfile's gym command to include the codesigning_identity option along withxcargs which included CODE_SIGN_STYLE as Manual along with specifying the DEVELOPMENT_TEAM and PROVISIONING_PROFILE_SPECIFIER.

@SwiftyMike
Copy link

Hello, could you please expand what should I do?

Currently I have script in ruby
fastlane(Fastlane::Actions::GymAction, { buildlog_path: "#{ENV["BITRISE_DEPLOY_DIR"]}", scheme: app.schemeNameResolver.schemeName(variant: variant, production: true), output_name: app.name, destination: 'generic/platform=iOS', export_options: { compileBitcode: false }, skip_profile_detection: true })

It is working allright for Xcode 13.4 on bitrise. But same build is crashing (Exit status: 65) when I try increase stack to any version of Xcode 14.
Same fastlane lane working OK locally.

@richardpiazza
Copy link

@SwiftyMike are you using any swift packages that include bundled resources? There is an issue noted issue with the Xcode command line utilities attempting to sign resource bundles when it shouldn't: https://forums.swift.org/t/xcode-14-beta-code-signing-issues-when-spm-targets-include-resources/59685

Several other related issues:
#20701, #20788, #20789, #20800, #20804, #20825

@morgan-doctolib
Copy link

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" )

@ibarisic05
Copy link

Unfortunately didn't work for me :(

@Narayane
Copy link

Hi,

Not working too with Xcode 14.2, any update?

Thanks

@Narayane
Copy link

Narayane commented Mar 21, 2023

Hi,
any update on this issue?
Thanks.

@tjbenton
Copy link

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

@ghostgarrix
Copy link

I <3 U @tjbenton

@rehannali
Copy link

Not working on Xcode 14.3. Facing same issue.

@tjbenton
Copy link

tjbenton commented Apr 5, 2023

on another project I also had to add these to the Podfile. Or you can go into xcode and change it in the build settings. This allowed me to get it to run on the simulator. Seems to be related to the the new Apple M2 Chip because it wasn't needed for other team members with older machines

config.build_settings['ONLY_ACTIVE_ARCH'] = 'YES'
config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"

Screenshot 2023-04-05 at 12 54 30 PM

@jamesvanhallen
Copy link

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

@dileepa88
Copy link

This one might help

https://stackoverflow.com/a/75979879/1314468

@sshettyyara
Copy link

I cannot build ipa via gym but able to build via XCODE
xCode Version 14.2
MacOS Ventura 13.3
latest version of pods, ruby and fastlane

@Narayane
Copy link

Narayane commented May 22, 2023

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

@Danushka50
Copy link

Screenshot 2023-07-24 at 9 32 57 PM Same here! Any update....

@IJustDev
Copy link

I have read in several threads about the same issue, corresponding with rsync (since the copy can't find the files I guess) because I am running into the same issue.

Therefore I can confirm that Xcode 14.3.1 does not work with fastlane

@IJustDev
Copy link

This one might help

https://stackoverflow.com/a/75979879/1314468

This worked out fine for me. Adding the -f to the framework pods did the trick! Thank you very much for sharing.

@Narayane
Copy link

Narayane commented Aug 22, 2023

Hi @IJustDev,

Thanks for the trick but sadly it is not an option for me because my relative Pods project is not versioned :/

My CI recreated it at each job, basing on Podfile and Podfile.lock files (versioned) and using pod caches...

@Narayane
Copy link

Narayane commented Dec 8, 2023

Hi,

Always the same error with Xcode 15.1.0 beta 3 on CircleCI...

@SabreRunner
Copy link

I have the same issue trying Unity Build Automation for an ios deploy. Is this in general just what happens when fastlane updates and xcode isn't keeping up?
I can choose between xcode 15.0, 15.1, or 15.2. Do I need a specific fastlane version for any of them?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests