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

Upgrade iOS Build to Qt6 #3445

Merged
merged 1 commit into from
Dec 25, 2024
Merged

Conversation

ann0see
Copy link
Member

@ann0see ann0see commented Dec 23, 2024

Short description of changes
Upgrades the iOS build to Qt6. There are still some UI issues (e.g. the mixer has some overflows, see #3406)

CHANGELOG: iOS: Upgrade build to Qt 6

Context: Fixes an issue?

Related to: #3406

Does this change need documentation? What needs to be documented and how?

Yes. This will make the UX worse due to UI bugs introduced with Qt6.

Status of this Pull Request

Testing on an actual device. Will do that soon.

What is missing until this pull request can be merged?
Testing.

Checklist

  • I've verified that this Pull Request follows the general code principles
  • I tested my code and it does what I want
  • My code follows the style guide
  • I waited some time after this Pull Request was opened and all GitHub checks completed without errors.
  • I've filled all the content above

@ann0see ann0see force-pushed the iOS/upgradeiOSBuild branch from 3bb56b5 to efdf705 Compare December 23, 2024 21:19
@ann0see ann0see changed the title Upgrade iOS Build Upgrade iOS Build to Qt6 Dec 23, 2024
@ann0see ann0see marked this pull request as ready for review December 23, 2024 21:19
@ann0see ann0see added this to the Release 3.12.0 milestone Dec 23, 2024
@ann0see ann0see added the iOS iOS runtime issue label Dec 23, 2024
Comment on lines +48 to +56
# We may need to create the Qt installation directory and chown it to the runner user to fix permissions
sudo mkdir -p "${QT_DIR}"
sudo chown "$(whoami)" "${QT_DIR}"
# Create and enter virtual environment
python3 -m venv venv
# Must hide directory as it just gets created during execution of the previous command and cannot be found by shellcheck
# shellcheck source=/dev/null
source venv/bin/activate
pip install "aqtinstall==${AQTINSTALL_VERSION}"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed to be in line with macOS

@@ -59,13 +67,12 @@ setup() {
# Starting with Qt6, ios' qtbase install does no longer include a real qmake binary.
# Instead, it is a script which invokes the mac desktop qmake.
# As of aqtinstall 2.1.0 / 04/2022, desktop qtbase has to be installed manually:
python3 -m aqt install-qt --outputdir "${QT_DIR}" mac desktop "${QT_VERSION}" --archives qtbase
python3 -m aqt install-qt --outputdir "${QT_DIR}" mac desktop "${QT_VERSION}" --archives qtbase qttools
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Necessary to have lrelease in the correct spot. Otherwise the build fails.

This still has some UI issues. However, upgrading is needed as the CI no longer supports older macOS versions
@ann0see ann0see force-pushed the iOS/upgradeiOSBuild branch from efdf705 to 93e89de Compare December 23, 2024 21:23
@ann0see ann0see requested review from softins and pljones December 23, 2024 22:03
@ann0see
Copy link
Member Author

ann0see commented Dec 23, 2024

Tested, and it works as expected (with the known UI bugs)

@ann0see
Copy link
Member Author

ann0see commented Dec 23, 2024

Fixes: #3433
Fixes: #3293

@ann0see ann0see linked an issue Dec 23, 2024 that may be closed by this pull request
# Build failed with CodeQL enabled when last tested 03/2022 (#2490).
# There are no hints that iOS is supposed to be supported by CodeQL.
# Therefore, disable it:
run_codeql: false
# Unfortunately, more modern Xcode versions no longer seem to support
# Qt 5.15.2. Therefore upgrading to Qt6 is needed in the medium term (#2711)
Copy link
Collaborator

@pljones pljones Dec 24, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So does this "Fixes: #2711", too? Or was this comment a bit overoptimistic?

Copy link
Collaborator

@pljones pljones left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved on the grounds the iOS build completed.

@pljones pljones merged commit a1da151 into jamulussoftware:main Dec 25, 2024
15 checks passed
@ann0see ann0see deleted the iOS/upgradeiOSBuild branch December 25, 2024 08:53
@softins softins linked an issue Dec 26, 2024 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
iOS iOS runtime issue
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

iOS build using macos-12 runner now fails iOS build needs migrating to xcode "modern build system"
2 participants