下面是我自己写的一个 shell ,可以正常运行
第一行 cd 到工程目录下
#/bin/sh
cd ~/Documents/FengYunZhiBo_5.0_Branch
xcodebuild clean -configuration Release
xcodebuild -target FengYunZhiBo -sdk iphoneos build -configuration Release CODE_SIGN_IDENTITY="iPhone Distribution: ***** (********)"
xcrun -sdk iphoneos PackageApplication -v ./build/Release-iphoneos/FengYunZhiBo.app -o ~/Desktop/风云直播AdsV217Release/FengYunZhiBo.ipa --sign "iPhone Distribution: ***** (********)"
echo "done"
强调一点 "iPhone Distribution: ***** (********)" 这个 东西 是 你 对应的 发布 证书的 名字 ,为了 防止 输入错误,可以 从 钥匙串程序中找到 对应的 证书 把名字copy过来