Hybrid View

  1. #1
    Sencha Premium Member
    Join Date
    Mar 2012
    Location
    Boise, Idaho
    Posts
    84
    Vote Rating
    13
    PhilMerrell will become famous soon enough

      0  

    Default Native Packaging for iOS

    Native Packaging for iOS


    First of all I want to say I'm very excited for the native packaging with Architect. I can't wait to simplify my workflow and take phonegap/xcode out of the equation.

    However, I'm having hard time packaging. I set up a new Touch 2.1 project in Architect (2.1.0.676). I have also successfully configured CMD 3.0.0.250 outlined in the "Publishing, Packaging, and Simulating a Project".

    I have also set up my packager.json settings file—taking special care to ensure the settings are accurate as outlined in the "Native Packaging for iOS and Android".

    That being said, I'm receiving the following errors in Terminal:

    Sencha Cmd v3.0.0.250
    [ERR]
    ../build///ClassroomVideo.app: object file format unrecognized, invalid, or unsuitable
    The application was successfully packaged

    Failed to execute system command while signing application with error 256

    Failed to package application

    stbuild exited with non-zero code : 6
    logout
    [Process completed]

    Does this mean anything to anyone? This does generate an app, but when I try to install it via iTunes, I get an error stating the app 'failed to install'.

    Thanks!

  2. #2
    Sencha Premium Member
    Join Date
    Mar 2012
    Location
    Boise, Idaho
    Posts
    84
    Vote Rating
    13
    PhilMerrell will become famous soon enough

      1  

    Default Success..

    Success..


    I Successfully packaged an iOS application today.

    I cannot verify what exactly made it work, but the two different factors were that I installed xcode "command line tool" in addition to deleting older versions of Sencha Command.

  3. #3
    Sencha User
    Join Date
    Apr 2012
    Posts
    82
    Vote Rating
    1
    markevans is on a distinguished road

      0  

    Default XCode command line tools.

    XCode command line tools.


    After a lot of running in circles (and I am admittedly not an expert), I got an iOS build to work for my sencha app. In case others see this, here's what I did:
    1. Updated to Sencha CMD and Sencha Touch 2.1. Made sure everything was working.
    2. Made sure my icon paths in the config file were relative to the app folder. Confusing as some paths are relative to the config file, but these for the icon files are relative to the app folder (e.g. "resources/icon/icon.png").
    3. Made sure the build config output path was not inside the input path.
    4. Made sure I was following the packaging instructions for 2.1 re: certificates, provisioning profile, build config, etc. (there are two versions of the docs.)
    5. Installed XCode command line tools from within XCode (XCode>Preferences>Downloads)
    Would be nice if at least the XCode command line tools requirement was mentioned somewhere (unless I missed it.)

  4. #4
    Sencha User
    Join Date
    Jan 2012
    Posts
    21
    Vote Rating
    1
    Souri is on a distinguished road

      0  

    Default


    I was hitting that "object file format unrecognized, invalid, or unsuitable" error when trying to build my app via Architect, and thankfully this thread solved the issue.

    Installing the XCode command line tools as mentioned above fixed it and I'm successfully able to build my app now. As was mentioned by the previous poster, I too didn't find any mention anywhere that you needed to have this add-on installed in XCode.

  5. #5
    Sencha User
    Join Date
    Oct 2012
    Posts
    18
    Vote Rating
    0
    JohnM_ is on a distinguished road

      0  

    Default


    I had the same issue when attempting to build for sencha touch, and installation of Xcode tools seems to have fixed the problem for me as well. Now I'm getting "Executable was signed with invalid entitlements" in the xcode organizer but that's a different problem. At least the build appears to work.

Thread Participants: 3