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

can't build, xcversion deprecated #7182

Closed
alexander-potemkin opened this issue Dec 18, 2022 · 4 comments · Fixed by #7187
Closed

can't build, xcversion deprecated #7182

alexander-potemkin opened this issue Dec 18, 2022 · 4 comments · Fixed by #7187
Labels
T-Defect Something isn't working: bugs, crashes, hangs and other reported problems

Comments

@alexander-potemkin
Copy link

Steps to reproduce

git clone -b master https://github.com/vector-im/element-ios.git
cd element-ios
gem install --user-install cocoapods
gem install --user-install bundler
brew bundle
xcodegen
bundle install
bundle exec pod install
bundle exec fastlane app_store build_number:1

Outcome

What did you expect?

Build to happen.

What happened instead?

% bundle exec fastlane app_store build_number:1
[✔] 🚀
+----------------------------+---------+--------------------------------------------+
|                                   Used plugins                                    |
+----------------------------+---------+--------------------------------------------+
| Plugin                     | Version | Action                                     |
+----------------------------+---------+--------------------------------------------+
| fastlane-plugin-versioning | 0.5.1   | get_version_number_from_git_branch,        |
|                            |         | increment_build_number_in_xcodeproj,       |
|                            |         | get_version_number_from_plist,             |
|                            |         | get_build_number_from_plist,               |
|                            |         | ci_build_number,                           |
|                            |         | get_version_number_from_xcodeproj,         |
|                            |         | increment_version_number_in_xcodeproj,     |
|                            |         | increment_version_number_in_plist,         |
|                            |         | get_app_store_version_number,              |
|                            |         | get_info_plist_path,                       |
|                            |         | get_build_number_from_xcodeproj,           |
|                            |         | increment_build_number_in_plist            |
| fastlane-plugin-xcodegen   | 1.1.0   | xcodegen                                   |
| fastlane-plugin-diawi      | 2.1.0   | diawi                                      |
| fastlane-plugin-sentry     | 1.14.0  | sentry_upload_dsym, sentry_set_commits,    |
|                            |         | sentry_upload_sourcemap,                   |
|                            |         | sentry_finalize_release,                   |
|                            |         | sentry_upload_file, sentry_create_deploy,  |
|                            |         | sentry_upload_proguard,                    |
|                            |         | sentry_create_release,                     |
|                            |         | sentry_check_cli_installed,                |
|                            |         | sentry_upload_dif                          |
+----------------------------+---------+--------------------------------------------+

[11:05:04]: Sending anonymous analytics information
[11:05:04]: Learn more at https://docs.fastlane.tools/#metrics
[11:05:04]: No personal or sensitive data is sent.
[11:05:04]: You can disable this by adding `opt_out_usage` at the top of your Fastfile
[11:05:04]: ----------------------------------------
[11:05:04]: --- Step: Verifying fastlane version ---
[11:05:04]: ----------------------------------------
[11:05:04]: Your fastlane version 2.211.0 matches the minimum requirement of 2.156.0  ✅
[11:05:04]: ------------------------------
[11:05:04]: --- Step: default_platform ---
[11:05:04]: ------------------------------
[11:05:04]: Driving the lane 'ios app_store' 🚀
[11:05:04]: -----------------------
[11:05:04]: --- Step: xcversion ---
[11:05:04]: -----------------------
==========================================
This action (xcversion) is deprecated
The xcode-install gem, which this action depends on, has been sunset. Please migrate to "xcodes" (https://docs.fastlane.tools/actions/xcodes 🔗). You can find a migration guide here: "xcpretty/xcode-install/MIGRATION.md" (https://github.com/xcpretty/xcode-install/blob/master/MIGRATION.md 🔗)
==========================================

+------------------+---------------+
|           Lane Context           |
+------------------+---------------+
| DEFAULT_PLATFORM | ios           |
| PLATFORM_NAME    | ios           |
| LANE_NAME        | ios app_store |
+------------------+---------------+
[11:05:04]: Cannot find an installed Xcode satisfying '~> 14.0.1'

+------+----------------------------+-------------+
|                fastlane summary                 |
+------+----------------------------+-------------+
| Step | Action                     | Time (in s) |
+------+----------------------------+-------------+
| 1    | Verifying fastlane version | 0           |
| 2    | default_platform           | 0           |
| 💥   | xcversion                  | 0           |
+------+----------------------------+-------------+

[11:05:04]: fastlane finished with errors

[!] Cannot find an installed Xcode satisfying '~> 14.0.1'

Your phone model

N/A

Operating system version

MacOS Ventura 13.1

Application version

N/A

Homeserver

N/A

Will you send logs?

Yes

@alexander-potemkin alexander-potemkin added the T-Defect Something isn't working: bugs, crashes, hangs and other reported problems label Dec 18, 2022
@paleksandrs
Copy link
Contributor

paleksandrs commented Dec 19, 2022

The error seems to be that you're not running Xcode 14.0.1 which our scripts currently rely on. We'll separately try to bump that to 14.2 (PR #7187)

@alexander-potemkin
Copy link
Author

@paleksandrs , thanks!

Did I misread the message Xcode satisfying '~> 14.0.1' - does it mean XCode 14.0.1 and not Xcode 14.0.1 or higher?

@paleksandrs
Copy link
Contributor

~> 14.0.1 selects the latest installed version from the 14.0.x set

@alexander-potemkin
Copy link
Author

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-Defect Something isn't working: bugs, crashes, hangs and other reported problems
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants