简体   繁体   中英

React/RCTDefines.h file not found

I am looking to add the Apple Health-Kit to my React-Native project. After following the instructions here: ( https://www.npmjs.com/package/react-native-apple-healthkit )

the build fails and the following error appears.

XCode 构建错误

I am not sure why this error is occurring or how to fix it.

go to the file and replace this line where the error occurs

#import <React/RCTDefines.h>

with this line

#import "RCTDefines.h"

The three files linked do not include the line

#import <React/RCTDefines.h>

Here is what appears in the files linked.

在此处输入图像描述

在此处输入图像描述

在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM