Skip to content

Help programmers to quickly create Swift project based framework

Notifications You must be signed in to change notification settings

ZuoLuFei/BaseFramework

Repository files navigation

项目初始化步骤

  1. 打开 .xcodeproj ,将PROJECT及TARGETS 的 Build Settings-> Swift Language Version 设置为 Swift 4
  2. pod init
  3. 在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'
  1. pod install
  2. 打开 .xcworkspace
  3. 将BaseFramework文件夹拖入项目
  4. 在PROJECT及TARGETS 的 Build Settings-> Objective-C Bridging Header 中 加入 实际项目$(SRCROOT)/$(PROJECT_NAME)/BaseFramework/BaseFramework-Bridging-Header.h
  5. 将PROJECT及TARGETS 的 Build Settings-> inhibit All Warning 设置为 true
  6. 参考BaseFramework Demo 在AppDelegate中初始化项目

About

Help programmers to quickly create Swift project based framework

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages