1. #1
    Sencha Premium Member
    Join Date
    Feb 2012
    Posts
    108
    Vote Rating
    1
    Answers
    4
    paulh1971 is on a distinguished road

      0  

    Default Unanswered: 2 different iOS packaging options

    Unanswered: 2 different iOS packaging options


    Hello, I am confused about the 2 different iOS packaging options.
    1. You can run 'sencha app build native'.
    2. Then there is 'sencha package build packager.json'.
    With the first one their is a link on its page to go to the second one's page for more details on the Native Package guide.

    When running the second one, it creates the .app folder, and in the webapp folder is the webapp, but it is not minimized. It still has all of the same files and folders. The icon it creates is empty, so I have to replace it with the actual icon. I get all of this loaded in Xcode, and it creates the app on my device, but I just get a black screen.

    When running the first one, it creates the .app folder, and in the webapp folder is the webapp and it is minimized as expected. The icon it creates is empty, so I have to replace it with the actual icon. I get all of this loaded in Xcode, and creates the app on my device and it works as expected.

    So my questions are, why are there the two different options and why does the sencha package one not work, and should the app icon be created correctly, or is it common for it to come out blank and you have to replace it with the actual icon?

    Thanks,
    Paul Hochhalter

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,533
    Vote Rating
    871
    Answers
    3565
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    They really try to do the same thing but I would suggest using sencha app build native
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha Premium Member
    Join Date
    Feb 2012
    Posts
    108
    Vote Rating
    1
    Answers
    4
    paulh1971 is on a distinguished road

      0  

    Default


    Thanks again Mitchell for your response.

    Yeah, I think 'sencha app build native' works much better.

    I do have a few questions regarding it:
    1. When you run this build it creates a 'native' folder and a 'package' folder. Why does it create the package folder. From what I can tell it is not needed. Does it have any type of purpose?
    2. In my app.js, I have my two startup up image set, my four different icons set, and my glossOnIcon set to false. When I do the build it puts my four icons and my two startup images in the root of the webapp folder, which does not seem to do anything, because outside the webapp folder is an he icon that is created it blank, so I have to replace it with the actual icon. When I import it all into Xcode to test, the icon has the gloss on it, and their is no startup image. I looked in Info.plist and their is no entries for my icons, the glossOnIcon, or for the startup image. If I create these entries in the Info.pst file and save it, then when I try to import it into Xcode, it tells me that my signature is invalid. How do I get around all of this so it works correctly?
    Thanks, Paul
    Paul

  4. #4
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,533
    Vote Rating
    871
    Answers
    3565
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    There are 4 options to build:

    sencha app build testing
    sencha app build production
    sencha app build package
    sencha app build native

    If you do a production build, it does a testing build and then minifies it (among other things). If you do a native build, it does a package build and then makes the native app from that package build. The package build is if you use PhoneGap it will create what you need to put it into a PhoneGap app. This is why you see the package directory because it runs the package build.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  5. #5
    Sencha Premium Member
    Join Date
    Feb 2012
    Posts
    108
    Vote Rating
    1
    Answers
    4
    paulh1971 is on a distinguished road

      0  

    Default


    Ah, that makes sense now. Thanks.

    What about item number 2 in my post?