iOS 多 Target CocoaPods 管理
1. iOS 多 Target CocoaPods 管理,直接来看例子
1 | platform :ios, "11.0" |
2. 判断在哪一个 Target,iOS Target 判断
Swift 设置
Build Settings 搜索 swift compiler 具体看图
使用
1 | #if MAINTARGET |
OC 设置
Build Settings 搜索 macros 具体看图
使用
1 | #ifdef TARGETMAIN |
- Post title:iOS 多 Target CocoaPods 管理
- Post author:xxxixxxx
- Create time:2020-11-28 00:00:00
- Post link:https://xxxixxx.github.io/2020/11/28/500-iOS-多-Target-CocoaPods-管理/
- Copyright Notice:All articles in this blog are licensed under BY-NC-SA unless stating additionally.
Comments