0

在我在下面添加这些 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)

我已经用谷歌搜索过了。我已经阅读了 StackOverflow 中关于同一主题的所有问题/回复。但我找不到解决方案。我也删除了派生数据。它不起作用。

4

1 回答 1

1

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

于 2018-10-04T08:37:39.093 回答