【发布时间】:2015-08-01 13:05:27
【问题描述】:
我从https://stackoverflow.com/a/29335471/3628317 答案开始。一切都很好,但现在我更新了可可豆荚,看起来“豆荚安装”不会为项目生成所有依赖项。
我发现,我需要将“项目”更改为“pods_project”,但仍然无法正常工作。
我做错了什么\也许我错过了什么?
platform :ios, "8.0"
use_frameworks!
def shared_pods
pod 'AFNetworking'
end
target 'Asd', :exclusive => true do
shared_pods
end
target 'QuickAsd', :exclusive => true do
shared_pods
end
post_install do |installer_representation|
installer_representation.pods_project.targets.each do |target|
if target.name == "Pods-QuickAsd-AFNetworking"
target.build_configurations.each do |config|
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= ['$(inherited)', 'AF_APP_EXTENSIONS=1']
end
end
end
end
【问题讨论】:
标签: ios afnetworking cocoapods