2010-11-18

用FLASH CS5製作iPad Apps的重要一步

0 留言

個多星期被這個問題困擾,都未能成功把第一個iPad appz 放上apple store......
睇了勁多FORUM都總是完成不了最後一步……

如果你都遇到以下兩句ERROR︰
/Users/kevs/Desktop/MyApp.xcent: unrecognized blob type (accepting blindly)
/Users/kevs/Desktop/MyApp.xcent: invalid length in entitlement blob

可以看看我剛POST了在ADOBE FORUM的以下步驟︰

After few night try..... finally I found out the solution and just successfully submit the iPad App!!!

The main problem was we used a wrong method to create that stupid MyApp.xcent file!!!!

I used many many method, use Mac text editor, Window notepad, Mac/ Window Dreamweaver as .xml......
but all facing the strange "invalid length in entitlement blob"

why invalid length?!?! so I try to search for what is .xcent..... finally I found the following webpage
http://www.246tnt.com/iPhone/

it's talk about codesign and entitlement files.
then..... I FOUND .xcent NOT ONLY A SAMLPE TEXT FILE!!!!!

in the middle of the link above, there are a highlighted simple script , which is a python script to help us generate a .xcent entitlement file!!!!!

Here is step by step solution:
1) just download the .py file here: simple script
2) put the .py file anywhere you like, or just simply put in the root of you mac
3) turn on the Terminal (in /Applications/Utilities), goto the folder where you put the .py
4) TYPE: python gen_entitlements.py 5C297XXXXX.com.yourdomain.MyApp myApp.xcent
Where 5C297XXXXX.com.yourdomain.MyApp is your AppID with BundleID, myApp.xcent is the file will be generate to you
5) Finally you can see the .xcent which make me nearly crazy for a week!!!!!!!!
6) Use this .xcent file to run that codesign script as the first post in this thread.
7) Congratulation the codesign changed and you can zip your app and upload it


第五點唔明?就看以下連結的第一個POST啦︰
http://forums.adobe.com/message/3282947#3282947