我用脚本打包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包的
有解决方法吗?我也遇到这个问题了。