-
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
RxSwift.resourceCount not accessable #378
Comments
Please take a look on #301 |
Hi @sergdort I set the OtherSwift Compiler Flags same as you did, still I have same issue, Please see the below SS |
Hi @kbala did you make a post POD install hook ? use_frameworks!
pod 'RxSwift'
post_install do |installer|
installer.pods_project.targets.each do |target|
if target.name == 'RxSwift'
target.build_configurations.each do |config|
if config.name == 'Debug'
config.build_settings['OTHER_SWIFT_FLAGS'] ||= ['-D', 'TRACE_RESOURCES']
end
end
end
end
end |
It seems not working for me. |
You can't access Once any version of RxSwift libraries is compiled without If Carthage supported specifying additional Swift flags during compilation, that would be possible, but I'm not sure it currently supports that or is there some other way to solve that using Carthage. |
You can use |
yes, I run I can access the resourceCount now, and it works 👍 |
Thnx @ikesyo :) |
And thnx @sergdort , helping with issues helps a lot 👍 |
|
Just remembering that right now, the resource count is getted from: |
Hey guys you can also add post install to pod file post_install do |installer|
installer.pods_project.targets.each do |target|
if target.name == 'RxSwift'
target.build_configurations.each do |config|
if config.name == 'Debug'
config.build_settings['OTHER_SWIFT_FLAGS'] ||= ['-D', 'TRACE_RESOURCES']
end
end
end
end
end |
Let's add this to next release :) |
Oh, @sergdort I've thought we can add this to podspec also and not podfile. My bad. |
I'm having this issue as well even though I am not using Carthage. I added RxSwift to the project with Cocoapods and tried to access |
Is there any way to access |
cc @kzaher |
Still no clear way to debug if using SwiftPackageManager. |
There is absolutely no need to go through every issue related to this and comment there. |
if TRACE_RESOURCES
endif
Says,
Module 'RxSwift' has no member named 'resourceCount'
The text was updated successfully, but these errors were encountered: