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

Disclaimer: This article is a blogger original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
This link: https://blog.csdn.net/jia12216/article/details/91415225

The reason the project is not set SWIFT_VERSION, is empty, and rely on third-party libraries used swift, if not down download download pods with a company network, we recommend using a computer connected directly to the phone wifi network (in the case of mobile phone traffic enough for you).
Solution: Settings Targets-> Build Settings-> Combined (All ) -> User-Defined-> SWIFT_VERSION, set to 4.0 and the like. If no SWIFT_VERSION User-Defined properties necessary in the following points "+" is added, the version number is provided.
Here Insert Picture Description

-> 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.

Guess you like

Origin blog.csdn.net/jia12216/article/details/91415225