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

Fix building for Xcode 15 and 16 #7063

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

buggmagnet
Copy link
Contributor

@buggmagnet buggmagnet commented Oct 24, 2024

This PR makes building both with Xcode 15 and Xcode 16 possible.


This change is Reviewable

@buggmagnet buggmagnet added the iOS Issues related to iOS label Oct 24, 2024
@buggmagnet buggmagnet self-assigned this Oct 24, 2024
Copy link

linear bot commented Oct 24, 2024

Copy link
Contributor

@rablador rablador left a comment

Choose a reason for hiding this comment

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

Reviewed 18 of 18 files at r1, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved

rablador
rablador previously approved these changes Oct 24, 2024
Copy link
Contributor

@rablador rablador left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewable status: :shipit: complete! all files reviewed, all discussions resolved

@pinkisemils
Copy link
Collaborator

Can I have a patch here without the workaround for the optimizer? I'll try it out on Xcode 16.2 beta.

Copy link
Contributor Author

@buggmagnet buggmagnet left a comment

Choose a reason for hiding this comment

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

@pinkisemils All the changes in the PR are to work around the optimiser crashing when we build the MockRelease scheme
As long as you stick to Debug the code will build and run normally.

Reviewable status: :shipit: complete! all files reviewed, all discussions resolved

Copy link
Collaborator

@mojganii mojganii left a comment

Choose a reason for hiding this comment

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

Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @buggmagnet)


ios/MullvadVPN/TunnelManager/UIApplication+Extensions.swift line 2 at r1 (raw file):

//
//  UIApplication+Extensions.swift

since the it's not extension anymore, I suppose we have to rename the file name and it's location.

@pinkisemils
Copy link
Collaborator

Breaks all the same on the 16.2 beta 😿 Probably works with these changes too.

Copy link
Contributor Author

@buggmagnet buggmagnet left a comment

Choose a reason for hiding this comment

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

Reviewable status: 16 of 19 files reviewed, 1 unresolved discussion (waiting on @mojganii and @rablador)


ios/MullvadVPN/TunnelManager/UIApplication+Extensions.swift line 2 at r1 (raw file):

Previously, mojganii wrote…

since the it's not extension anymore, I suppose we have to rename the file name and it's location.

Done.

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

Successfully merging this pull request may close these issues.

4 participants