Titanium appcelerator is capricious, - titanium

I face a big problem with titanium appcelerator, this morning i work as usual on my app dev, sundenly i am not able to run my project as this picture shows :
When i click on run i just have "Package" and iOs and android simulator are gone.
I tried rebooting the studio, my mac but nothing.
I use : Appcelerator Studio, build: 4.6.0.201605201934 and xcode Version 7.3.1 (7D1014)
Thanks for your help.

To steps you can try:
Did you try to run your project via CLI ?
Try to locate your sdk in Studio go to settings->platforms->set titanium sdk home (if it is already set, set it again)

Related

Expo-react-native :Couldn't adb reverse: device 'adb' not found

I am using react-native-expo for mobile app development.
I use an android emulator for the app, vscode editor for development.
It started showing me this error from few days.
› Opening on Android...
Couldn't adb reverse: device 'adb' not found
› Opening exp://10.0.46.81:19000 on Device adb
Couldn't start project on Android: Error running adb: device 'adb' not found
› Press ? │ show all commands
I tried wiping the emulator, tapping on the build number in the emulator, but nothing worked out.
I've deleted the virtual devices and created new one. It worked for one time and again this process isn't working.
there isn't much about this on the internet.
need help.
Just try this. It is work for me.
make sure you already add android sdk path in setting > appearance & behavior > system settings > android SDK > android SDK location
(Common path is C:\Users(name)\AppData\Local\Android\Sdk)
create new variable name and value in Environment Variables (User Variables)
(ANDROID_HOME C:\Users(name)\AppData\Local\Android\Sdk)
add new Path in Environment Variables (User Variables)
(C:\Users(name)\AppData\Local\Android\Sdk\platform-tools)
It is work for me after I have solved it for 3 hours.
At first, I don't face the problem like this in flutter but in react-native.
The fix for me was to install the SDK Platform for the android version used by the AVD.
In my case, I installed android v9 (Pie) via the AVD Manager when setting up my AVD for the first time, and when I looked into this issue I noticed that the SDK Platform for v9 was not installed as part of that setup.
The exact steps I took are as follows:
Disclaimer: You might not need to follow these steps exactly to resolve the issue
Close all CMD and IDE programs.
Open Android Studio and navigate to AVD Manager
Click the down arrow for the target AVD and click the Edit option
Set the device to Cold boot instead of Quick boot
Open SDK Manager, and download the SDK Platform for android version used by AVD
Go back to AVD Manager, click the Cold boot now option
Open a CMD terminal as administrator, CD to project repo, and run expo start
Launch expo in AVD
DONE
I had the same problem. Emulator started working after this:
Delete caches from Android Studio
Wipe data from your emulator
Cold boot to restart
When I was solving this problem I also ended up doing these:
Check Android studio updates
Reinstalled Android studio
Check SDK updates from SDK tools: SDK Manager -> Android SDK -> SDK tools. You can see if there is a new update available on the right.
Go to Virtual Device Manager -> Select your Device -> Actions -> Click "Drop down" button and select "Cold Boot Now".
This worked for me.
For my case, I went to the avd and simply clicked "wipe data", restarted both my avd and server and it worked
By my side the problem was is In Internet Connection. I just changed the WiFi and everything working fine.

iOS and Android Emulators for Visual Studio Code

I've installed the React Native Tools extension for Visual Studio Code. I thought this included the iOS and Android emulators for me to test my React Native app but when I run
React Native: run ios
I get an error that reads
Running the contributed command:'reactNative.runIos' failed.
Do I install these emulators separately?
iOS Simulator is distributed with Xcode. You can download it on developer.apple.com (accessible with a free AppleID) or from the Mac App Store.
It is only available on macOS, with Xcode 8+ requiring macOS El Capitan or newer.
If you want to get IOS Simulator in VS Code, install Xcode and open it, then go to Preference > Location and there you will see Command Line Tool. Just click the drop-down button and save something like Xcode 11(Version) and save it. Also, I recommend getting IOS and Andriod Simulator in VS Code.

Appcelerator/ Titanium Alloy - No Andriod SDKs were found under the specified SDK Location

I am running Appcelerator on OSX.
When I try to set up an emulator on the Appcelerator IDE, by clicking:
"Run Configurations..." >
"Appcekerator Android Emulator - appname" >
"Emulator"
On the bottom of the screen it shows up with an error message saying:
Problems detected with the SDK settings. Click here for details
Upon clicking for more details, it shows the error message:
An error was detected with the SDKs configuration
Reason:
[Android SDK Home] No Android SDKs were found under the specified SDK location
The value i have put for Android SDK home was:
/Users/username/Library/Android/sdk
How do I solve this issue?
Instead of using the Emulator which are slow and heavy in terms of Memory Usage, I would suggest you to use the GenyMotion for Android which is quite fast and easy to use and has close features to a physical device.
But First this First, setup the Android SDK for Appcelerator through Preference > Platform > Android and browse the Android SDK folder and Android NDK.
Note : This can be anywhere in the system folder.
You can download the GenyMotion Tool from the below link : https://www.genymotion.com/fun-zone/
Setting up the tool is quite simple and is given in the image itself.
Good Luck, Cheers
I had the same problem as above. I did move my Android SDK home out of '~/Library/' folder.
Previously it was:
'~/Library/android-sdk-macosx'
Then i moved it like:
'~/android-sdk-macosx/'
Most probably, the Library folder not visible to AppceleratorStudio. My guess.
Thanks a lot, guys.

Apache Cordova not Allowing me to run in visual studio

Every time i try to create a new app ( trying to look at cross platform apps) in visual studio I get this error:
I have installed the android SDK , is there something else I should be installing?
Thanks
It seems you installed the android SDK but didn't run it to install the platform tools and the SDK APIs.
Run the "android" command on your computer, it will start the android SDK manager.
Then you have to install The android SDK tools and android platform for at least SDK 19.
One quick way is to just click the install button on the bottom right of the window, it should install automatically the latest SDK tools and paltform tools.
If you're short on disk space I recommend you uncheck all that's not usefull if you only want to use Cordova and not plan to do native dev :
the samples
the system images (unless you want to use the emulator, in this case just install one, don't need all)
the documentations
This is simply telling you that the x86 emulator system image is missing. If you do not plan on using the Android Emulator or will only be using an ARM image, you can ignore this warning. We're working to ensure messaging is more nuanced in this area in the future.

How to run iOS .app package within Simulator?

Dev guys from other company, sent me iOS app package that is build with Xcode, but I don't have its Xcode project, just built app package file. How to run that on simulator or on iphone?
UDPATE: I'v tried Simulator launcher but the solution is not working when using Xcode 4.2.1.
UPDATE2: Also tried to use this solution but with no luck (getting black simulator screen and errors shown in terminal after launch). IMHO these problems might be related to iOS 5
UPDATE3: Also, unsuccessfully, tried to use this solution
normally you should be able to install it with itunes, a detailed step-by step guide can be found here: http://www.wikihow.com/Install-Ad-hoc-iPhone-OS-Apps
If it is built for device, you can install it to your device using iTunes or Xcode Organizer. However, you cannot run it on any device. They should also give you a provisioning profile for letting you install that app on your device.
Found the solution. I'v asked the guys to send me "ipa" package instead of raw .app package. Then added it to my iPhone device.