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