mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-02-11 22:32:38 +08:00
[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
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user