“Swift Language Version” (SWIFT_VERSION) build setting must be set to a supported value for targets which use Swift

使用cocopod导入第三方swift包后,编译报以下错误:

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.

解决方法如下:(上一次没有注意到图片没有传上来,我说咋有人对我倒手指)

选择一个当前对应的swift版本就好了

原文地址:https://www.cnblogs.com/baitongtong/p/8393437.html

时间: 2024-08-03 04:16:35

“Swift Language Version” (SWIFT_VERSION) build setting must be set to a supported value for targets which use Swift的相关文章

使用agvtool 自动化操作version and Build Numbers 的步骤

1.Build Numbers 存储在应用程序的Info.plist中,CFBundleVersion (Bundle version). 2.先在Xcode project中设置agvtool工具可用,target ->Build Settings->combined->Versioning 2.1 Set Current Project Version to a value of your choosing. 2.2 Set Versioning System to Apple Ge

xcode 自定义build Setting

Xcode->Editor->Add Build Setting 附图:工具(xcode5.1) xcode 自定义build Setting

caffe:编译时提示:unsupported GNU version! gcc versions later than 4.9 are not supported!

NVCC src/caffe/solvers/adam_solver.cuIn file included from /usr/local/cuda/include/cuda_runtime.h:76:0,                 from <command-line>:0:/usr/local/cuda/include/host_config.h:115:2: error: #error -- unsupported GNU version! gcc versions later t

Xcode中的Version和Build的区别

Version( 应用程序发布版本号 ) Version对应的是CFBundleShortVersionString. Version 一般由产品部门确定,版本号是由分隔的整数组成的字符串,一般有2段或者3段式, 如:1.2,  1.2.3 二段式: 第一个段:(主版本号)大功能的新增或者有迥异的变化 第二个段:(副版本号)既包含小功能更新也会包含 bug 修复 三段式: 第一个段:重大修改的版本,如实现新的大功能或重大变化的修订. 第二个段:实现较突出的特点,如新功能添加和大问题修复. 第三个

iOS 代码实现获得应用的版本号(Version/Build)

[1]概念 iOS的版本号,一个叫做Version,一个叫做Build,这两个值都可以在Xcode 中选中target,点击“Summary”后看到. Version在plist文件中的key是“CFBundleShortVersionString”,和AppStore上的版本号保持一致,Build在plist中的key是“CFBundleVersion”,代表build的版本号,该值每次build之后都应该增加1.这两个值都可以在程序中通过下面的代码获得: [[[NSBundle mainBu

iOS 版本号Version和Build的区别

一个version,一个build,都是设置版本的地方,有什么区别呢? 在ios中(Android等工程中也一样),有两种version,一种是 CFBundleVersion ("Bundle Version"),也就是我们看到的version,另一种是CFBundleShortVersionString ("Bundle version string, short"),也就是我们看到的Build. 普通情况下,我们只使用version即可,设置为"1.

获得Version和Build版本号

// Version [[[NSBundle mainBundle] infoDictionary] valueForKey:@"CFBundleShortVersionString"]; // Build [[[NSBundle mainBundle] infoDictionary] valueForKey:@"CFBundleVersion"];

Version和Build的区别

[1]概念 iOS的版本号,一个叫做Version,一个叫做Build,这两个值都可以在Xcode 中选中target,点击"Summary"后看到. Version在plist文件中的key是"CFBundleShortVersionString",和AppStore上的版本号保持一致,Build在plist中的key是"CFBundleVersion",代表build的版本号,该值每次构建版本之后都应该增加1.这两个值都可以在程序中通过下面的

swift language

API reference Swift UIKit