Repository navigation
Preserve user settings when updating Apple projects - #706
Merged
danoli3 merged 5 commits intoNov 9, 2026
Merged
Conversation
danoli3
marked this pull request as ready for review
November 9, 2026 01:55
Member
Author
|
Code developed ages ago, and finished with QWEN open source model overnight / Codex for review and testing |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Updating an existing Apple project can replace user settings with template defaults: Retina support, privacy descriptions, orientations, signing settings and other plist/build values can disappear. Preserve those edits while continuing to refresh the project for the selected openFrameworks checkout.
Behavior
Project.xcconfig, Info.plist, entitlements and Xcode build settings forosx,macosandios. Keep nested plist values, typed data, changed arrays, user deletions, per-configuration signing settings and target capabilities..ofprojectgenerator/apple-settings.json. On subsequent updates, unchanged defaults follow the new template and user differences remain. Keep this file with the project in version control. The first update of an older project without a baseline conservatively retains existing values and adds missing defaults; it cannot identify which values came from an older template yet.config.makevalues. Unedited fields remain implicit so target/configuration differences are preserved; deliberate edits replace the corresponding user settings.This branch includes merged #705. Its
PROJECT_DEFINESvalues are collected before copying files and applied after discovering the current template's target/configuration IDs, so defines also reach renamed configuration IDs and additional app targets. Its local-addon source-path fixes are retained.Custom schemes and extra user-created targets remain outside this settings merge; project structure and shared schemes are still regenerated.
Validation
MACOSX_DEPLOYMENT_TARGET=12.0for the installed SDK).osx,macos, andios: generate, customize, upgrade template defaults and configuration UUIDs, update, and update again. Covers Retina, privacy strings, orientations, nested/typed plist values, signing/capabilities, custom flags and architectures, stale addon flags, required minimums, explicit CLI overrides, OpenStep/binary formats, legacy projects and invalid input.osx,macos,ios, andtvos.