在类前添加属于自己的标识 工程里面的
class prefix
提交git的一些密令
1.查看本地索引 pod repo
2.添加本地索引 pod repo add xx(文件名) xxxgit厂库地址
3.添加代码 git add .
4.提交代码 git commit -m 提交描述
5.获取远程 git remote add origin xxx(远程代码仓库地址)
6.提交 git push origin master 或者 git push -u origin master(一般第一次提交用)
7.git tag 版本号/git tag -a 版本号 -m “version 版本号”
8.git tag 查看版本号是否提交成功
9.git push --tags
10.git持续集成,到Example 同级目录通过pod spec lint --allow-warnings 命令验证podspec索引文件
11.持续集成pod repo push xxx(本地索引库) xxx.podspec --verbose --allow-warnings 提交索引文件到远程索引库。
12.克隆项目到本地 git clone xxx git厂库地址
组件化
1.创建组件化 pod lib create xxx
2.在class文件夹中添加组件化类,第一次是pod install 后面的是 pod update
xcode
1.代码缩放 xcode -->preference -->textEditing -->Code folding勾选上
cocopods
1.版本查看 pod --version
2.更新 sudo gem update cocoapods
3.搜索某个库的版本需要先 pod repo remove truck 在pod search xxx
4.mac电脑M1芯片有的库导入不了问题,执行密令:arch -x86_64 pod install
5.pod install --verbose --no-repo-update 只安装新增的库,已经安装的库不更新
6.pod update 库名 --verbose --no-repo-update 只更新指定库名的第三个库,其他库不更新
Flutter版本编译
1.跑release版本配置, 项目 --> PROJECT -->Architectures --> Build Active Architecture Only下设置需要编译的版本为YES
2.或者查看PROJECT和TARGETS下的Valid Architectures 里的armv7去掉
3.Flutter 中json_serializable生成对应的xxx.g.dart文件的密令flutter packages pub run build_runner build xxx(文件名)。json数据生成对应类地址:(https://caijinglong.github.io/json2dart/index.html)
4.flutter packages pub run build_runner wacth 监控生成文件,如果有改动时自动生成/更新 .g.dart 文件
5.加载不出flutter代码,报flutter Dart Error: Can't load Kernel binary: Invalid kernel binary format v时可以在项目中执行flutter run --verbose密令
混编一些设置
设置Swift DEBUG打印
1.build settings
2.搜索'swift compiler'
3.找到 swift compiler - custom flags
4.在debug下增加一个 设置anySDK flag为 -D DEBUG
网友评论