Posts

Post not yet marked as solved
2 Replies
1.7k Views
Guys,I about to throw my laptop out the window. Could anyone help here. I'm building my app through xcodebuild command with the option enableAddressSanitizer YES.xcodebuild build-for-testing -project 'SparkMacDesktop/SparkMacDesktop.xcodeproj' -scheme 'Incremental Build Unit Test' -configuration Release -enableAddressSanitizer YESThis works fine. It's builds and when I run my test it's finding issues. Brilliant. One of the issues is00:04:30.629 ==24173==HINT: if you don't care about these errors you may set ASAN_OPTIONS=detect_odr_violation=0This is false positive and all I want to do is set detect-odr-violation=0. It states to set the environmental ASAN_OPTIONS=detect_odr_violation=01. I have tried to do this using "export ASAN_OPTIONS=detect_odr_violation=0" just before running xcodebuild command2. I have tried to do it by setting this value in path (bash_profile..etc...)3. I have tried setting it in the xcode project, in the schema. Go to schema, edit schema, select Arguments and add enviromental variableNothing works. Does anyone know how to set this enviromental variable. Any help here would really be appreciated.Thanks,Gary
Posted
by galaird.
Last updated
.
Post not yet marked as solved
0 Replies
243 Views
Hey Guys, Wonder if anyone could help here. Not sure if this is the right place to ask but I cant see a particular forum category that would be right for this questrion. Running automation tests through an application that we build to test through called DeveloperHarness.The app can crash from time to time.So next time you open the app, it will prompt you with the dialog stating that last time you opened the app it crash, are you sure you want to open and you have to click on the Re-open button.This causes mayhem for our test runs. I have already have the following lines added trying to suppress this window:defaults write com.apple.CrashReporter DialogType nonedefaults write DeveloperHarness NSQuitAlwaysKeepsWindows -bool falseThis stops the crash reporter from appearing but not the other window (are you sure you want to open) when you go open and try to re-open DeveloperHarness again after a crash. Does anyone know how to suppress this window.Does anyone know where on the mac is this information been stored about the app crashing, that I could delete this cached information. Any help here would be much appreciated.Thanks Gary
Posted
by galaird.
Last updated
.