From 7d62b6077b534fbf93a45c377b0764afa1134efd Mon Sep 17 00:00:00 2001 From: Spencer Ahrens Date: Thu, 18 Jun 2015 19:14:44 -0700 Subject: [PATCH] [ReactNative] Fix 32 bit check compile error Summary: @public The test file is getting compiled when hitting cmd+R which fails for 64-bit devices even if not trying to run tests. Change back to runtime check to fix. Test Plan: cmd+R works for iPhone 6, cmd+U fails as expected on iPhone 6, works for iPhone 5 --- .../UIExplorerIntegrationTests/IntegrationTestsTests.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Examples/UIExplorer/UIExplorerIntegrationTests/IntegrationTestsTests.m b/Examples/UIExplorer/UIExplorerIntegrationTests/IntegrationTestsTests.m index b69e9a78b..44d048323 100644 --- a/Examples/UIExplorer/UIExplorerIntegrationTests/IntegrationTestsTests.m +++ b/Examples/UIExplorer/UIExplorerIntegrationTests/IntegrationTestsTests.m @@ -26,7 +26,7 @@ - (void)setUp { #if __LP64__ - #error Tests should be run on 32-bit device simulators (e.g. iPhone 5) + RCTAssert(false, @"Tests should be run on 32-bit device simulators (e.g. iPhone 5)"); #endif NSOperatingSystemVersion version = [[NSProcessInfo processInfo] operatingSystemVersion];