gpt4 book ai didi

swift - build设置必须设置为使用 Swift 的目标支持的值

转载 作者:行者123 更新时间:2023-11-30 11:31:42 25 4
gpt4 key购买 nike

我第一次想创建自己的 Pod。我正在关注本教程:

https://code.tutsplus.com/tutorials/creating-your-first-cocoapod--cms-24332

在第 7 步(使您的 Pod 可用)的第 2 步中,我在验证 .podspec 文件时遇到问题。我收到此错误:

The “Swift Language Version” (SWIFT_VERSION) build setting must be set to a supported value for targets which use Swift. This setting can be set in the build settings editor.

我已将 cocoapods 更新到最新版本,并且我想使用 Swift 4.1。我确实将 Swift 4.1 设置为 pod 文件和主项目文件的编译器设置。

该项目在这里:https://github.com/Jasperav/TemplatePrivateRepo

如何消除这个错误?

最佳答案

我在打开 .swift-version 文件时让它工作,并且只将“4.1”设置为内容(没有“”)

关于swift - build设置必须设置为使用 Swift 的目标支持的值,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50190443/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com