我正在尝试使用一个使用使用Cocoapod库的类的Playground,但是将类的目标设置为框架时会出现错误。我正在使用三种Cocoapods:lib,AEXML和Alamofires。
设置目标:
没有目标集:
我还尝试将Podfile编辑为:
target 'Odoo_01' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
pod 'AlamofireXMLRPC', :git => 'https://github.com/kodlian/AlamofireXMLRPC.git'
pod 'AEXML'
pod 'SideMenu'
pod 'IQKeyboardManagerSwift'
# Pods for Odoo_01
target 'Odoo_01Tests' do
inherit! :search_paths
# Pods for testing
end
target 'MyPlaygroundFramework' do
pod 'AlamofireXMLRPC', :git => 'https://github.com/kodlian/AlamofireXMLRPC.git'
pod 'AEXML'
pod 'SideMenu'
pod 'IQKeyboardManagerSwift'
end
target 'Odoo_01UITests' do
inherit! :search_paths
# Pods for testing
end
end
但是这也不起作用。当我尝试时,代码会产生很多错误。