本文介绍了cocoapods同步:ld:找不到框架DATAFilter,链接器命令失败,退出代码为1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试获取同步()在我的 em Xcode iOS Swift项目中工作。我对框架依赖有过迦太基的经验,所以这是我的cocoapods首映。
I am trying to get Sync (https://github.com/hyperoslo/Sync) to work in my 'em' Xcode iOS Swift project. I have experience with Carthage for framework dependency so it is my cocoapods premiere.
我的Podfile
use_frameworks!
target "em" do
pod 'Sync'
end
我的豆荚目录:
Michal-MBP:em kolisko$ v Pods
total 24
drwxr-xr-x 16 kolisko staff 544 14 čvc 10:27 ./
drwxr-xr-x 14 kolisko staff 476 14 čvc 09:21 ../
-rw-r--r--@ 1 kolisko staff 6148 14 čvc 10:27 .DS_Store
drwxr-xr-x 5 kolisko staff 170 14 čvc 09:20 DATAFilter/
drwxr-xr-x 5 kolisko staff 170 14 čvc 09:20 DATAObjectIDs/
drwxr-xr-x 5 kolisko staff 170 14 čvc 09:20 DATAStack/
drwxr-xr-x 2 kolisko staff 68 14 čvc 09:20 Headers/
drwxr-xr-x 2 kolisko staff 68 14 čvc 00:42 Local Podspecs/
-rw-r--r-- 1 kolisko staff 1262 14 čvc 09:21 Manifest.lock
drwxr-xr-x 5 kolisko staff 170 14 čvc 09:20 NSDictionary-ANDYSafeValue/
drwxr-xr-x 5 kolisko staff 170 14 čvc 09:20 NSEntityDescription-SYNCPrimaryKey/
drwxr-xr-x 5 kolisko staff 170 14 čvc 09:21 NSManagedObject-HYPPropertyMapper/
drwxr-xr-x 5 kolisko staff 170 14 čvc 09:21 NSString-HYPNetworking/
drwxr-xr-x 4 kolisko staff 136 14 čvc 09:21 Pods.xcodeproj/
drwxr-xr-x 5 kolisko staff 170 14 čvc 09:21 Sync/
drwxr-xr-x 11 kolisko staff 374 14 čvc 09:21 Target Support Files/
Michal-MBP:em kolisko$
Xcode 7.3.1构建错误输出
Xcode 7.3.1 build error output
ld: warning: directory not found for option '-F/Users/kolisko/Library/Developer/Xcode/DerivedData/em-btqhzuiyxahnvqeznjrrilcusqnm/Build/Products/Debug-iphonesimulator/DATAFilter'
ld: warning: directory not found for option '-F/Users/kolisko/Library/Developer/Xcode/DerivedData/em-btqhzuiyxahnvqeznjrrilcusqnm/Build/Products/Debug-iphonesimulator/DATAObjectIDs'
ld: warning: directory not found for option '-F/Users/kolisko/Library/Developer/Xcode/DerivedData/em-btqhzuiyxahnvqeznjrrilcusqnm/Build/Products/Debug-iphonesimulator/DATAStack'
ld: warning: directory not found for option '-F/Users/kolisko/Library/Developer/Xcode/DerivedData/em-btqhzuiyxahnvqeznjrrilcusqnm/Build/Products/Debug-iphonesimulator/NSDictionary-ANDYSafeValue'
ld: warning: directory not found for option '-F/Users/kolisko/Library/Developer/Xcode/DerivedData/em-btqhzuiyxahnvqeznjrrilcusqnm/Build/Products/Debug-iphonesimulator/NSEntityDescription-SYNCPrimaryKey'
ld: warning: directory not found for option '-F/Users/kolisko/Library/Developer/Xcode/DerivedData/em-btqhzuiyxahnvqeznjrrilcusqnm/Build/Products/Debug-iphonesimulator/NSManagedObject-HYPPropertyMapper'
ld: warning: directory not found for option '-F/Users/kolisko/Library/Developer/Xcode/DerivedData/em-btqhzuiyxahnvqeznjrrilcusqnm/Build/Products/Debug-iphonesimulator/NSString-HYPNetworking'
ld: warning: directory not found for option '-F/Users/kolisko/Library/Developer/Xcode/DerivedData/em-btqhzuiyxahnvqeznjrrilcusqnm/Build/Products/Debug-iphonesimulator/Sync'
ld: framework not found DATAFilter
clang: error: linker command failed with exit code 1 (use -v to see invocation)
我的问题是-是否需要以某种方式手动链接DATAFilter框架?
My question is - Is neccessary somehow manually link the DATAFilter framework?
推荐答案
已解决
有必要以
打开em。 xcworkspace
而不是
打开em。 xcodeproj
这篇关于cocoapods同步:ld:找不到框架DATAFilter,链接器命令失败,退出代码为1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!