Skip to content

Conversation

@i2h3
Copy link
Collaborator

@i2h3 i2h3 commented Oct 6, 2025

As part of figuring out why Xcode cannot map source files I tried to simplify the working environment with Xcode. My previously used Xcode wrapper project now is obsolete because the editing and debugging is possible right from inside the existing NextcloudIntegration project.

@i2h3 i2h3 added this to the 4.0.0 milestone Oct 6, 2025
@i2h3 i2h3 self-assigned this Oct 6, 2025
@i2h3 i2h3 requested a review from camilasan as a code owner October 6, 2025 14:46
@i2h3 i2h3 added the os: 🍎 macOS Apple macOS, formerly also known as OS X label Oct 6, 2025
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 PR simplifies the development workflow for the Nextcloud desktop client on macOS by integrating the mac-crafter tool into Xcode as a build scheme. This enables developers to build, run, and debug the desktop client directly from Xcode without needing separate command-line workflows.

Key changes:

  • Added a new "NextcloudDev" target and scheme that wraps mac-crafter as an external build system
  • Created comprehensive documentation for the new Xcode-based development workflow
  • Updated logging to use structured logging format in the file provider extension

Reviewed Changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
README.md Added reference to new Xcode development workflow documentation
shell_integration/MacOSX/NextcloudIntegration/README.md New comprehensive documentation for Xcode-based development
shell_integration/MacOSX/NextcloudIntegration/NextcloudDev/Craft.sh Shell script that integrates mac-crafter with Xcode build system
shell_integration/MacOSX/NextcloudIntegration/NextcloudIntegration.xcodeproj/project.pbxproj Added NextcloudDev target and build configurations
shell_integration/MacOSX/NextcloudIntegration/NextcloudIntegration.xcodeproj/xcshareddata/xcschemes/NextcloudDev.xcscheme Xcode scheme configuration for the new development target
shell_integration/MacOSX/NextcloudIntegration/FileProviderExt/Services/ClientCommunicationService.swift Updated logging to use structured format
shell_integration/MacOSX/NextcloudIntegration/.gitignore Added DerivedData to gitignore
shell_integration/MacOSX/NextcloudIntegration/NextcloudIntegration.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved Updated NextcloudFileProviderKit dependency revision

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@i2h3 i2h3 changed the title Run client from xcode Run Developer Build from Xcode Oct 6, 2025
@i2h3 i2h3 force-pushed the run-client-from-xcode branch from b8b3be9 to 3f4d1d1 Compare October 6, 2025 15:35
@i2h3 i2h3 enabled auto-merge October 6, 2025 15:37
i2h3 added 5 commits October 6, 2025 18:31
Introduced a new target with external build system in the NextcloudIntegration Xcode project to conveniently run mac-crafter from Xcode.

Signed-off-by: Iva Horn <iva.horn@icloud.com>
LLVM could not resolve breakpoints set in Xcode. That requires dSYM files to work. I changed the build setting to produce these files for all targets and debug configuration builds. Now it is possible to also conveniently break in Xcode when attaching to the extension processes.

Signed-off-by: Iva Horn <iva.horn@icloud.com>
Signed-off-by: Iva Horn <iva.horn@icloud.com>
Signed-off-by: Iva Horn <iva.horn@icloud.com>
This integrates the fixes for the file locking.

Signed-off-by: Iva Horn <iva.horn@icloud.com>
@mgallien mgallien force-pushed the run-client-from-xcode branch from 5865a78 to f219ad6 Compare October 6, 2025 16:31
@github-actions
Copy link

github-actions bot commented Oct 6, 2025

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

Digest: sha256:d421fc4434c711c9de863cf1f18a7782f853955e1591d6eb5b766824f6f0f838

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.

@i2h3 i2h3 merged commit 37b204a into master Oct 6, 2025
20 checks passed
@i2h3 i2h3 deleted the run-client-from-xcode branch October 6, 2025 17:39
@sonarqubecloud
Copy link

sonarqubecloud bot commented Oct 6, 2025

@mgallien
Copy link
Collaborator

mgallien commented Oct 7, 2025

/backport to stable-4.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

None yet

Development

Successfully merging this pull request may close these issues.

3 participants