-
Notifications
You must be signed in to change notification settings - Fork 114
Add custom toolchain to generated project #3140
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
Draft
karim-alweheshy
wants to merge
16
commits into
MobileNativeFoundation:main
Choose a base branch
from
karim-alweheshy:karim/add-custom-toolchain-to-generated-project
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Add custom toolchain to generated project #3140
karim-alweheshy
wants to merge
16
commits into
MobileNativeFoundation:main
from
karim-alweheshy:karim/add-custom-toolchain-to-generated-project
Conversation
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
8655dc5 to
0636a1e
Compare
17dddeb to
ba560c8
Compare
longsview
reviewed
Mar 24, 2025
| ), | ||
| .init(key: "SWIFT_OBJC_INTERFACE_HEADER_NAME", value: #""""#), | ||
| .init(key: "SWIFT_OPTIMIZATION_LEVEL", value: #""-Onone""#), | ||
| .init(key: "SWIFT_USE_INTEGRATED_DRIVER", value: "NO"), |
Contributor
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
awesome ... thanks for cleaning these up in this PR as well.
longsview
reviewed
Mar 24, 2025
| unset toolchain | ||
| fi | ||
| fi | ||
|
|
Contributor
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
longsview
approved these changes
Mar 24, 2025
bbc7b23 to
93c1f9e
Compare
Signed-off-by: Karim Alweheshy <[email protected]>
3fef9e1 to
c782d46
Compare
40 tasks
jeffhodsdon
added a commit
to jeffhodsdon/rules_xcodeproj
that referenced
this pull request
Dec 16, 2025
This commit enables working SwiftUI Previews in Xcode for projects using rules_xcodeproj with BwX (Build with Xcode) mode. Fixes: - Filter LINKED_BINARY= from linker arguments (wrapped_clang specific) - Filter -objc_abi_version malformed arguments (skip 3 args) - Filter -Wl,-objc_abi_version,2 (Xcode sets this itself) - Exclude merged product files from linking to prevent duplicate symbols - Enable ENABLE_DEBUG_DYLIB and ENABLE_DEFAULT_SEARCH_PATHS - Disable custom TOOLCHAINS (causes module issues with previews) - Add ENABLE_DEBUG_DYLIB check to Create Link Dependencies build phase - Unique toolchain names per workspace (prevents conflicts) - Pass through preview-related flags in clang.sh Builds on PRs MobileNativeFoundation#3139 and MobileNativeFoundation#3140. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
jeffhodsdon
added a commit
to jeffhodsdon/rules_xcodeproj
that referenced
this pull request
Dec 16, 2025
This commit enables working SwiftUI Previews in Xcode for projects using rules_xcodeproj with BwX (Build with Xcode) mode. Fixes: - Filter LINKED_BINARY= from linker arguments (wrapped_clang specific) - Filter -objc_abi_version malformed arguments (skip 3 args) - Filter -Wl,-objc_abi_version,2 (Xcode sets this itself) - Exclude merged product files from linking to prevent duplicate symbols - Enable ENABLE_DEBUG_DYLIB and ENABLE_DEFAULT_SEARCH_PATHS - Disable custom TOOLCHAINS (causes module issues with previews) - Add ENABLE_DEBUG_DYLIB check to Create Link Dependencies build phase - Unique toolchain names per workspace (prevents conflicts) - Pass through preview-related flags in clang.sh Builds on PRs MobileNativeFoundation#3139 and MobileNativeFoundation#3140.
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.
This uses the custom toolchain to inject a toolchain instead of other user defined settings
Required for SwiftUI