Results 1 to 4 of 4

Thread: Error encountered - native iOS packaging St 2.01 & SDK Beta 3

  1. #1
    Sencha User
    Join Date
    Jun 2009
    Posts
    419

    Default Error encountered - native iOS packaging St 2.01 & SDK Beta 3

    Hi,

    I just tried generating a native iOS build using the SDK Beta 3 tools as I have now upgraded my app to 2.0.1 RC.

    I am getting the following error:

    Code:
    C:\Sencha\Projects\PPTouch>sencha app build native
    [INFO] Deploying your application to C:\Sencha\Projects\PPTouch\build\package
    [INFO] Copied sdk/sencha-touch.js
    [INFO] Copied Lib/InfoBubble.js
    [INFO] Copied Lib/markerwithlabel.js
    [INFO] Copied Lib/markermanager.js
    [INFO] Copied Scripts/HistoryMarkerManager.js
    [INFO] Copied app.js
    [INFO] Copied resources/css/app.css
    [INFO] Copied resources/css/pptouch.css
    [INFO] Copied resources/images
    [INFO] Copied resources/icons
    [INFO] Copied resources/loading
    [INFO] Resolving your application dependencies (file:///C:/Sencha/Projects/PPTou
    ch/index.html)
    [INFO] Found 234 dependencies. Concatenating all into 'C:\Sencha\Projects\PPTouc
    h\build\package\app.js'
    [INFO] Processed sdk/sencha-touch.js
    [INFO] Minifying sdk/sencha-touch.js
    [INFO] Processed Lib/InfoBubble.js
    [INFO] Minifying Lib/InfoBubble.js
    [INFO] Processed Lib/markerwithlabel.js
    [INFO] Minifying Lib/markerwithlabel.js
    [INFO] Processed Lib/markermanager.js
    [INFO] Minifying Lib/markermanager.js
    [INFO] Processed Scripts/HistoryMarkerManager.js
    [INFO] Minifying Scripts/HistoryMarkerManager.js
    [INFO] Processed app.js
    [INFO] Minifying app.js
    [INFO] Minifying resources/css/app.css
    [INFO] Minifying resources/css/pptouch.css
    [INFO] Minified sdk/sencha-touch.js
    [INFO] Minified Lib/InfoBubble.js
    [INFO] Minified Lib/markerwithlabel.js
    [INFO] Minified Scripts/HistoryMarkerManager.js
    [INFO] Minified Lib/markermanager.js
    [INFO] Minified resources/css/pptouch.css
    [INFO] Minified app.js
    [INFO] Minified resources/css/app.css
    [INFO] Generated app.json
    [INFO] Embedded microloader into index.html
    [INFO] Packaging your application as a native app...
    [INFO] Can not open source file
    Error copying application entitlements file to C:\Sencha\Projects\PPTouch\build\nativeIOS\\Entitlements.entitlements
    Failed to package application
    [ERROR] Copy operation failed src=C:/Windows/stbuild/st-res/templates/\Entitlements.entitlements dst=C:\Sencha\Projects\PPTouch\build\nativeIOS\\Entitlements.entitlements
    
    C:\Sencha\Projects\PPTouch>
    Looking closer at that error, I see there is a double slash in the path its referencing, could this be the issue?

    Here is my packager.json:

    Code:
    {
        "applicationName":"Pinpointers",
        "applicationId":"pinpointers.websites.sbs",
        "bundleSeedId": "LB8P94MQ3G",
        "versionString":"1.0",
        "iconName":"resources/icons/Icon.png",
        "inputPath":".",
        "outputPath":"build/",
        "configuration":"Debug",
        "platform":"iOS",
        "deviceType":"Universal",
        "certificatePath":"ios_development.P12",
        "certificatePassword":"*******",
        "orientations": [
            "portrait",
            "landscapeLeft",
            "landscapeRight",
            "portraitUpsideDown"
        ]
    }
    This was building fine when I was using ST 2.0 and SDK Tools Beta 2.

    Any ideas?

  2. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,448

    Default

    Looks like your output path is within your input path which you shouldn't have.
    Mitchell Simoens @LikelyMitch

    Check out my GitHub:
    https://github.com/mitchellsimoens

    Posts are my own, not any current, past or future employer's.

  3. #3
    Sencha User
    Join Date
    Jun 2009
    Posts
    419

    Default

    Well thats interesting you should say that as it doesnt matter what I enter into the output path, it only outputs the builds as per whats defined in the app.json it seems.

    So here's my revised packager.json based on what you said:
    Code:
    {
        "applicationName":"Pinpointers",
        "applicationId":"pinpointers.websites.sbs",
        "bundleSeedId": "LB8P94MQ3G",
        "versionString":"1.0",
        "iconName":"resources/icons/Icon.png",
        "inputPath":".",
        "outputPath":"../xxxx",
        "configuration":"Debug",
        "platform":"iOS",
        "deviceType":"Universal",
        "certificatePath":"ios_development.P12",
        "certificatePassword":"sbsapp5",
        "orientations": [
            "portrait",
            "landscapeLeft",
            "landscapeRight",
            "portraitUpsideDown"
        ]
    }
    in my app.json, the buildPaths are like so.

    Code:
     /**
         * Default paths to build this application to for each environment
         */
        "buildPaths": {
            "testing": "../build/testing",
            "production": "../build/production",
            "package": "../build/package",
            "native": "../build/nativeIOS"
        },
    So when I build, I see a 'package' and 'nativeIOS' folder appear in a build folder up one level from the directory my packager.json file resides in.

    I still get the exact same error, so I'm a bit stuck now. Odd as this was working fine in SDK tools beta 2, wondering if I should roll back

  4. #4
    Sencha User
    Join Date
    Jun 2009
    Posts
    419

    Default

    Ok some further information, not sure how relevant it is...

    The error says:

    Code:
    [ERROR] Copy operation failed src=C:/Windows/stbuild/st-res/templates/\Entitlements.entitlements dst=C:\Sencha\Projects\build\nativeIOS\\Entitlements.entitlements
    When I look in C:/Windows/stbuild/st-res/templates/ I see there is no 'Entitlements.entitlements' file, so surely this explains why the copy operation fails and this error is thrown?

    In this path I see two folders:

    1) stbuild_template_dev.app - this contains Info.plist, PkgInfo, ResourceRules.plist and stbuild_template
    2) stbuild_template_sim.app - this contains Info.plist, PkgInfo and stbuild_template

    So is this an stbuild related issue?

    I am running Windows 7 64 bit in case this makes any difference. I have double checked I am running the latest build tools:

    Code:
    C:\Sencha\Projects\PPTouch>sencha
    Sencha Command v2.0.2
    Copyright (c) 2012 Sencha Inc.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •