摘要: 项目结构 多工程联编,主工程依赖多个子工程 问题 升级了Xcode13, Legacy 被禁用,只能使用New Build System 报错 发现是NPBaseKit子工程info.plist copy处理错误 改正 移除NPbaseKit子工程Copy Bundle Resources里的inf 阅读全文
posted @ 2021-09-26 10:55 liyongjie 阅读(288) 评论(0) 推荐(0) 编辑
摘要: 常见问题 0. 找不到指定版本的XXX [!] CocoaPods could not find compatible versions for pod “XXX”: 1. 找不到指定依赖 None of your spec sources contain a spec satisfying the 阅读全文
posted @ 2020-12-10 12:31 liyongjie 阅读(1067) 评论(0) 推荐(0) 编辑
摘要: 原本我是这样写的 // 滚动到指定位置 DispatchQueue.main.async { [weak self] in let indexPath = IndexPath(row: self!.currentNumber - 1, section: 0) self!.collectionView 阅读全文
posted @ 2020-11-03 12:20 liyongjie 阅读(403) 评论(0) 推荐(0) 编辑
摘要: 写了一个自定义的UIView,其中包含代理 <!--5f39ae17-8c62-4a45-bc43-b32064c9388a:W3siYmxvY2tJZCI6IjIwMTAtMTU3MTAzNjc3OTIyNiIsImJsb2NrVHlwZSI6ImltYWdlIiwic3R5bGVzIjp7ImJ 阅读全文
posted @ 2019-10-14 15:19 liyongjie 阅读(572) 评论(0) 推荐(0) 编辑
摘要: 升级了iOS 13,发现代码中使用presentViewController的都变成了这样的,顶部留了一部分 查看present样式,iOS 13 默认自动适配,需要在present的时候,设置style 阅读全文
posted @ 2019-10-11 19:34 liyongjie 阅读(2829) 评论(0) 推荐(0) 编辑
摘要: Assets.xcassets:-1: Failed to find a suitable device for the type IBSimDeviceTypeiPad2x 不知道assets发生了什么~~可能是我直接从另一个的项目拷贝进来的assets 方案一: 重启治百病 方案二: 1. ki 阅读全文
posted @ 2019-08-29 13:57 liyongjie 阅读(747) 评论(0) 推荐(0) 编辑
摘要: 问题 问题 ld: library not found for -lstdc++.6.0.9 clang: error: linker command failed with exit code 1 (use -v to see invocation) 官方解释 官方解释 Xcode更新后没有这个库 阅读全文
posted @ 2019-08-28 13:50 liyongjie 阅读(1487) 评论(0) 推荐(0) 编辑
摘要: AOP: 面向切面编程,偏向于处理业务的某个阶段 适用场景: 1. 参数校验:网络请求前的参数校验,返回数据的格式校验等等 2. 无痕埋点:统一处理埋点,降低代码耦合度 3. 页面统计:帮助统计页面访问量 4. 事务处理:拦截指定事件,添加触发事件 5. 异常处理:发生异常时使用面向切面的方式进行处 阅读全文
posted @ 2019-08-25 13:45 liyongjie 阅读(1247) 评论(0) 推荐(0) 编辑
摘要: 因为已经把文件编译到项目中,删除的话会出现找不到文件或文件夹的警告。 1选择工程, 编译的 (targets) 2选择 Build Settings 菜单 3查找 Library Search Paths 和 Framework Search Paths, 删掉编译报warning的路径即OK Li 阅读全文
posted @ 2016-11-23 16:36 liyongjie 阅读(1582) 评论(0) 推荐(0) 编辑
摘要: 1 安装brew—brew是Mac OS X 下的软件管理工具 ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" 2 安装nginx brew install nginx 阅读全文
posted @ 2016-11-12 17:01 liyongjie 阅读(420) 评论(0) 推荐(0) 编辑