Thursday, August 11, 2022
HomeiOS Developmentxcode - react-native ios "typedef redefinition with differing kinds vs 'enum clockid_t')"

xcode – react-native ios “typedef redefinition with differing kinds vs ‘enum clockid_t’)”


i am a beginner in react-native
i downloaded a undertaking from github however i am unable to run it on ios

i ran pod set up inside ios folder, then i ran yarn ios

at first i get

warning: The iOS deployment goal 'IPHONEOS_DEPLOYMENT_TARGET' is about to eight.0, however the vary of supported deployment goal variations is 9.0 to fifteen.4.99

for a number of pods, i’ve tried to edit podfile but it surely induced me a variety of issues, so i restored the unique one, and reinstalled it.

then i opened ios folder on XCode and edited the deployment goal to ios 14.6 for all of the pods, it labored, however now i’ve one other error the place i am unable to discover a resolution

when i run yarn ios i get:

› Compiling react-native Pods/RCT-Folly » Conv.cpp
› Compiling react-native Pods/RCT-Folly » SysUio.cpp

❌  (/Customers/jacopomosconi/app-monorepo/packages/app/ios/Pods/Headers/Non-public/RCT-Folly/folly/portability/Time.h:52:17)

  50 | #outline CLOCK_THREAD_CPUTIME_ID 3
  51 | 
> 52 | typedef uint8_t clockid_t;
     |                 ^ typedef redefinition with differing kinds vs 'enum clockid_t')
  53 | extern "C" int clock_gettime(clockid_t clk_id, struct timespec* ts);
  54 | extern "C" int clock_getres(clockid_t clk_id, struct timespec* ts);
  55 | #endif

somebody know how you can resolve it?



Most Popular

Recent Comments