Skip to content

Commit 4ab9da1

Browse files
zhongwuzwfacebook-github-bot
authored andcommitted
Fixes iOS packager connection not work (#25803)
Summary: Macro `ENABLE_PACKAGER_CONNECTION` invalid because of `__has_include` can't find the header now. Leads to packager connection not work anymore. ## Changelog [iOS] [Fixed] - Fixes iOS packager connection not work Pull Request resolved: #25803 Test Plan: 1. Init a new project. 2. Run and input `curl http://localhost:8081/reload` in terminal. Reload operation can execute. Differential Revision: D16458384 Pulled By: TheSavior fbshipit-source-id: 27e7e02b5666a2131e995accd34e4da7bad42335
1 parent 5e960e3 commit 4ab9da1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

React/Base/RCTDefines.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
#endif
5656

5757
#ifndef ENABLE_PACKAGER_CONNECTION
58-
#if RCT_DEV && __has_include(<React/RCTPackagerConnection.h>) && !TARGET_OS_UIKITFORMAC
58+
#if RCT_DEV && (__has_include("RCTPackagerConnection.h") || __has_include(<React/RCTPackagerConnection.h>)) && !TARGET_OS_UIKITFORMAC
5959
#define ENABLE_PACKAGER_CONNECTION 1
6060
#else
6161
#define ENABLE_PACKAGER_CONNECTION 0

0 commit comments

Comments
 (0)