CocoaPods has a Podspec for integrating Reveal into your Xcode project.
注意??: 不要將連接了 Reveal 庫(kù)的產(chǎn)品發(fā)布序芦。 如下所示都是使用編譯配置來(lái)隔離連接Reveal靜態(tài)庫(kù)和Debug配置。
以下的指導(dǎo)都是建立在你已經(jīng)配置好了你的工程和Workspace來(lái)使用CocoaPods俏讹。如果沒(méi)有請(qǐng)看我的其它相關(guān)文章。
修改Podfile
將下述代碼添加到Podfile中:
target 'YourMainAppTargetName' do
pod 'Reveal-SDK', :configurations => ['Debug'] // 截止2017/3/24適用
end
:configurations
參數(shù)確保 Reveal 僅在Debug 版本編譯.
安裝
在你的項(xiàng)目文件里運(yùn)行pod install (pod update)
更多CococoaPods 整合信息參考[官網(wǎng)](file:///private/var/folders/g5/95syhtgs6gq68qk3vm6qr_lm0000gn/T/AppTranslocation/9516E571-73D5-4683-A6D6-526A601BF54E/d/Reveal.app/Contents/SharedSupport/Documentation/Integrating%20Using%20CocoaPods.html)
[靜態(tài)連接整合官網(wǎng)指導(dǎo)](file:///Applications/Reveal.app/Contents/SharedSupport/Documentation/Integrating%20Reveal%20Static%20Linking.html)
[動(dòng)態(tài)連接整合官網(wǎng)指導(dǎo)](file:///Applications/Reveal.app/Contents/SharedSupport/Documentation/Integrating%20Reveal%20Static%20Linking.html)