您需要定義吊艙,這將是共同所有的項目第一
# 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終於我的答案以任何方式解決您的問題? –