我安装了cocoapods,如下所示
Analyzing dependencies
Downloading dependencies
Using ISO8601DateFormatterValueTransformer (0.6.1)
Using RKValueTransformers (1.1.3)
Using RestKit (0.27.0)
Using SOCKit (1.1)
Using TransitionKit (2.2.1)
Generating Pods project
Integrating client project
Sending stats
Pod installation complete! There is 1 dependency from the Podfile and 5 total pods installed.
此外,我将'-ObjC'和'$(inherited)'放在'其他链接器标志'中,并且有
${PODS_ROOT}/Headers/Public/AFNetworking
${PODS_ROOT}/Headers/Public/Bolts
${PODS_ROOT}/Headers/Public/ISO8601DateFormatterValueTransformer
${PODS_ROOT}/Headers/Public/RKValueTransformers
${PODS_ROOT}/Headers/Public/RestKit
${PODS_ROOT}/Headers/Public/SOCKit
${PODS_ROOT}/Headers/Public
已经在“标题搜索路径”内部,所有非递归。每次我尝试运行该项目时,它都会让我'链接器命令失败,退出代码为1(使用-v查看调用)'。而且当我将它们更改为递归时,'链接器命令失败,退出代码1(使用-v查看调用)'发生。 podfile是
platform :ios, '10.2'
target 'Fpace' do
pod 'RestKit'
end
答案 0 :(得分:1)
您是打开Xcode 项目还是工作区?您必须始终使用CocoaPods based projects中的*.workspace
文件。
在您的具体情况下,应该是Fpace.workspace
捆绑包。