【发布时间】:2022-10-20 18:34:51
【问题描述】:
我正在尝试在 Mac Intel 上构建我的 react 本机项目,但不断收到下一个错误:
Showing All Messages
Undefined symbol: _swift_stdlib_isStackAllocationSafe
架构 arm64 的未定义符号: “_swift_stdlib_isStackAllocationSafe”,引用自: 函数签名特化 <Arg1 = Owned To Guaranteed> 函数签名特化 <Arg[0] = [Closure Propagated :closure #1 (__C.SKProduct) -> Swift.Bool inclosure #2 (Swift.Set<__C .SKProduct>) -> () 在 PurchasesCoreSwift.IntroEligibilityCalculator.checkTrialOrIntroductoryPriceEligibility(with: Foundation.Data, productIdentifiers: Swift.Set<Swift.String>, completion: (Swift.Dictionary<Swift.String, __C.NSNumber>, Swift.可选<Swift.Error>) -> ()) -> (),参数类型:[Swift.Set<Swift.String>]> 的泛型特化 <__C.SKProduct> of Swift._NativeSet.filter((A) throws -> Swift.Bool) 抛出 -> Swift._NativeSet 在 libPurchasesCoreSwift.a(IntroEligibilityCalculator.o) ld:未找到架构 arm64 的符号 clang:错误:链接器命令失败,退出代码为 1(使用 -v 查看调用)
我已经尝试了几乎所有的答案:link。
还
pod deintegrate pod install pod repo update我的反应原生版本:
"react-native": "0.64.2"更新我还将 react 本机版本更新为 0.67.4,但仍然无法正常工作。
【问题讨论】:
-
我在实现 Adapty 库时遇到了同样的问题。只需在此处保留问题的链接:github.com/adaptyteam/AdaptySDK-React-Native/issues/20
标签: ios xcode react-native macos arm64