Results 1 to 2 of 2
  1. #1
    Address Sanitizer. How to set value detect-odr-violation=0
    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 YES

    This works fine. It's builds and when I run my test it's finding issues. Brilliant. One of the issues is

    00:04:30.629 ==24173==HINT: if you don't care about these errors you may set ASAN_OPTIONS=detect_odr_violation=0

    This 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=0

    1. I have tried to do this using "export ASAN_OPTIONS=detect_odr_violation=0" just before running xcodebuild command
    2. 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 variable


    Nothing works. Does anyone know how to set this enviromental variable. Any help here would really be appreciated.

    Thanks,
    Gary

  2. #2
    Prefix your xcodebuild command with the argument, so
    Code:
    ASAN_OPTIONS=detect_odr_violation=0 xcodebuild build-for-testing -project 'SparkMacDesktop/SparkMacDesktop.xcodeproj' -scheme 'Incremental Build Unit Test' -configuration Release -enableAddressSanitizer YES
    --
    Regards
    ...Ashwin


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Mac mail - can't set from address
    By jaffakatie in forum macOS - Operating System
    Replies: 0
    Last Post: 11-10-2012, 07:09 PM
  2. how to set email address?
    By lindadimitroff in forum iOS and Apps
    Replies: 2
    Last Post: 04-14-2012, 05:06 AM
  3. Apple releases iOS 4.3.5 to address certificate violation issue
    By OneMoreThing... in forum Apple Rumors and Reports
    Replies: 0
    Last Post: 07-25-2011, 02:54 PM
  4. Replies: 0
    Last Post: 03-12-2011, 04:49 PM
  5. Airport cannot detect an IP address from my wireless modum
    By rachelcaitlin in forum Internet, Networking, and Wireless
    Replies: 1
    Last Post: 06-09-2009, 03:50 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •