I would like to ask a
question to mobile testing experts that while testing of an I Phone
Application, what are the basic steps would you follow?
While Testing of an I phone Application Basics steps that needs to be followed are:
1)First make a self signed certificate.
2) Download that file onto your desktop.
3) Open Terminal (applications > Utilities > Terminal).
4)In Terminal window, type "python ", then drag-n-drop "gen_entitlements.py" from desktop into terminal window
5)Hit space and type in following with quotes:
"program name" "program_name.xcent"
e.g. python /Users/your user/bin/gen_entitlements.py "program name" "program_name.xcent"
6)Hit Enter. Wait for a couple seconds and you should see file named "program name" on your desktop.
7) Open Text Edit (search > Text Edit) and paste following into opened window:
[export CODESIGN_ALLOCATE=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/codesign_allocate
if [ "${PLATFORM_NAME}" == "iphones" ]; then
python /Users/your user/bin/gen_entitlements.py "my. company.${PROJECT_NAME}" "${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}/${PROJECT_NAME}.xcent";
code sign -f -s "iPhone developer" --resource-rules "${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}/ResourceRules.plist" \
--entitlements "${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}/${PROJECT_NAME}.xcent" "${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}/"
fi ]
8)Save that file on desktop. Name it something like "device_debug_script.rtf".
9) Removing signature checks from Mobile Installation & Springboard.
10) Now Code time. Make sure you restart it if you had it started while doing previous steps
11) Open it and load some test project.
12) Project > New Build Phase > New Run Script Build Phase
13) At opened window, switch to first tab & paste into it everything you got in "device_debug_script.rtf" file from your desktop.
14) Close that window & click Build & Clean all targets.
15)On project window, on top left - select to debug on device & hit build and go. If app is started on device then you are done.
While Testing of an I phone Application Basics steps that needs to be followed are:
1)First make a self signed certificate.
2) Download that file onto your desktop.
3) Open Terminal (applications > Utilities > Terminal).
4)In Terminal window, type "python ", then drag-n-drop "gen_entitlements.py" from desktop into terminal window
5)Hit space and type in following with quotes:
"program name" "program_name.xcent"
e.g. python /Users/your user/bin/gen_entitlements.py "program name" "program_name.xcent"
6)Hit Enter. Wait for a couple seconds and you should see file named "program name" on your desktop.
7) Open Text Edit (search > Text Edit) and paste following into opened window:
[export CODESIGN_ALLOCATE=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/codesign_allocate
if [ "${PLATFORM_NAME}" == "iphones" ]; then
python /Users/your user/bin/gen_entitlements.py "my. company.${PROJECT_NAME}" "${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}/${PROJECT_NAME}.xcent";
code sign -f -s "iPhone developer" --resource-rules "${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}/ResourceRules.plist" \
--entitlements "${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}/${PROJECT_NAME}.xcent" "${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}/"
fi ]
8)Save that file on desktop. Name it something like "device_debug_script.rtf".
9) Removing signature checks from Mobile Installation & Springboard.
10) Now Code time. Make sure you restart it if you had it started while doing previous steps
11) Open it and load some test project.
12) Project > New Build Phase > New Run Script Build Phase
13) At opened window, switch to first tab & paste into it everything you got in "device_debug_script.rtf" file from your desktop.
14) Close that window & click Build & Clean all targets.
15)On project window, on top left - select to debug on device & hit build and go. If app is started on device then you are done.
No comments:
Post a Comment