-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Can't build with Address Sanitizer enabled #4653
Comments
I'm guessing you have to ensure that all Pods are also build using the address sanitiser. |
I tried editing the scheme for Pods and for ObjectiveSugar in my test project and turning on the address sanitizer for both of them, but I still get the same build errors for the main project. Anything else I might try? |
Editing those schemes won't do anything, because you're not utilising them for the build. You have to dig up the right compiler settings and apply them to the other targets. |
The issue happens for me too |
Anyone figure this out? |
Looking for an answer on this one also. I'm seeing the same problem. |
Still exists... |
This issue will be auto-closed because there hasn't been any activity for a few months. Feel free to open a new one if you still experience this problem 👍 |
I'm having the same issue as #4586. The resolution there was to turn off the address sanitizer, but it's a tool for debugging that I'd like to be able to use.
If I make a new project in Xcode, it builds with the address sanitizer enabled.
(To turn on the address sanitizer, go to "Edit Scheme" and check the box for "Enable Address Sanitizer".)
Once I add CocoaPods to the project (following the guide here: https://guides.cocoapods.org/using/using-cocoapods.html) the project no longer builds with address sanitizer enabled.
I get a long list of errors like this:
Are there any steps I can follow to fix this?
The text was updated successfully, but these errors were encountered: