Appcelerator sei 6.0.2 macOS error to compile - module

I have problem with macOS and last version of appcelelerator SDK 6.0.2. I use module (my library stay under directory app/lib), I used the instruction require for instance but when I call the method it show me this error
"undefined is not a function (evaluating
'Alloy.Globals.DatabaseRef.insertLastLogin(json.TipoLogin)')"
Anyone can help me about this error? It's a bug in new appcelerator version.. in version 5.5 I don't have this error.
Thanks for your support

Related

Android 12 crash latest react-native-track-player version

After updating app in android 12 and try to run app in android 12 device and simulator facing issue for crashing.
Here is issue.
androidx.media.session.MediaButtonReceiver: Targeting S+ (version 31 and above) requires that an explicit value for android:exported be defined when intent filters are present'
Resolve
With use of android:exported="true" fixed issue for run app but service not start once player on in app. so again crash app.
Please check the Github for React-Native-Track-Player.
There is a Beta version for use with Android 12.
Following this question, anyone was able to patch the package to make it work on Android 12? Using a non-final version seems more buggy than just adapting the stable one.

Is there some special environment for creating desktop app in react native

I was trying to make react native desktop app, I have never used it before its my first time experience and am facing errors I did tried to resolve them but couldnot, i did followed the instructions given on official website, error i am facing right now is:
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.Cpp.WindowsSDK.target
s(46,5): error MSB8036: The Windows SDK version 10.0.18362.0 was not found.
I installed the sdk but its not going and this is what i see on my terminal
Build failed with message Building Solution returned error code 1. Check your build configuration.
nailed it....!!!
I don't know why but the issue was with the target SDK version 10.0.18362.0...
I installed the latest version and now its working absolutely fine.....

How to use titanium inspector using titanium 5.2.2?

I am using Appcelerator titanium CLI to build ios app. I want to debug the app With Chrome DevTools but it seems like it's not compatible with the version which I have installed currently.
As per ti-inspector documentation, I have installed the node package by the below command.
npm install -g ti-inspector
So, When I tried this into my titanium project directory I am getting this response which is unexpected.
tn-inspector
Unexpected error: undefined
NOTE: titanium version - 5.2.2
Useful GitHub link: https://github.com/omorandi/TiInspector
Need help to understand or mitigate this issue. Thanks in advance!!!.
That repo is 5 years old and might not be compatible with the current SDK. You can use this instruction: https://docs.axway.com/bundle/Appcelerator_Studio_allOS_en/page/debugging_android_apps_with_3rd-party_tools.html to use the internal dev tools connection.

TransformError react native 0.7.1

when i build my react-native application using Xcode and launch it, the emulator shows the error red screen with the following message:
TransformError: /path/to/app/index.ios.js: /path/to/app/index.ios.js: Cannot read property 'line' of undefined]
message: 'TransformError: /path/to/app/index.ios.js: /path/to/app/index.ios.js: Cannot read property \'line\' of undefined',
I've built one application a month ago with react-native v 0.4.x and i've never had this message.
I've tried with node 0.12 and different versions of iojs
I'm using react-native v0.7.1 and xCode v6.4
The project is totally empty of any code wrote by me, i just:
$ react-native init reactNat (with react-native-cli v0.1.4)
I read that now react-native is directly integrated with babel and I suppose the problem came from that but with no more clues.
If anybody have an idea it would be very nice!
Thanks guys
You'll need to use node.js >= 4.0, as per the 'getting started' guide. You can use nvm to install multiple node versions on your system.

How to reslove "product-pkg-utility failed with exit code -1" error for release build

I am getting "Command failed with exit code -1" error when compiling iPhone App for Device - 3.0 | Release build.
I recently installed the iPhone OS 3.0 upgrade on my iMac for developing iPhone Apps in XCode. The App I've been developing started throwing errors when I would try and compile for 3.0 (previously worked in 2.2.1). I fixed all of the errors I could, but I am consistently getting the following error:
Command <com.apple.tools.product-pkg-utility> failed with exit code -1
Any time I try and compile for the device (even 2.2.1 now...)
It works fine in the simulator (building for both release and debug) but will not work for the device (for release or debug).
Any help will be much appreciated. Thanks!
So, it looks like this might be because I installed the "Snow Leopard" version of the 3.0 SDK instead of the "Leopard" version (I'm just a poor ignorant PC guy who has no idea which animal his OS is named after and just wishes the would call it "X.5" or "X.6" to simplify things).