Xcode 构建错误:无法打开配置设置文件

问题描述 投票:0回答:1

在 XCode 中构建项目会抛出奇怪的错误

**完整项目示例:** https://github.com/cristianoalves92/react-native-live-activity/tree/master/example

**Xcode 项目:** https://github.com/cristianoalves92/react-native-live-activity/tree/master/example/ios/LiveActivityExample.xcworkspace

首先我在示例根文件夹中运行yarn install

然后我在 XCode(M1 Mac 上的 Xcode 14.2)中打开 ./example/ios/LiveActivityExample.xcworkspace 并在构建尝试时出现以下错误:

Xcode 构建错误:

.../react-native-live-activity/example/ios/Pods/Target Support Files/Pods-LiveActivityExample/Pods-LiveActivityExample.debug.xcconfig:1:1 无法打开配置设置文件

无法加载文件列表的内容:'/Target Support Files/Pods-LiveActivityExample/Pods-LiveActivityExample-frameworks-Debug-input-files.xcfilelist'

运行 arch

-x86_64 pod install
会抛出此错误:

Auto-linking React Native module for target `LiveActivityExample`: react-native-live-activity
[Codegen] Generating ./build/generated/ios/React-Codegen.podspec.json
Analyzing dependencies
Fetching podspec for `DoubleConversion` from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`
[Codegen] Found FBReactNativeSpec
Fetching podspec for `RCT-Folly` from `../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec`
Fetching podspec for `boost` from `../node_modules/react-native/third-party-podspecs/boost.podspec`
Fetching podspec for `glog` from `../node_modules/react-native/third-party-podspecs/glog.podspec`
/Users/roman.staroushnik/.rbenv/versions/2.7.5/lib/ruby/gems/2.7.0/gems/ffi-1.13.1/lib/ffi/library.rb:275: [BUG] Bus Error at 0x0000000104ee4000
ruby 2.7.5p203 (2021-11-24 revision f69aeb8314) [arm64-darwin22]

ios reactjs xcode cocoapods native
1个回答
0
投票

我的 React Native 应用程序也遇到了同样的问题。这些行似乎解决了我的问题:

cd ios
pod install

(我也重启了XCode,不知道有没有必要)

© www.soinside.com 2019 - 2024. All rights reserved.