Skip to content

Commit 5b64b67

Browse files
authored
fix: enable sanitizers in Xcode build settings instead (#784)
Enabling sanitizers in scheme causes issues on some setups when running XCTests.
1 parent 7ca33b1 commit 5b64b67

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

ios/ReactTestApp.xcodeproj/xcshareddata/xcschemes/ReactTestApp.xcscheme

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,6 @@
5454
buildConfiguration = "Debug"
5555
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
5656
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
57-
enableAddressSanitizer = "YES"
58-
enableUBSanitizer = "YES"
5957
launchStyle = "0"
6058
useCustomWorkingDirectory = "NO"
6159
ignoresPersistentStateOnLaunch = "NO"

ios/ReactTestApp/ReactTestApp.debug.xcconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#include "ReactTestApp.common.xcconfig"
22

3+
CLANG_ADDRESS_SANITIZER = YES
4+
CLANG_UNDEFINED_BEHAVIOR_SANITIZER = YES
35
DEBUG_INFORMATION_FORMAT = dwarf
46
ENABLE_TESTABILITY = YES
57
GCC_DYNAMIC_NO_PIC = NO

macos/ReactTestApp.xcodeproj/xcshareddata/xcschemes/ReactTestApp.xcscheme

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,6 @@
5454
buildConfiguration = "Debug"
5555
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
5656
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
57-
enableAddressSanitizer = "YES"
58-
enableUBSanitizer = "YES"
5957
launchStyle = "0"
6058
useCustomWorkingDirectory = "NO"
6159
ignoresPersistentStateOnLaunch = "NO"

macos/ReactTestApp/ReactTestApp.debug.xcconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#include "ReactTestApp.common.xcconfig"
22

3+
CLANG_ADDRESS_SANITIZER = YES
4+
CLANG_UNDEFINED_BEHAVIOR_SANITIZER = YES
35
DEBUG_INFORMATION_FORMAT = dwarf
46
ENABLE_TESTABILITY = YES
57
GCC_DYNAMIC_NO_PIC = NO

0 commit comments

Comments
 (0)