Building ExtJS 4 Application That Uses ExtDirect

What is the preferred way to make a production build an ExtJS 4 app that uses Ext.Direct?

When I run the sencha create jsb command, it keeps telling me it can't find variable X. X is a part of my store CRUD calls back to the server. I copied the DirectApi json generated by the server and included it in in my index.html but it's not being recognized.