CompileSwiftSources 普通 x86_64 com.apple.xcode.tools.swift.compiler (在项目“Pods”的目标“Pageboy”中)

uma*_*ooq 23 ios swift5 ios15 xcode13

当我使用 Swift 5.5 在 Xcode 13.0 for Simulator 15 中构建 iOS 项目时,出现以下错误

截屏

Abh*_*Sah 9

例如:

The following build commands failed:
    CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler (in target 'ExpoModulesCore' from project 'Pods')
Run Code Online (Sandbox Code Playgroud)

这里过时的吊舱似乎是ExpoModulesCore

如果它不起作用,就像它对我不起作用一样,哈哈:

请遵循以下步骤:https ://stackoverflow.com/a/69384358/15421728

对于任何寻找答案的人。

跑步

The following build commands failed:
    CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler (in target 'ExpoModulesCore' from project 'Pods')
Run Code Online (Sandbox Code Playgroud)

如果还有更多过时的 pod,则对每个过时的 pod 重复之前的步骤。


小智 8

与您的依赖项相关的问题:您必须等待这些依赖项更新到 Swift 5.5,否则,您必须保留在 Xcode 12 上。就我而言,我在开发过程中更新到了 13。

  • 您如何查看哪些依赖项? (2认同)

小智 5

我正在使用 React Native,并且遇到了非常类似的错误。

这对我有用:

cd ios && rm -rf Pods && pod cache clean --all && pod install && cd ..
Run Code Online (Sandbox Code Playgroud)