Skip to content

fix(macOS): Remove TARGETED_DEVICE_FAMILY#9510

Merged
mgallien merged 1 commit intomasterfrom
i2h3/fix/targeted-device-family
Feb 24, 2026
Merged

fix(macOS): Remove TARGETED_DEVICE_FAMILY#9510
mgallien merged 1 commit intomasterfrom
i2h3/fix/targeted-device-family

Conversation

@i2h3
Copy link
Collaborator

@i2h3 i2h3 commented Feb 24, 2026

No description provided.

@i2h3 i2h3 added this to the 33.0.0 milestone Feb 24, 2026
@i2h3 i2h3 self-assigned this Feb 24, 2026
Copilot AI review requested due to automatic review settings February 24, 2026 16:04
@i2h3 i2h3 added the os: 🍎 macOS Apple macOS, formerly also known as OS X label Feb 24, 2026
@github-project-automation github-project-automation bot moved this to 🧭 Planning evaluation (don't pick) in 💻 Desktop Clients team Feb 24, 2026
@i2h3
Copy link
Collaborator Author

i2h3 commented Feb 24, 2026

/backport to stable-33.0

@i2h3 i2h3 moved this from 🧭 Planning evaluation (don't pick) to 🏗️ In progress in 💻 Desktop Clients team Feb 24, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request fixes macOS build issues related to RPATH handling and Xcode project configuration. While the title focuses on removing TARGETED_DEVICE_FAMILY, the primary changes address RPATH deletion failures that occur when using macdeployqt.

Changes:

  • Added BUILD_WITH_INSTALL_RPATH property to macOS targets to prevent CMake from attempting to delete RPATHs that macdeployqt has already modified
  • Removed inappropriate TARGETED_DEVICE_FAMILY setting from Xcode project (iOS/tvOS-specific setting not applicable to macOS targets)

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
src/gui/CMakeLists.txt Added BUILD_WITH_INSTALL_RPATH property to nextcloud target with detailed explanation of why it's needed for macdeployqt compatibility
src/libsync/vfs/suffix/CMakeLists.txt Added BUILD_WITH_INSTALL_RPATH property to nextcloudsync_vfs_suffix plugin target to prevent install-time RPATH errors
shell_integration/MacOSX/NextcloudIntegration/NextcloudIntegration.xcodeproj/project.pbxproj Removed TARGETED_DEVICE_FAMILY setting from Debug and Release configurations (inappropriate for macOS-only targets)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 706 to 710
# macdeployqt (POST_BUILD) replaces the build-tree RPATH with @loader_path/../Frameworks.
# Setting BUILD_WITH_INSTALL_RPATH prevents CMake from separately tracking the build-tree
# RPATH and then trying to delete it at cmake --install time (which would fail because
# macdeployqt has already removed it).
set_target_properties(nextcloud PROPERTIES BUILD_WITH_INSTALL_RPATH TRUE)
Copy link

Copilot AI Feb 24, 2026

Choose a reason for hiding this comment

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

The PR title mentions "Remove TARGETED_DEVICE_FAMILY" but the primary changes in this pull request are adding BUILD_WITH_INSTALL_RPATH to fix RPATH handling with macdeployqt. The TARGETED_DEVICE_FAMILY removal is only a small part of the changes in the Xcode project file. Consider updating the PR title to better reflect the main purpose of these changes, such as "fix(macOS): Fix RPATH handling with macdeployqt" or including both changes in the title.

Copilot uses AI. Check for mistakes.
This unnecessary and unexpected build setting caused a compiler warning.

Signed-off-by: Iva Horn <iva.horn@nextcloud.com>
@mgallien mgallien force-pushed the i2h3/fix/targeted-device-family branch from 7ae1cbd to f854641 Compare February 24, 2026 21:09
@mgallien mgallien enabled auto-merge February 24, 2026 21:09
@github-actions
Copy link

Artifact containing the AppImage: nextcloud-appimage-pr-9510.zip

Digest: sha256:35c52c3bc8a4b569c0d1a57b9073323610c878be5d03110e5365770dccf900dd

To test this change/fix you can download the above artifact file, unzip it, and run it.

Please make sure to quit your existing Nextcloud app and backup your data.

@mgallien mgallien merged commit bd77802 into master Feb 24, 2026
22 checks passed
@mgallien mgallien deleted the i2h3/fix/targeted-device-family branch February 24, 2026 21:51
@github-project-automation github-project-automation bot moved this from 🏗️ In progress to ☑️ Done in 💻 Desktop Clients team Feb 24, 2026
@sonarqubecloud
Copy link

@nilsding
Copy link
Member

/backport to stable-33.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

os: 🍎 macOS Apple macOS, formerly also known as OS X

Projects

Status: ☑️ Done

Development

Successfully merging this pull request may close these issues.

4 participants