您需要定义吊舱,这将是共同所有的项目第一
# Uncomment this line to define a global platform for your project
platform :ios, '8.2'
# Uncomment this line if you're using Swift
use_frameworks!
# Define main pods.
def main_pods
#your main pods
pod 'AwesomeCache', '~> 5.0'
pod 'DZNEmptyDataSet', '1.8.1'
end
# Your FirstProjectName.
target 'FirstProyectName' do
main_pods
#here you can add any other for this specific project
pod 'Branch'
end
# Your SecondProjectName.
target 'SecondProjectName' do
main_pods
#here you can add any other for this specific project
pod 'Alamofire'
pod 'Fabric'
pod 'Crashlitycs'
end
target 'FirstProjectTestName' do
end
target 'FirstProjectTestUIName' do
end
post_install do |installer|
puts("Update debug pod settings to speed up build time")
Dir.glob(File.join("Pods", "**", "Pods*{debug,Private}.xcconfig")).each do |file|
File.open(file, 'a') { |f| f.puts "\nDEBUG_INFORMATION_FORMAT = dwarf" }
end
end
end
希望这有助于
到目前为止好,但我的框架使用XCTest。我在我的podspec文件中添加了's.framework =“XCTest”'。现在演示应用程序编译,但它崩溃的错误:'dyld:Library未加载:@ rpath/XCTest.framework/XCTest'。任何想法为什么发生这种情况 – BadmintonCat
我不知道,我有一个自定义吊舱与这个吊舱计划工作没有问题的项目... –
@BadmintonCat终于我的答案以任何方式解决您的问题? –