MobileNativeFoundation / MobileNativeFoundation/rules_xcodeproj
Bug: `-fno_objc_arc` not passed to build commands with BwX
Nobody has claimed this yet.
- Dominant language
- Swift
- Stars
- 626
- Forks
- 124
- PR merge metrics
- No merged PRs in 30d
Description
Description
We have an ObjC file that uses -fno_objc_arc, which stopped building after 1.4.0. Likely with https://github.com/MobileNativeFoundation/rules_xcodeproj/pull/2016
These flags don't appear to be included in the params files.
Reproduction steps
- Write ObjC that uses NSAutoReleasePool
- In the objc_library rule, pass
-fno_objc_arc - Generate project with BwX
It will not build as it is being built with ARC. The -fno_objc_arc is not passed to the build command either directly or in the params file.
Expected behavior
-fno_objc_arc is propegated.
rules_xcodeproj version
1.5.1
Xcode version
14.3
Bazel version
6.2
rules_apple version
No response
rules_swift version
No response
Additional information
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue with the objc_library rule and BwX, then inspect the generated build commands and params files. Trace where compiler flags are collected and propagated; done means -fno_objc_arc reaches the build command and the ObjC source builds without ARC.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- objective-c
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100