I have developed a Blackberry Webworks Application, code signed it and deployed it on my playbook.
The problem is that, I have made some changes to my existing application, generated the sigtool.p12 file and when i try to complile it using
bbwp "MyReport.zip location" -gcsk myPassword -gp12 myPassword-buildId 2 -o "Output file locaiton"
Iam getting the following error
[INFO] Parsing command line options
[INFO] Parsing bbwp.properties
[INFO] Validating WebWorks archive
[INFO] Parsing config.xml
[INFO] Populating application source
[INFO] Compiling WebWorks application
[INFO] Packaging the bar file
[INFO] Bar packaging complete
[INFO] Starting signing tool
barsigner error: Server returned HTTP response code: 502 for URL: http://www.rim
.net/Websigner/servlet/RDK-Waterloo
[ERROR] Signing failed
RIM signing servers sometimes are down for maintenance or for another purpose. Try to sign your application later.
Related
I'm on the alpa testing stage of the application that I'm building. It's pure js, no alloy.
Everything runs fine when ran from the studio and I've used the IPA build by it to send it out to 2 other testers (iPhone 5c and 6 Plus). The 5c runs fine, however the 6 Plus keeps reporting that it get's the following error:
Couldn't find module: ui/common/MasterView for architecture: x86_64
That was kind of odd, given that the simulators and my physical devices (4S with 9.1 and 6 with 8.3) worked fined.
I was finally able to reproduce the issue by building for the simulator from the CLI with the following command. I also ran with debug level and saw the line below.
appc ti build --platform ios --sdk 5.1.1.GA --target simulator -V "MyDeveloperCertificate" -P DevelopmentiOSProvisioningProfile
[DEBUG] Loading: /Users/lmtzusr/Library/Developer/CoreSimulator/Devices/C5FDC6E8-16B3-400A-BE02-7395B73C5060/data/Containers/Bundle/Application/E20F949C-712E-4DCC-A6F1-77537C3CC85C/MyNew.app/ui/common/MasterView.js, Resource: ui/common/MasterView_js
Here is the output of the build command and also the output of info
Appcelerator Command-Line Interface, version 5.1.0
Copyright (c) 2014-2016, Appcelerator, Inc. All Rights Reserved.
2/6/2016, 10:18:14 PM
Operating System
Name = Mac OS X
Version = 10.10.5
Architecture = 64bit
# CPUs = 8
Memory = 34359738368
Node.js
Node.js Version = 4.2.2
npm Version = 2.14.7
Titanium CLI
CLI Version = 5.0.5
Titanium SDK
SDK Version = 5.1.1.GA
SDK Path = /Users/lmtzusr/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA
Target Platform = iphone
Command
/usr/local/bin/node /Users/lmtzusr/.appcelerator/install/5.1.0/package/node_modules/appc-cli-titanium/node_modules/titanium/bin/titanium build --platform ios --sdk 5.1.1.GA --target simulator -V MyDeveloperCertificate -P DevelopmentiOSProvisioningProfile --config-file /var/folders/1m/t5q8800n5hd4336871js49nm0000gn/T/build-1454793489011.json --log-level info --no-banner
[INFO] Found Titanium module id=dk.napp.drawer version=1.2.4 platform=iphone deploy-type=development path=/Users/lmtzusr/Projects/TitaniumWorkspace/classic_test_1/modules/iphone/dk.napp.drawer/1.2.4
[INFO] Found Titanium module id=analytics.google version=3.1.0 platform=iphone deploy-type=development path=/Users/lmtzusr/Projects/TitaniumWorkspace/classic_test_1/modules/iphone/analytics.google/3.1.0
[INFO] Deploy type: development
[INFO] Building for target: simulator
[INFO] Building using iOS SDK: 9.2
[INFO] Building for iOS Simulator: iPhone 6s Plus
[INFO] Building for device family: iphone
[INFO] Minimum iOS version: 7.1
[INFO] Debugging disabled
[INFO] Profiler disabled
[INFO] Set to copy files instead of symlinking
[INFO] Forcing rebuild: target changed since last build
[INFO] Was: device
[INFO] Now: simulator
[INFO] Initializing the build directory
[INFO] Creating Xcode project
[INFO] Creating Entitlements.plist
[INFO] Creating Info.plist
[INFO] Disabling ATS
[INFO] Creating main.m
[INFO] Creating Xcode config files
[INFO] Copying Titanium libraries
[INFO] Copying Titanium iOS files
[INFO] Creating debugger and profiler plists
[INFO] Analyzing Resources directory
[INFO] Analyzing platform files
[INFO] Analyzing module files
[INFO] Analyzing localized launch images
[INFO] Analyzing CommonJS modules
[INFO] Creating asset catalog
[INFO] Creating app icon set
[WARN] The default icon "DefaultIcon.png" contains an alpha channel and will be flattened against a white background
[WARN] You may create an image named "DefaultIcon-ios.png" that does not have an alpha channel in the root of your project
[WARN] It is highly recommended that the DefaultIcon.png be 1024x1024
[INFO] Missing 6 app icons, generating missing icons
[INFO] Resources/iphone/DefaultIcon-Small#2x.png - Used for iPhone, iPad - size: 58x58
[INFO] Resources/iphone/DefaultIcon-Small#3x.png - Used for iPhone - size: 87x87
[INFO] Resources/iphone/DefaultIcon-Small-40#2x.png - Used for iPhone, iPad - size: 80x80
[INFO] Resources/iphone/DefaultIcon-Small-40#3x.png - Used for iPhone - size: 120x120
[INFO] Resources/iphone/DefaultIcon-60#2x.png - Used for iPhone - size: 120x120
[INFO] Resources/iphone/DefaultIcon-60#3x.png - Used for iPhone - size: 180x180
[INFO] Creating launch image set
[INFO] App thinning disabled, skipping asset image sets
[INFO] Processing JavaScript files
[INFO] Writing app properties
[INFO] Writing i18n files
[INFO] Processing Titanium symbols
[INFO] Removing files
[INFO] Invoking xcodebuild
[INFO] Finished building the application in 54s 294ms
[INFO] Launching iOS Simulator
-- Start simulator log -------------------------------------------------------
[ERROR] Script Error Couldn't find module: ui/common/MasterView for architecture: x86_64
appc ti info -t ios
Appcelerator Command-Line Interface, version 5.1.0
Copyright (c) 2014-2016, Appcelerator, Inc. All Rights Reserved.
Xcode
7.2 (build 7C68) - Xcode default
Install Location = /Applications/Xcode.app/Contents/Developer
iOS SDKs = 9.2
iOS Simulators = 9.2
Watch SDKs = 2.1
Watch Simulators = 2.1
Supported by TiSDK 5.1.2.GA = yes
EULA Accepted = yes
Teams = redacted MyDeveloperCertificate - Individual (active)
= redacted MyOrgaCert - Company/Organization (active)
iOS Keychains
login.keychain = /Users/lmtzusr/Library/Keychains/login.keychain
System.keychain = /Library/Keychains/System.keychain
iOS Development Certificates
/Users/lmtzusr/Library/Keychains/login.keychain
MyDeveloperCertificate (redacted)
Not valid before = 5/18/2015 12:14 PM
Not valid after = 5/17/2016 12:14 PM
MyOrgaCert (redacted)
Not valid before = 1/17/2016 2:28 PM
Not valid after = 1/16/2017 2:28 PM
iOS Distribution Certificates
None
Apple WWDR Certificate
Apple WWDR = installed
Development iOS Provisioning Profiles
MainDev
UUID = redacted
App Prefix = redacted
App Id = com.domain.app
Date Created = 1/30/2016 9:16 PM
Date Expired = 1/29/2017 9:16 PM
Distribution iOS Provisioning Profiles
None
Ad Hoc iOS Provisioning Profiles
AdHocMain
UUID = redacted
App Prefix = redacted
App Id = com.domain.app
Date Created = 1/31/2016 6:11 PM
Date Expired = 5/1/2016 4:51 PM
iOS Simulators
9.2
iPad 2 (ipad)
UDID = D1AFF6C7-CB58-482B-B59D-FCAEB34F8924
Supports Watch Apps = no
..
..
iPhone 6s Plus (iphone)
UDID = C5FDC6E8-16B3-400A-BE02-7395B73C5060
Supports Watch Apps = yes
Connected iOS Devices
None
iOS Issues
! Unable to find any valid iOS distribution provisioning profiles.
This will prevent you from packaging apps for AppStore distribution.
You will need to login into http://appcelerator.com/ios-dist-certs with your Apple Download
account, then create, download, and install a profile.
! Unable to find any valid iOS production distribution certificates.
This will prevent you from packaging apps for distribution.
You will need to login into http://appcelerator.com/ios-dist-certs with your Apple Download
account, then create, download, and install a certificate.
The "flow" is so: app.js -> ui/handheld/ios/ApplicationWindow.js -> my stuff
If I move my ApplicationWindow.js into the expected location and change the name it works fine. Is there an undocumented feature that requires to have files named in specific ways (besides app.js).
Hopefully is just something odd and doesn't make a difference if I change my application in the way that it works (renaming the file and moving it).
Our release engineering is dictating that we cannot use SBT. We have to use ANT.
We need a proper list of jars that are required to compile a PlayFramework application. We are using Play 2.3.4 and (i think!) Scala 2.10 --- this was what got downloaded from activator-1.2.3.
Any thoughts on how to figure out minimum essential set of jars?
Right now, there is an issue with Controller class and iteratees... (i imagine these are in some scala jars)
Questions:
what do the jar numbering scheme on jars in user's ivy cache have two sets of numbers - for eg, play-java-2.3.4-2.10. Does this mean it's Play framework rev 2.3.4 compiled with scala 2.10 ?
is there a minimum list?
tl;dr activator stage and then grab the jars from target/universal/stage/lib.
Play Framework offers stage task that can prepare your application to be run in place:
This cleans and compiles your application, retrieves the required
dependencies and copies them to the target/universal/stage directory.
It also creates a bin/<start> script where <start> is the project’s
name. The script runs the Play server on Unix style systems and there
is also a corresponding bat file for Windows.
After you've executed the stage task, you grab the jars from target/universal/stage and you should be fine to go offline or...cough, cough...ant.
[jars-needed-play] $ stage
[info] Packaging /Users/jacek/sandbox/jars-needed-play/target/scala-2.11/jars-needed-play_2.11-1.0-SNAPSHOT-sources.jar ...
[info] Done packaging.
[info] Updating {file:/Users/jacek/sandbox/jars-needed-play/}root...
[info] Wrote /Users/jacek/sandbox/jars-needed-play/target/scala-2.11/jars-needed-play_2.11-1.0-SNAPSHOT.pom
[info] Resolving jline#jline;2.11 ...
[info] Done updating.
[info] Main Scala API documentation to /Users/jacek/sandbox/jars-needed-play/target/scala-2.11/api...
[info] Compiling 5 Scala sources and 1 Java source to /Users/jacek/sandbox/jars-needed-play/target/scala-2.11/classes...
[info] Packaging /Users/jacek/sandbox/jars-needed-play/target/jars-needed-play-1.0-SNAPSHOT-assets.jar ...
[info] Done packaging.
model contains 17 documentable templates
[info] Main Scala API documentation successful.
[info] Packaging /Users/jacek/sandbox/jars-needed-play/target/scala-2.11/jars-needed-play_2.11-1.0-SNAPSHOT-javadoc.jar ...
[info] Done packaging.
[info] Packaging /Users/jacek/sandbox/jars-needed-play/target/scala-2.11/jars-needed-play_2.11-1.0-SNAPSHOT.jar ...
[info] Done packaging.
[success] Total time: 4 s, completed Oct 1, 2014 9:09:29 AM
[jars-needed-play] $ eval "ls target/universal/stage/lib" !
ch.qos.logback.logback-classic-1.1.1.jar
ch.qos.logback.logback-core-1.1.1.jar
...
xerces.xercesImpl-2.11.0.jar
xml-apis.xml-apis-1.4.01.jar
[info] ans: Int = 0
I am developing the blackberry phonegap application. I have set all environment required to build the application. I am using command prompt to debug the application when i build the application it build successfully. But while loading the device it causing error as follows.
C:\bbtest>ant blackberry load-device
Buildfile: C:\bbtest\build.xml
blackberry:
load-device:
generate-cod-name:
[echo] Generated name: cordovaExample.cod
clean:
[delete] Deleting directory C:\bbtest\build
package-app:
[mkdir] Created dir: C:\bbtest\build\widget
[copy] Copying 24 files to C:\bbtest\build\widget
[zip] Building zip: C:\bbtest\build\cordovaExample.zip
load-device:
[exec] [INFO] Parsing command line options
[exec] [INFO] Parsing bbwp.properties
[exec] [INFO] Validating application archive
[exec] [INFO] Parsing config.xml
[exec] [INFO] Populating application source
[exec] [INFO] Compiling BlackBerry WebWorks applicatio
n
[exec] [INFO] Starting signing tool
[exec] [INFO] Signing complete
[exec] [INFO] Generating output files
[exec] [INFO] BlackBerry WebWorks application packagin
g complete
[exec] RIM Wireless Handheld Java Loader
[exec] Copyright 2001-2009 Research In Motion Limited
[exec] Connecting to device...debug: HRESULT error during Open: 80040154
[exec] Error: unable to open port
BUILD FAILED
C:\bbtest\build.xml:49: The following error occurred while executing this line:
C:\bbtest\blackberry.xml:53: exec returned: 3
Total time: 53 seconds
C:\bbtest>
Any Idea why this is happing any help would be appreciated.
Its hard to nail down the problem with that information but I suspect you have a problem with "target name" in your xml.
Make sure the load-device is correctly targeted in your blackberry.xml as shown.
<target name="load-device" depends="package-app">
<bbwp code-sign="true" />
<exec executable="${javaloader}" dir="." failonerror="true">
<arg value="-u" />
<arg value="-w${properties.blackberry.sim.password}" />
<arg value="load" />
<arg file="${build.dir}/StandardInstall/${cod.name}.cod" />
</exec>
</target>
Also make sure that your directories are properly set in project.properties.
blackberry.bbwp.dir=C:\\TheBlackBerryWebWorksSDK
blackberry.sim.dir=C:\\TheEclipseBlackBerry\\plugins\\net.rim.ejde.componentpack5.0.0_5.0.0.25\\components\\simulator
blackberry.mds.dir=C:\\TheBlackBerryWebWorksSDK\\mds
I think that you may not have BlackBerry Desktop Manager installed. You can download this from http://uk.blackberry.com/software/desktop/desktop-pc.html
This error is also thrown when using the incorrect deployment command.
In my case I tried to deploy my application to a BB10 device using ant blackberry load-device instead of ant qnx load-device.
Here's a snippet from the documentation:
BlackBerry 10 (QNX) - ant qnx load-device
BlackBerry PlayBook - ant playbook load-device
BlackBerry Smartphone (OS5-7) - ant blackberry load-device
See http://cordova.apache.org/docs/en/2.5.0/guide_getting-started_blackberry_index.md.html
When I try to run package ios on mac, I get the following:
[INFO] Forge tools running at version 3.3.5
[INFO] Update result: you already have the latest tools
[INFO] Configuration is unchanged: using existing templates
[INFO] Checking JavaScript files...
[INFO] JavaScript check complete
[INFO] Verifying your configuration settings...
[INFO] Configuration settings check complete
[INFO] Development build created. Use forge run to run your app.
[INFO] Forge tools running at version 3.3.5
[INFO] Checking JavaScript files...
[INFO] JavaScript check complete
[INFO] Verifying your configuration settings...
[INFO] Configuration settings check complete
[INFO] Starting package process for iOS
[INFO] Going to package: /Users/******************/device-ios.app
[INFO] Plist OK
[INFO] 1 Provisioned Device(s):
[INFO] ['c**************************b']
[ERROR] [Errno 18] Cross-device link
The settings are all filled up correctly on App config, local config, etc.
Here is debug output
........
in run
self._run_task(func_name, args, kw)
File "/Users/username/forge-workspace/compapp1/.template/generate_dynamic/build.py", line 293, in _run_task
self.tasks[func_name](self, *args, **kw)
File "/Users/username/forge-workspace/compapp1/.template/generate_dynamic/ios_tasks.py", line 568, in package_ios
certificate_password=certificate_password,
File "/Users/username/forge-workspace/compapp1/.template/generate_dynamic/ios_tasks.py", line 362, in create_ipa_from_app
self._create_entitlements_file(build, plist_dict, temp_file_path)
File "/Users/username/forge-workspace/compapp1/.template/generate_dynamic/ios_tasks.py", line 299, in _create_entitlements_file
_replace_in_file(temp_file_path, 'APP_ID', bundle_id)
File "/Users/username/forge-workspace/compapp1/.template/generate_dynamic/ios_tasks.py", line 294, in _replace_in_file
os.rename(tmp_file, filename)
OSError: [Errno 18] Cross-device link
Go to /Users/username/forge-workspace/compapp1/.template/generate_dynamic/ios_tasks.py line 294,
change this line:
os.rename(tmp_file, filename)
to this one:
shutil.move(tmp_file, filename)
Package again.
source
Are you using an external hard-drive? If so, it looks like we've been bitten by a limitation of Python here (http://docs.python.org/library/os.html#os.rename):
The operation may fail on some Unix flavors if src and dst are on different filesystems
In the short term, can you run your forge commands not on your external hard drive? We'll work on a fix for the underlying problem and report back here.
I encountered the same issue compiling iOS packages on Ubuntu. I have an encrypted home directory, which is likely the cause of the cross-filesystem issue.
Luckily I was able to work out an easy fix thanks to #Amir's great response.
From http://docs.python.org/dev/library/tempfile.html#tempfile.mkstemp
If dir is specified, the file will be created in that directory; otherwise, a default directory is used. The default directory is chosen from a platform-dependent list, but the user of the application can control the directory location by setting the TMPDIR, TEMP or TMP environment variables.
I simply moved the temp directory by starting Trigger with the following commands:
export TMPDIR="/home/me/tmp"
python /home/me/source/TriggerToolkit/run_trigger_toolkit.py
This is fixed in the v1.4.34 Trigger.io platform version - see http://docs.trigger.io/en/v1.4/release-notes.html#v1-4-34
I tried below command its work properly
C:\Documents and Settings\users>mvn -v
Apache Maven 3.0 (r1004208; 2010-10-04 17:20:56+0530)
Java version: 1.6.0_21
Java home: C:\Program Files\Java\jdk1.6.0_21\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows"
and once I tried to compile simple HelloWorld.java program. Its give me below error...
C:\my-app>mvn compile
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Quick Start Archetype 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading: repo1.maven.org/maven2/org/apache/maven/plugins/maven-resour
ces-plugin/2.4.3/maven-resources-plugin-2.4.3.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.454s
[INFO] Finished at: Thu Nov 18 13:08:50 IST 2010
[INFO] Final Memory: 1M/15M
[INFO] ------------------------------------------------------------------------
[ERROR] Plugin org.apache.maven.plugins:maven-resources-plugin:2.4.3 or one of i
ts dependencies could not be resolved: Could not transfer artifact org.apache.ma
ven.plugins:maven-resources-plugin:jar:2.4.3 from central (http://repo1.maven.or
g/maven2): Error transferring file: Connection refused: connect -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResoluti
onException
Please any one update me with proper solutions.
First, you really should format your questions better. Just cutting and pasting without any regard what it would look like when submitted doesn't help you in getting a quick and concise answer.
Second, what exactly is your question? You subject says one thing, but your text says another.
Now I'll take a stab at both your subject and your text.
As far as the subject is concerned, the settings.xml file is not automatically created by Maven. You have to create this and configure it the way you want. See this website for more info about the settings.xml.
As far as the text is concerned, looks like you do not have access to the Maven repo. This can because by a number things. The most obvious ones are:
The repository is not specified in the project's pom.xml file as described here.
The server you are running this on does not have access to http://repo1.maven.org/maven2/ due to firewall or internet connectivity reasons.
Double check that:
this was not an intermittent problem
you didn't get bad metadata (and clean up the entire ~/.m2/repository/org/apache/maven/plugins/maven-resources-plugin/)