react native ios build fails with error - 'EXUpdates/EXUpdatesAppController.h' file not found

為{幸葍}努か 提交于 2021-01-27 20:09:37

问题


react native ios build fails with error

'EXUpdates/EXUpdatesAppController.h' file not found

file used in AppDelegate.h

#import <Foundation/Foundation.h>
#import <EXUpdates/EXUpdatesAppController.h>  <--- here
#import <React/RCTBridgeDelegate.h>
#import <UIKit/UIKit.h>

#import <UMCore/UMAppDelegateWrapper.h>

@interface AppDelegate : UMAppDelegateWrapper <RCTBridgeDelegate, EXUpdatesAppControllerDelegate>

@end

Anyone solutions?


回答1:


This error means that Xcode is unable to find the package that is supposed to be in your development pod folder ( at least that is the case for me)

Few points to double check:

  1. Ensure that you have your react-native-unimodules installed and is reflected in your package.json.

  2. Ensure that expo-updates package is installed. Else run npm install expo-updates --save or use the yarn command.

  3. In your Podfile, ensure you have this line : use_unimodules!

After ensuring both are there, run cd ios followed by pod install to install the EX modules. The modules should be in your 'Development Pods' folder. Lastly, rebuild your xcode project. These ways work for me. Hopefully, they can be of some help.



来源:https://stackoverflow.com/questions/63847289/react-native-ios-build-fails-with-error-exupdates-exupdatesappcontroller-h-f

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!