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

网友投稿 309 2022-10-31


[!] 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 /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 > 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 /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 > 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.


版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:敏捷开发
下一篇:Java中内核线程理论及实例详解
相关文章

 发表评论

暂时没有评论,来抢沙发吧~