Titanium modules importing error - titanium

i am new into Titanium appcelarator IDE and upon running a project after importing modules, i get the following error. I have attached screenshots of my project. any help would be greatly appreciated !
[WARN] : Could not find a valid Titanium module id=ti.paint version=latest platform=android deploy-type=development
[WARN] : Could not find a valid Titanium module id=com.rkam.swiperefreshlayout version=latest platform=android deploy-type=development
[WARN] : Could not find a valid Titanium module id=ti.inappbilling version=latest platform=android deploy-type=development
[WARN] : Could not find a valid Titanium module id=com.cameraandroid version=latest platform=android deploy-type=development
[ERROR] : Could not find all required Titanium Modules:
[ERROR] : id: ti.paint version: latest platform: android deploy-type: development
[ERROR] : id: com.rkam.swiperefreshlayout version: latest platform: android deploy-type: development
[ERROR] : id: ti.inappbilling version: latest platform: android deploy-type: development
[ERROR] : id: com.cameraandroid version: latest platform: android deploy-type: development

The module must be in app/modules/android/ and app/modules/iphone

Take a look at Gittio, you can find modules and installing commands there. No need to do everything your self, just paste a command and hit enter. CLI will install it into the right folder straight away.

Related

ValidationError: "trackingID" is required

I'm trying to upgrade docusaurus to the latest version v2.3.1 but got the following errors when running yarn start
yarn start
yarn run v1.22.19
$ docusaurus start
[INFO] Starting the development server...
[ERROR] ValidationError: "trackingID" is required
[INFO] Docusaurus version: 2.3.1
Node version: v18.12.1
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Here is the config:
https://github.com/OpenAPITools/openapi-generator/blob/relesae-fix/website/docusaurus.config.js
Searched for the error message but got nothing related to trackingID in particular.

TypeError: Cannot read property 'getCurrentUserAsync' of undefined

I am trying to debug my react-native app using 'Debug in Exponent'
and I got this error where the packager is starting successfully but with the error in the console
Configurations are:
VSCODE Version: 1.35.1
React-Native VS Code extension version: 0.10.2
Node.js: 10.2.0
OS: Linux x64 4.4.0-154-generic
Expo: 2.21.1
I have tried upgrading and downgrading the vscode.
deleted the node_module and installed npm again.
I even cleared out all the settings and created the fresh launch.json in .vscode so far with no success
error in console is as follows
[Info] Making sure your project uses the correct dependencies for Expo. This may take a while...
Checking if this is Expo app......
[Info] Packager is already running.
[Info] Prewarming bundle cache. This may take a while ...
[Info] Building and running application.
[Error] TypeError: Cannot read property 'getCurrentUserAsync' of undefined
Same problem occurs with the configuration below :
VSCODE Version: 1.36.1
React-Native VS Code extension version: 0.10.2
Node.js: 10.15.1
OS: Win32 x64
Expo: 3.0.2
The temporary workaround is described here which worked for me..

Build Failed after importing ios module in Appcelerator App

I am creating FBAudienceNetwork.framework module for iOS in appcelerator then using it in mobile App but getting compilation error for app.
I have created a module in appcelerator studio, i have put the FBAudienceNetwork.framework in module inside ios/patform folder, the module built successfully.
Then i am importing that module in appcelerator project while compiling it shows an error.
I have also follow this link : https://docs.axway.com/bundle/Titanium_SDK_allOS_en/page/ios_module_64-bit_support.html
The command lists the required architectures.
xcrun lipo -info libcom.usp.fbaudience.a
Architectures in the fat file: libcom.usp.fbaudience.a are: armv7 i386 x86_64 arm64
Xcode Version : 10.1
Titanium SDK : 8.0.0.GA
var facebookAudienceNetwork = require('com.usp.fbaudiancenetwork');
[ERROR] : ** BUILD FAILED **
[ERROR] : The following build commands failed:
[ERROR] : Ld /Users/uspapps4/Documents/workspace2/fbAudienceNetworkDemo/build/iphone/build/Intermediates/fbAudienceNetworkDemo.build/Debug-iphoneos/fbAudienceNetworkDemo.build/Objects-normal/armv7/fbAudienceNetworkDemo normal armv7.

Could not find or load the Qt platform plugin "xcb" on Archlinux (Write! AppImage)

Trying to install the Write! AppImage on Arch Linux with qt5 installed, freetype2 2.9.1 and fontconfig 2:2.13.1+12+g5f5ec56-1
[levi#astize Write!]$ ./write
This application failed to start because it could not find or load the Qt platform plugin "xcb"
in "".
Available platform plugins are: xcb.
Reinstalling the application may fix this problem.
Aborted (core dumped)
While running with QT_DEBUG_PLUGINS=1
[levi#astize Write!]$ ./write
QFactoryLoader::QFactoryLoader() checking directory path "/tmp/.mount_unuY6s/usr/plugins/platforms" ...
QFactoryLoader::QFactoryLoader() looking at "/tmp/.mount_unuY6s/usr/plugins/platforms/libqxcb.so"
Found metadata in lib /tmp/.mount_unuY6s/usr/plugins/platforms/libqxcb.so, metadata=
{
"IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
"MetaData": {
"Keys": [
"xcb"
]
},
"className": "QXcbIntegrationPlugin",
"debug": false,
"version": 329989
}
Got keys from plugin meta data ("xcb")
QFactoryLoader::QFactoryLoader() checking directory path "/tmp/.mount_unuY6s/usr/bin/platforms" ...
Cannot load library /tmp/.mount_unuY6s/usr/plugins/platforms/libqxcb.so: (/usr/lib/libfontconfig.so.1: undefined symbol: FT_Done_MM_Var)
QLibraryPrivate::loadPlugin failed on "/tmp/.mount_unuY6s/usr/plugins/platforms/libqxcb.so" : "Cannot load library /tmp/.mount_unuY6s/usr/plugins/platforms/libqxcb.so: (/usr/lib/libfontconfig.so.1: undefined symbol: FT_Done_MM_Var)"
This application failed to start because it could not find or load the Qt platform plugin "xcb"
in "".
Available platform plugins are: xcb.
Reinstalling the application may fix this problem.
Aborted (core dumped)
Any help would be appreciated.
I was struggling with this error after compiling a c++ app in Qt and deploying it to a production machine. Here are some things I did to resolve the issue.
Install the Qt libs. Mine were installed in ~/Qt/5.9.8/gcc_64/lib/ on my dev machine. I simply copied this directory to the production machine.
Use ldd -v /path/to/your/app to find and resolve issues with missing libs.
Set environment vars:
LD_LIBRARY_PATH=~/Qt/5.9.8/gcc_64/lib/:/path/to/any/custom/libs/for/your/app
QT_PLUGIN_PATH=/usr/lib/x86_64-linux-gnu/qt5/plugins
I think the problem is related to this error:
/usr/lib/libfontconfig.so.1: undefined symbol: FT_Done_MM_Var
You should upgrade your fontconfig library. Try with version 2.13.

Appcelerator - ERROR Could not find all required Titanium Modules

Getting started with cloning a new Appcelerator project. I keep receiving this error. Many Appcelerator Google results are now archived and have not been able to access those Q/A.
I run the project via a Makefile that has:
all:
#${MAKE} clean
#${MAKE} compile
#${MAKE} run-sim
init:
...
#gittio install ti.airprint
#gittio install bencoding.blur
#gittio install de.marcelpociot.circularprogress
#${MAKE} all
After running make init. A long compilation process happens followed by the following
/Users/username/.nvm/versions/node/v0.12.7/bin/node /Users/username/.appcelerator/install/5.1.0/package/node_modules/appc-cli-titanium/node_modules/titanium/bin/titanium build --platform ios --plugin-paths /Users/username/.appcelerator/install/5.1.0/package/node_modules --config-file /var/folders/lj/c7hfzz254cd3lt2nxscv_wgw0000gn/T/build-1453310098056.json --log-level info --no-banner
[INFO] Found Titanium module id=bencoding.blur version=0.37 platform=iphone deploy-type=development path=/Users/username/Jester/cruisers-dealers/modules/iphone/bencoding.blur/0.37
[INFO] Found Titanium module id=de.marcelpociot.circularprogress version=1.1 platform=iphone deploy-type=development path=/Users/username/Jester/cruisers-dealers/modules/iphone/de.marcelpociot.circularprogress/1.1
[INFO] Found Titanium module id=ti.worker version=1.1.0 platform=iphone deploy-type=development path=/Users/username/Jester/cruisers-dealers/modules/iphone/ti.worker/1.1.0
[WARN] Could not find a valid Titanium module id=ti.airprint version=1.3.4 platform=iphone deploy-type=development
[INFO] Found Titanium module id=ti.cloud version=3.2.9 platform=commonjs deploy-type=development path=/Users/username/Library/Application Support/Titanium/modules/commonjs/ti.cloud/3.2.9
[ERROR] Could not find all required Titanium Modules:
[ERROR] id: ti.airprint version: 1.3.4 platform: iphone deploy-type: development
2016-01-20T17:15:02.058Z | ERROR | ti run exited with error code 1
make[2]: *** [run-sim] Error 1
make[1]: *** [all] Error 2
make: *** [init] Error 2
Update:
<modules>
<module platform="iphone" version="0.37">bencoding.blur</module>
<module platform="iphone" version="1.1">de.marcelpociot.circularprogress</module>
<module version="1.1.0" platform="iphone">ti.worker</module>
<module version="1.3.4" platform="iphone">ti.airprint</module>
<module platform="commonjs">ti.cloud</module>
</modules>
Update 2: After changing version on tiapp.xml to match that of the directory.
[Error: Module version mismatch. Expected 14, got 46.]
[ERROR] socket hang up
2016-01-20T18:16:24.368Z | ERROR | ti run exited with error code 100
make[2]: *** [run-sim] Error 1
make[1]: *** [all] Error 2
make: *** [init] Error 2
Changing the version number in tiapp.xml
<module version="1.3.4" platform="iphone">ti.airprint</module>
to match the projectname/modules/iphone/ti.airprint/1.4.3 did it for me. So this
<module version="1.3.4" platform="iphone">ti.airprint</module>
did it. I received other errors after doing this, but that is beyond this question.
You wrote 1.3.4 instead of 1.4.3, which is the correct version number.
1.3.4 is not existing in the releases: https://github.com/appcelerator-modules/ti.airprint/releases
The last error you see ([Error: Module version mismatch. Expected 14, got 46.]) happens when you've changed your NodeJS version. An Node (NPM) Module that uses native extensions will need to be rebuild if the NodeJS version has a different API then the previous. If you use ti then re-install that via NPM. If you use appc then do appc install 5.1.0 --force.
Appcelerator is working on detecting this and rebuilding for you.
I had compiled the module with a newer SDK than the one I was using in the project where I imported it. Appcelerator Studio pointed that out.