在我在下面添加这些 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 中关于同一主题的所有问题/回复。但我找不到解决方案。我也删除了派生数据。它不起作用。