1:切换分支
AS切换分支,flutter clean / flutter pub get
2:进入Xcode 查看已经切换为目标分支
3:进入命令行xx ~ % cd /Users/xx/Desktop/project/xx/proName/ios
执行flutter clean / flutter pub get 最后执行pod install

4:

正常编译,选择Use -->release
4:

点击右侧Distribute App

最后弹框后点击down
5:查看testFlight


================================================================
遇到xcode build失败提示flutter无法写入权限问题,解决办法关闭沙箱

添加testflight备注:
1:选中内部测试
2:选择构建版本
3:添加备注
4:存储
正式版打包切换环境release

遇到的问题
1:Provisioning profile "dev_profile" doesn't include the currently selected device "无聊的吃豆豆" (identifier 00008110-000A05DC14B9801E).
解决:
选择自动签名


解决:
删除文件夹和lock文件

重新pod install (会比较慢,耐心等待)
============================================
mac修改环境变量
- 确认当前 Shell 类型
echo $SHELL
- 编辑配置文件
打开对应配置文件(以 zsh 为例):
nano ~/.zshrc
3:Vim/Vi 编辑器
保存并退出:
按 Esc进入命令模式 → 输入 :wq或 :x→ 回车确认
4:立即生效 source ~/.zshrc
当pubspec.yaml的版本号修改后,直接使用pod install 在xcode中archive打包还是原有的版本,可以先在跟路径下执行:flutter build ios ,如果是fvm 管理则执行 fvm flutter build ios,这时候会把yaml中的版本号重新更新到plist中去
或者在这里查看版本号:
