问题
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:
Ensure that you have your
react-native-unimodulesinstalled and is reflected in yourpackage.json.Ensure that
expo-updatespackage is installed. Else runnpm install expo-updates --saveor use theyarncommand.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