我有一个 React Native 项目,正在尝试在最新的 Xcode 10.1 中运行。但是在构建时出现两个错误。
错误:
Users/ios/Pods/Target Support Files/React/React.xcconfig: unable to open file (in target "React" in project "Pods") (in target 'React')
Users/ios/Pods/Target Support Files/React/React.xcconfig: unable to open file (in target "React" in project "Pods") (in target 'React')
我的Podfile文件如下:
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '9.0'
EXPO_CPP_HEADER_DIR = 'ExpoKit'
target 'commonalityre' do
pod 'ExpoKit',
:git => "http://github.com/expo/expo.git",
:tag => "ios/2.6.8",
:subspecs => [
"Core",
"CPP",
"GL"
],
:inhibit_warnings => true
pod 'React',
:path => "../node_modules/react-native",
:inhibit_warnings => true,
:subspecs => [
"Core",
"ART",
"RCTActionSheet",
"RCTAnimation",
"RCTCameraRoll",
"RCTGeolocation",
"RCTImage",
"RCTNetwork",
"RCTPushNotification",
"RCTText",
"RCTVibration",
"RCTWebSocket",
"DevSupport",
"CxxBridge"
]
pod 'yoga',
:path => "../node_modules/react-native/ReactCommon/yoga",
:inhibit_warnings => true
不确定如何解决这个问题。我尝试删除派生数据和清理,但仍然无法解决这个错误。
谢谢