-
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
Cocoa pods TRACE_RESOURCES setup #301
Comments
Hi @sergdort , I believe you need a post install hook. More info here http://www.mokacoding.com/blog/cocoapods-and-custom-build-configurations/ ... and you need to set these Swift flags (I believe it is called OTHER_SWIFT_FLAGS in configuration). |
Hi, @kzaher If somebody interested this is my post install hook, I also did what you said with the app target, in order do use #if macro #if TRACE_RESOURCES
....
#endif 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 |
Thanks @sergdort and @kzaher, that ...and then conditionally check it using
That way you can just check/uncheck a box when you want to enable or disable certain code. 😀 |
Hi, guys
Sorry if its not related to Rx, but could you please describe how should I set up my podfile in order to be able to see resources in the debug mode
Because now I do this manualy
The text was updated successfully, but these errors were encountered: