ios - Automatic .ipa file, create using terminal script is showing error -
i using terminal build ios application. shows build successful, .ipa file not created.
here script:
#!/bin/bash # #cd "${projdir}" ws_dir="${ws_path}" cd $ws_dir/ api_token="${testflight_app_token}" team_token="${testflight_team_token}" project_name="${projectname}" created_path="${ipa_path}" file_path=$ws_dir/$created_path/$project_name.ipa code_sign_identity="${code_sign}" build_relese=$ws_dir/build/release-iphoneos/$project_name.app provisioning_profile_name="${provisioning_name}" library="~/library/mobiledevice/provisioning profiles" provisioning_profiles="$library/${provisioning_profile_name}.mobileprovision" zip_file=$ws_dir/$created_path/$project_name.app.dsym.zip #create directory store ipa file. #mkdir -p ~/library/mobiledevice/provisioning\ profiles/ mkdir -p $created_path cp "${provisioning_profiles}" "~/library/mobiledevice/provisioning profiles" xcodebuild -project $project_name.xcodeproj code_sign_identity="${code_sign_identity}" provisioning_profile="${provisioning_profile_name}" -target "${project_name}" -configuration release # create ipa file if build sccuessed. # change path build file , store .ipa file # replace provisioning profiles & sign /bin/rm "/tmp/${product_name}.ipa" /usr/bin/xcrun -sdk iphoneos packageapplication -v "${build_relese}" -o "${file_path}" --sign "${code_sign_identity}" --embed "${provisioning_profiles}" #zip dsym upload test flight zip -r $zip_file $build_relese.dsym #upload build file on testflight
output directory: '/users/sandeepsachan/documents/project/sampletestflighupload/_ipa/sampletestflighupload.ipa' temporary directory: '/var/folders/p7/4ds34y153w30y6p9dnm86mkw0000gn/t/ipf7pgvubk' (will not deleted on exit when verbose set)
Comments
Post a Comment