[!] Unable to determine Swift version for the following pods:

简介: [!] Unable to determine Swift version for the following pods:

原因工程中没有设置SWIFT_VERSION,为空,而依赖的第三方库使用了swift,若用公司网络下载pods下载不下来,建议采用电脑直接连接手机wifi网络(你的手机流量够用的情况下)。

解决方案:设置Targets->Build Settings->Combined(All)->User-Defined->SWIFT_VERSION,设置为4.0等。若没有SWIFT_VERSION属性就要在User-Defined下面点“+”添加,设置版本号。

-> Installing Zip (1.1.0)
 > Git download
 > Git download
     $ /usr/bin/git clone https://github.com/marmelroy/Zip.git
     /var/folders/4y/m9ckznh17111xdfwvn7xg0w40000gn/T/d20190611-5196-5q9vsg
     --template= --single-branch --depth 1 --branch 1.1.0
     Cloning into '/var/folders/4y/m9ckznh17111xdfwvn7xg0w40000gn/T/d20190611-5196-5q9vsg'...
     Note: checking out 'e0935dcb2c99f4511ecf95cab5dcec0f25335829'.

     You are in 'detached HEAD' state. You can look around, make experimental
     changes and commit them, and you can discard any commits you make in this
     state without impacting any branches by performing another checkout.

     If you want to create a new branch to retain commits you create, you may
     do so (now or later) by using -b with the checkout command again. Example:

       git checkout -b <new-branch-name>

  > Copying Zip from
  `/Users/jiaguoshang/Library/Caches/CocoaPods/Pods/Release/Zip/1.1.0-8877e` to
  `Pods/Zip`

-> Installing iOSDFULibrary (4.2.2)
 > Git download
 > Git download
     $ /usr/bin/git clone
     https://github.com/NordicSemiconductor/IOS-Pods-DFU-Library.git
     /var/folders/4y/m9ckznh17111xdfwvn7xg0w40000gn/T/d20190611-5196-1xw1fjc
     --template= --single-branch --depth 1 --branch 4.2.2
     Cloning into '/var/folders/4y/m9ckznh17111xdfwvn7xg0w40000gn/T/d20190611-5196-1xw1fjc'...
     Note: checking out '422caf59d89f1ded7e9f403f17a5ea863b6b40ff'.

     You are in 'detached HEAD' state. You can look around, make experimental
     changes and commit them, and you can discard any commits you make in this
     state without impacting any branches by performing another checkout.

     If you want to create a new branch to retain commits you create, you may
     do so (now or later) by using -b with the checkout command again. Example:

       git checkout -b <new-branch-name>

  > Copying iOSDFULibrary from
  `/Users/jiaguoshang/Library/Caches/CocoaPods/Pods/Release/iOSDFULibrary/4.2.2-65a30`
  to `Pods/iOSDFULibrary`
  - Running pre install hooks
[!] Unable to determine Swift version for the following pods:

- `Zip` does not specify a Swift version and none of the targets (`ELock_Example`) integrating it have the `SWIFT_VERSION` attribute set. Please contact the author or set the `SWIFT_VERSION` attribute in at least one of the targets that integrate this pod.
目录
相关文章
|
8月前
target overrides the `ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES` build setting defined in `Pods/Target S
target overrides the `ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES` build setting defined in `Pods/Target S
119 0
|
Swift
Swift - 不使用pods如何正确添加类似Alamofire这样的库
Swift - 不使用pods如何正确添加类似Alamofire这样的库
141 0
Swift - 不使用pods如何正确添加类似Alamofire这样的库
|
Swift
Swift - pods中导入的Object-C文件在桥接文件中写入找不到的问题
Swift - pods中导入的Object-C文件在桥接文件中写入找不到的问题
164 0
|
Swift Perl
pods 报错There may only be up to 1 unique SWIFT_VERSION per target
zhangpengdeMacBook-Pro:Jump zhangpeng$ pod install Analyzing dependencies [!] There may only be up to 1 unique SWIFT_VERSION per target.
1423 0
error: unable to invoke subcommand: /usr/bin/swift-build (No such file or directory)
在 《Swift入门》Ubuntu 14 server安装Swift运行环境 中,从Bluemix上下载的Swift应用入门示例中,在执行“swift build”命令时,提示:error: unable to invoke subcommand: /home/aven/swift-2.
1043 0
|
8月前
|
安全 编译器 Swift
IOS开发基础知识: 对比 Swift 和 Objective-C 的优缺点。
IOS开发基础知识: 对比 Swift 和 Objective-C 的优缺点。
463 2
|
6月前
|
Unix 调度 Swift
苹果iOS新手开发之Swift 中获取时间戳有哪些方式?
在Swift中获取时间戳有四种常见方式:1) 使用`Date`对象获取秒级或毫秒级时间戳;2) 通过`CFAbsoluteTimeGetCurrent`获取Core Foundation的秒数,需转换为Unix时间戳;3) 使用`DispatchTime.now()`获取纳秒级精度的调度时间点;4) `ProcessInfo`提供设备启动后的秒数,不表示绝对时间。不同方法适用于不同的精度和场景需求。
208 3
|
2月前
|
安全 Swift iOS开发
Swift 与 UIKit 在 iOS 应用界面开发中的关键技术和实践方法
本文深入探讨了 Swift 与 UIKit 在 iOS 应用界面开发中的关键技术和实践方法。Swift 以其简洁、高效和类型安全的特点,结合 UIKit 丰富的组件和功能,为开发者提供了强大的工具。文章从 Swift 的语法优势、类型安全、编程模型以及与 UIKit 的集成,到 UIKit 的主要组件和功能,再到构建界面的实践技巧和实际案例分析,全面介绍了如何利用这些技术创建高质量的用户界面。
45 2
|
2月前
|
Swift iOS开发 UED
如何使用Swift和UIKit在iOS应用中实现自定义按钮动画
本文通过一个具体案例,介绍如何使用Swift和UIKit在iOS应用中实现自定义按钮动画。当用户点击按钮时,按钮将从圆形变为椭圆形,颜色从蓝色渐变到绿色;释放按钮时,动画以相反方式恢复。通过UIView的动画方法和弹簧动画效果,实现平滑自然的过渡。
81 1
|
3月前
|
Swift iOS开发 UED
如何使用Swift和UIKit在iOS应用中实现自定义按钮动画
【10月更文挑战第18天】本文通过一个具体案例,介绍如何使用Swift和UIKit在iOS应用中实现自定义按钮动画。当用户按下按钮时,按钮将从圆形变为椭圆形并从蓝色渐变为绿色;释放按钮时,动画恢复原状。通过UIView的动画方法和弹簧动画效果,实现平滑自然的动画过渡。
69 5