08-10-2011 04:07 PM
I have followed the steps indicated in the definitive guide to Air app (mentioned in this forum).
In my opinion these steps were ok, I had for example the following output for the debug token:
blackberry-deploy -installDebugToken file.bar -device 192.168.66.131 -password mypassword
Info: Sending request: Install Debug Token
Info: Action: Install Debug Token
Info: File size: 2320
So it seems it's ok for the debug token.
Then I have installed the app:
blackberry-deploy -package file.bar -installApp -device 192.168.66.131 -password mypassword
Info: Sending request: Install
Info: Action: Install
Info: File size: 2320
Info: Installing ...
Info: Processing 2320 bytes
it seems ok too for me. But when I try to launch it fails:
blackberry-deploy -package file.bar -launchApp -device 192.168.66.131 -password mypassword
Info: Sending request: Launch
Info: Action: Launch
Info: Launching debug.token.gYABgFQjNgivrKdNwauBSByKQuM...
too bad !
I have no idea why this happened. I read once that there should not be any debug token on the simulator but I could not find the command to uninstall mine.
Moreover this debug token info should appear in the security tab in the simulator as shown in the definitive guide, but it doesnot. (despite the deploy info says it's ok).
Has anybody successfully installed an app on the simulator ? of course yes. I have reviewed the steps and could not find the reason it fails.
Are the debug token really needed ? do you see anything wrong with the above commands?
I can restart all the steps from scratch if needed , no problem. Any help appreciated!
ps: I'm running on OSX
Solved! Go to Solution.
08-11-2011 04:16 PM
so according to this thread there is no need of a debug token for the simulator.
now it seems odd to me that the author of the definitive guide took time to describe a step on how to create and install a debug token on a simulator but...
Since the command line says it's properly installed, should I see it immediately in the simulator ?
Sorry if these questions are silly.
08-15-2011 04:04 PM
it worked !
sorry for all these messages. I hope at least it helps someone. In order to start with the siimulator, just start with the helloworld app provided first.
blackberry-airpackager HelloWorld.bar -installApp -launchApp HelloWorld-app.xml HelloWorld.swf -device 192.168.66.131 -password mypassword
replace the device ip with yours , same for password.
so easy right ?! I did the same for my app and it also works!
the problem was the bar file. I dont know why some people mention to do all that bar signing process etc for the simulator.Only 2 commands are sufiicient.