-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Is there any way to access RxSwift.Resources.totalCount
if RxSwift is added via Swift Package Manager?
#2223
Comments
Hey, first of all SPM is still riddled with issues in regards to RxSwift and similar inter-module dependency related frameworks (See https://bugs.swift.org/browse/SR-12303) About your specific question. If you use a Package.swift file, I believe you can do something like this import PackageDescription
let package = Package(
name: "Foo",
targets: [
.target(
name: "MyApp",
cSettings: [
.define("TRACE_RESOURCES", configuration: .debug)
]
)
]
... etc etc
) I'm not sure if you can do it via Xcode, but it is regardless a SwiftPM issue and not a RxSwift issue so I suggest filing a Feedback Feature Request or Bug Report. |
How is this closed? You cannot change these files from xcode, they are in derived data... Can someone please re-open this. |
My comment is quite clear. We support RxSwift, not SPM. If you try the solution I suggested and it doesn't work, I suggest looking into support related to SPM, as it's not related to RxSwift at all. |
Completely agree that access problem is SPM problem. So I would appreciate if someone post a comment with the link with working solution here. |
Hey both. The solution I posted above should work, I'm not sure if it's cSettings or cxxSettings but that should be the official way to go. |
I got this to work with
|
Is there any way to access
RxSwift.Resources.totalCount
if RxSwift is added via Swift Package Manager?Originally posted by @haider-kazal in #378 (comment)
The text was updated successfully, but these errors were encountered: