Skip to main content
February 19, 2013
Question

Packaging for iphone simulator

  • February 19, 2013
  • 1 reply
  • 1360 views

Hi guys,

I'm learning how to use air packager for an Iphone project, it's all rolling fine, I only have issue when I try packaging for iphone simulator. here is my sh file

PACK_PATH="packager-directory"

APP_PATH="${PACK_PATH}/application"

KEYS_PATH="${PACK_PATH}/keys"

DEPLOY_PATH="${PACK_PATH}/deploy"

SDK_PATH="/Users/gillesboisson/Development/SDK/air_sdk_3.6"

# Apple packaging infos

PROVISION_PROFILE_FILE="gilles-iphone.mobileprovision"

CERTIFICATE_FILE="gillesboisson.p12"

CERTIFICATE_PASS="mypassword"

APP_ID="com.dotify.masomenos"

# project settings

PROJECT_NAME="Masomenos"

SWF_FILE="${PROJECT_NAME}.swf"

AIR_DESCRIPTOR_FILE="${PROJECT_NAME}-iphone.xml"

IPA_FILE="${PROJECT_NAME}-simulator.ipa"

IOS_SDL_DIR="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator"

IOS_SDK="6.0"

#cd "/"

${SDK_PATH}/bin/adt -package -target ipa-test-interpreter-simulator -storetype pkcs12 -keystore "${KEYS_PATH}/${CERTIFICATE_FILE}" -storepass ${CERTIFICATE_PASS} "${DEPLOY_PATH}/${IPA_FILE}" "${APP_PATH}/${AIR_DESCRIPTOR_FILE}" "${IOS_SDL_DIR}${IOS_SDK}.sdk" asset -platformsdk /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk

My settings are ok for any other targets, When I try targeting simulator I have this error : File /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.0.sdk/Applications/AdSheet.app/aan_frame_bottom_left.png is not relative to directory /Users/gillesboisson/Documents/www/dotify/masomenos.

I also tried by adding cd / before packaging and using absolute path, in that case java start but nothing appends.

If someone already had this issue, any help would be great.

This topic has been closed for replies.

1 reply

February 19, 2013

I guess you missed something in pasting the command. I don't see the swf path being mentioned here.

You don't need to use a cd / before packaging and when specifying the swf path, you should use -C <swf directory> <name of swf>

eg. something like the following should work:

${SDK_PATH}/bin/adt -package -target ipa-test-interpreter-simulator -storetype pkcs12 -keystore "${KEYS_PATH}/${CERTIFICATE_FILE}" -storepass ${CERTIFICATE_PASS} "${DEPLOY_PATH}/${IPA_FILE}" "${APP_PATH}/${AIR_DESCRIPTOR_FILE}"   -C "${APP_PATH}" $(SWF_FILE)  asset  -platformsdk "${IOS_SDL_DIR}${IOS_SDK}.sdk"

Also, remember that the path of the asset folder being used here will become "${APP_PATH)/asset"

So, if your asset folder is somewhere else, you will need to use a -C again.

February 19, 2013

Oh I didn't know about -C.

Thanks

February 19, 2013

I have another question, when I have to put my Default.png image then, because I dropped in the application folder and I still have the black screen. 

Thanks