- 打开 .xcodeproj ,将PROJECT及TARGETS 的 Build Settings-> Swift Language Version 设置为 Swift 4
- pod init
- 在Podfile中将资源地址修改为:
source 'https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git’
并导入如下库
pod 'Moya/RxSwift',:inhibit_warnings => true
pod 'Then'
pod 'Kingfisher', '~> 4.9.0',:inhibit_warnings => true # 日志输出库 #图片加载
pod 'SwifterSwift'
pod 'SnapKit'
pod 'ObjectMapper'
pod 'SwiftyJSON'
pod 'RxSwift'
pod 'RxCocoa'
pod 'RxGesture'
pod 'Toaster',:inhibit_warnings => true # 日志输出库 # toast弹窗组件
pod 'SwiftyBeaver',:inhibit_warnings => true # 日志输出库
pod 'RTRootNavigationController'
pod 'MJRefresh',:inhibit_warnings => true
pod 'IQKeyboardManagerSwift'
pod 'Fusuma' # 相册库
pod 'RealmSwift'
- pod install
- 打开 .xcworkspace
- 将BaseFramework文件夹拖入项目
- 在PROJECT及TARGETS 的 Build Settings-> Objective-C Bridging Header 中 加入 实际项目$(SRCROOT)/$(PROJECT_NAME)/BaseFramework/BaseFramework-Bridging-Header.h
- 将PROJECT及TARGETS 的 Build Settings-> inhibit All Warning 设置为 true
- 参考BaseFramework Demo 在AppDelegate中初始化项目