1、我重新上传了 SDK到目标网站,pod update 或者 pod install --repo-update 却一直未能更新最新的下来,解决方法如下:
//清除缓存
# pod cache clean --all
//移出本地 pod文件依赖
# pod deintegrate
//重新安装
# pod install
执行完成后 最新的pod 文件就被拉下来了!
-------------------------------
2、为了方便我们区分当前版本 和 过去编译的版本,我们可以加上编译时间
NSLog(@"buildTime: %s %s ", __DATE__, __TIME__);
-------------------------------
3、为了方便我们Debug 和Release 分别加载不同的pod 库,我们的Profile可以这么配置:
source 'http://gitlab.xxxxxxxx.xxxx/xxx.git'
platform :ios, '9.0'
workspace 'Test.xcworkspace'
target 'Test' do
pod 'MySDK, :configuration => ['Release']
pod 'MySDK-Debug', :configuration => ['Debug']
end
这样,在Debug时,加载的是MySDK-Debug,Release 加载的是MySDK