Question
I'm trying to create a package for a simple HelloWorld Native application using the Tizen CLI, following the official documentation. However, when I run the tizen package command, I get the error: "Cannot provide a package function to this project."
The error log (tools/ide/ncli.log) shows:
2016-06-30 14:19:08,213 [TRACE] PackageCLI.java(745) - tizen-manifest.xml does not exist
2016-06-30 14:19:08,213 [TRACE] PackageCLI.java(746) - The entered path : /home/denis/workspaceTZ/rototo
Environment:
- OS: Debian GNU/Linux 32bit
- Java: SE Runtime Environment (build 1.7.0_25-b15)
- The
tizen-manifest.xmlfile exists in the specified directory - Everything works fine when using the IDE (creation, build, signing, and packaging)
Answer
Problem Understanding
The issue occurs when trying to package a Tizen native application using the CLI. The error suggests the system cannot find the tizen-manifest.xml file, even though it exists in the project directory.
Solution Methods
-
Correct Path Specification:
- The packaging command must point to the Debug directory, not the project root:
tizen package --type tpk --sign MyTizen -- /home/denis/workspaceTZ/firstapp/Debug
- The packaging command must point to the Debug directory, not the project root:
-
Profile Configuration:
- Ensure your security profile is properly set:
tizen security-profiles add -n MyTizen -a ~/tizen-sdk-data/keystore/author/author.p12 -p mypassword tizen cli-config -g default.profiles.path=/home/denis/tizen-sdk-data/ide/keystore/profiles.xml
- Ensure your security profile is properly set:
-
Path Verification:
- Double-check that all paths in your commands are correct and that the manifest file exists in the expected location.
Code Examples
Complete workflow example:
# Create project
tizen create native-project -p wearable-2.3.1 -t basic-ui -n firstapp -- /home/denis/workspaceTZ
# Build
tizen build-native --rootstrap wearable-2.3.1-device.core --configuration Debug -- /home/denis/workspaceTZ/firstapp
# Create certificate
tizen certificate -a MyTizen -p mypassword -c FR -s Alsace -ct Colmar -o None -u Development -n "Your Name" -e name@domain.com
# Package (note the Debug directory)
tizen package --type tpk --sign MyTizen -- /home/denis/workspaceTZ/firstapp/Debug
Additional Tips
- Always verify the complete path to your project files
- Check the CLI logs (
tools/ide/ncli.log) for detailed error information - For commercial device deployment, ensure you're using the correct signing profile