在 xcode 16.1 之后,expo 应用程序将无法为 ios 构建

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

一切都工作正常,直到我将 xcode 更新到 16.1

构建失败

⚠️  ld: ignoring duplicate libraries: '-lc++'
⚠️  ld: Could not find or use auto-linked framework 'CoreAudioTypes': framework 'CoreAudioTypes' not found
⚠️  ld: Could not parse or use implicit file '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/Frameworks/SwiftUICore.framework/SwiftUICore.tbd': cannot link directly with 'SwiftUICore' because product being built is not an allowed client of it
❌  Undefined symbols for architecture arm64
┌─ Symbol: absl::lts_20240116::CHexEscape(absl::lts_20240116::string_view)
└─ Referenced from: grpc_core::StatusToString(absl::lts_20240116::Status const&)::$_0::operator()(absl::lts_20240116::string_view, absl::lts_20240116::Cord const&) const in grpc[737](status_helper.o)


❌  ld: symbol(s) not found for architecture arm64

2 error(s), and 32 warning(s)

CommandError: Failed to build iOS project. "xcodebuild" exited with error code 65.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

我尝试过清除 pod 并重新安装、删除 xcode 派生数据、重新安装节点模块,现在我不知道该怎么做才能让这个应用程序正常工作。

ios xcode react-native expo
1个回答
0
投票

我的构建失败并收到此错误:

warning: Run script build phase 'Create Symlinks to Header Folders' will be run during every build because it does not specify any outputs. To address this issue, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'React-debug' from project 'Pods')


--- xcodebuild: WARNING: Using the first of multiple matching destinations:
{ platform:iOS Simulator, id:C96C50E3-D440-4AA7-8097-E9249B002D0C, OS:18.1, name:iPhone 16 Pro Max }
{ platform:iOS Simulator, id:C96C50E3-D440-4AA7-8097-E9249B002D0C, OS:18.1, name:iPhone 16 Pro Max }
** BUILD FAILED **
© www.soinside.com 2019 - 2024. All rights reserved.