PDA

View Full Version : Sencha Command - error copying Entitlements file



parky128
1 Oct 2012, 8:47 AM
I am trying to build my ST2.0.1 app using Sencha Command v2.0.2, but I get an error like so:


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 Lib/InfoBubble.js
[INFO] Minified Lib/markerwithlabel.js
[INFO] Minified Scripts/HistoryMarkerManager.js
[INFO] Minified sdk/sencha-touch.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\build\nativeIO
SDevelopment\\Entitlements.entitlements
Failed to package application
[ERROR] Copy operation failed src=C:/Windows/stbuild/st-res/templates/\Entitleme
nts.entitlements dst=C:\Sencha\Projects\build\nativeIOSDevelopment\\Entitlements
.entitlements


The entitlements file it is trying to copy doesnt even exist in the source directory (C:/Windows/stbuild/st-res/templates/) on my machine. In this directory are two other folders:

stbuild_template_dev.app
stbuild_template_sim.app

Within these folders are other files such as the plist ones which I have seen before, but no entitlements file.

So what's happening here? Have I got an old version of Sencha Command (or ST Build) on my machine?

In case it's relevant, here is my packager.json:


{
"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":"XXXXX",
"certificateAlias":"Rob Parker",
"orientations": [
"portrait",
"landscapeLeft",
"landscapeRight",
"portraitUpsideDown"
]
}

jay@moduscreate.com
1 Oct 2012, 9:56 AM
Sencha Cmd only works with 2.1b3 and above.

You'll need to upgrade your version of touch!

jay@moduscreate.com
1 Oct 2012, 9:57 AM
Moved to the Sencha Cmd forums.

parky128
1 Oct 2012, 10:01 AM
But 2.0.1.1 is the latest open source version available.

What should I be using for packaging for a non beta version of ST?

parky128
1 Oct 2012, 10:04 AM
Also the docs for ST talk about using Sencha Command with guides as well, so what you have just said does not compute, unless I am missing something?

jay@moduscreate.com
1 Oct 2012, 10:48 AM
Download 2.1b3 here: http://www.sencha.com/forum/announcement.php?f=90&a=36

parky128
1 Oct 2012, 1:14 PM
Thanks, got it upgraded and using the new Command tool. Getting build errors to do with some custom class includes in my touch app, hopefully my new post in the ST forum will give me some answers.