• #26 楼 @sanlengjingvv
    实时替换的,希望能帮到其他人
    sed -i "" "s/PROVISIONING_PROFILE = \".\";/PROVISIONING_PROFILE = \"${mobileprovision_uuid}\";/g" Project.xcodeproj/project.pbxproj
    sed -i "" "s/PROVISIONING_PROFILE_SPECIFIER = .
    ;/PROVISIONING_PROFILE_SPECIFIER = \"${mobileProvisionOutputName}\";/g" Project.xcodeproj/project.pbxproj
    sed -i "" "s/CODE_SIGN_IDENTITY = \".\";/CODE_SIGN_IDENTITY = \"${mobileCertificationOutputName}\";/g" Project.xcodeproj/project.pbxproj
    sed -i "" "s/\"CODE_SIGN_IDENTITY[sdk=iphoneos*]\" = \".
    \";/\"CODE_SIGN_IDENTITY[sdk=iphoneos*]\" = \"${mobileCertificationOutputName}\";/g" Project.xcodeproj/project.pbxproj