Clang: error: linker command failed with exit code 1 (use -v to see invocation) Xcode 10, Xcode 10.1 Beta, Swift 4.2

Clang: error: linker command failed with exit code 1 (use -v to see invocation) Xcode 10, Xcode 10.1 Beta, Swift 4.2

项目运行良好,直到我在下面添加这些 Cocoapods:

platform :ios, '10.0'

target 'XXXXAPPNAME' do

use_frameworks!

pod 'KVNProgress'
pod 'OneSignal'
pod 'IQKeyboardManager'
pod 'AKMaskField'

end

pod安装结果:

Analyzing dependencies
Downloading dependencies
Installing AKMaskField (2.0.3)
Installing IQKeyboardManager (6.0.4)
Installing KVNProgress (2.3.1)
Installing OneSignal (2.8.5)
Generating Pods project
Integrating client project

[!] Please close any current Xcode sessions and use `APPNAME.xcworkspace` for this project from now on.
Sending stats
Pod installation complete! There are 4 dependencies from the Podfile and 4 total pods installed.

然后,当然,我 运行 带有 APPNAME.xcworkspace 文件的项目

但是报错:

ld: warning: directory not found for option '-F/Users/MYNAME/Library/Developer/Xcode/DerivedData/APPNAME-foktozccazlvmoexywpkabjotonf/Build/Products/Debug-iphonesimulator/AKMaskField'

ld: warning: directory not found for option '-F/Users/MYNAME/Library/Developer/Xcode/DerivedData/APPNAME-foktozccazlvmoexywpkabjotonf/Build/Products/Debug-iphonesimulator/IQKeyboardManager'

ld: warning: directory not found for option '-F/Users/MYNAME/Library/Developer/Xcode/DerivedData/APPNAME-foktozccazlvmoexywpkabjotonf/Build/Products/Debug-iphonesimulator/KVNProgress'

ld: framework not found AKMaskField

clang: error: linker command failed with exit code 1 (use -v to see invocation)

我用谷歌搜索了一下。我已在此处的 Whosebug 中阅读了关于同一主题的所有 questions/replies。但我找不到解决办法。我也删除了派生数据。它不起作用。

Swift 4.2 的库没有更新。此问题适用于 .podspec 文件中缺少版本属性 (s.swift_version = '4.2') 的任何库。此外 .swift-version 已弃用,因此还需要为任何 pod 删除它。现在,您可以打开问题,以便开发人员可以为 Swift 4.2 更新他们的库,或者您可以自己分叉并进行更改,然后指向您的回购。在 pods。最后一个选项是使用 Xcode 9.4.1 直到库不更新。