自己练习写的一款小软件,项目功能有:3Dtouch,数据库,runtime传值,聊天页面,本地推送,自定义启动页,指纹密码识别,iCloud储存,新闻缓存,直播测试,加速传感器测试,朋友圈,微博.
2017.11.03 添加微博,朋友圈,感谢YYkit,https://github.com/zhengwenming/WeChat
微博WebP报错:[-[YYImageDecoder _updateSourceWebP]: 1834] WebP is not available, check the documentation to see how to install WebP component: https://github.com/ibireme/YYImage#installation
解决方法:1.add Vendor/WebP.framework(static library) to your Xcode project. 2.点击 Build Settings ,然后在搜索框里输入‘macros’,在 Preprocessor Macros 的 Debug 后面会有 DEBUG=1,去掉
pod使用方法: 1.终端cd到项目 2.touch Podfile,创建Podfile文件 3.vim Podfile 4.按键盘上的英文'i'键 下面的"Podsfile" 0L, 0C将变成-- INSERT -- 5.输入以下文字,vim不支持鼠标.'NewHaipei'就是工程名字,NewHaipei.xcodeproj的名字,不是文件夹名字. target ‘NewHaipei’ do pod 'BAWKWebView', '~> 1.0.8' end 6.先按左上角的esc键,再按shift+;键,再输入wq,点击回车,就保存并退出去了 7.pod install
2017.11.13 添加OC和JS交互 使用https://github.com/BAHome
- [[self.circleSet lastObject] setState:state]报错 在代码声明circleSet属性如下:@property (nonatomic, strong) NSMutableArray *circleSet; circleSet数组元素是PCCircle类,上边方法直接拿数组元素(没有实例化实例)调用实例方法。
解决方法:将circleSet属性声明为泛型方式如下:@property (nonatomic, strong) NSMutableArray <PCCircle*>*circleSet;
再一次验证了xcode10的严谨性
2.xcode10不允许同名文件存在;框架里的重名文件,xcode10之前一直没问题,说明xcode10比xcode9要严谨;不同的框架都存在info.plist;
解决方法:忽略重读文件xcode--file--Workspace Settings--Build System--legacy Build System