在项目目录下新建 build_ipa_and_publish_fir.sh 文件
rm -rf outputs
xcodebuild clean
xcodebuild -workspace <project_name>.xcworkspace -scheme "<scheme_name>" -sdk iphoneos archive -archivePath builds/archive
xcodebuild -exportArchive -archivePath builds/archive.xcarchive -exportPath outputs/<ipa_name>.ipa -exportOptionsPlist exportOptions.plist
fir publish outputs/<ipa_name>.ipa/<ipa_name>.ipa -T <fir_key>
因为我们的项目使用了Pod, 所以配置的是 workspace