iOS 脚本自动打包出来的ipa缺失archived-expanded-entitlements.xcent文件

我用脚本打包iOS项目,但是打出来的包中与xcode手动打包的包做文件对比,发现缺失了archived-expanded-entitlements.xcent文件,以下是我的编译和打包命令:

cd $projectTmpBase/ios
echo "clean start..."
 xcodebuild clean -configuration $configuration -target $targetStr
echo "clean end."
echo "compile start......"
xcodebuild -configuration $configuration -sdk $iphoneos -target $targetStr IPHONEOS_DEPLOYMENT_TARGET=$IPHONEOS_DEPLOYMENT_TARGET CODE_SIGN_IDENTITY="$CODESIGN_INDENTITY_NAME" PROVISIONING_PROFILE=$PROVISION_PROFILE_NAME
echo "compile end."

echo "xcodebuild archive start...."
xcodebuild archive -project "${ipaMain}.xcodeproj" -scheme $ipaMain -configuration $configuration -archivePath "${archivPath}" CODE_SIGN_IDENTITY="$CODESIGN_INDENTITY_NAME" PROVISIONING_PROFILE=$PROVISION_PROFILE_NAME
xcodebuild -exportArchive -archivePath "${archivPath}" -exportPath "${ipaPathWithResigned}" -exportFormat IPA -exportProvisioningProfile $PROVISION_PROFILE_NAME
echo "xcodebuild archive end...."

有人有遇到过吗,类似问题,缺失了这个文件,等于没有手机认证签名文件,手机是无法安装这个ipa包的

阅读 4.3k
1 个回答
新手上路,请多包涵

有解决方法吗?我也遇到这个问题了。

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题