Installing Appcelerator Studio OS X El Capitan - ios

I've been using Appcelerator Studio a lot, never seen this problem before. I recently did a fresh installation of OS X, then installing Xcode (7.3.1) and Command Line Tools for Xcode 7.3.1.
When installing Appcelerator Studio (build: 4.5.0.201602170821) everything is going great, the CLI gets installed. When starting up Appcelerator Studio, I have to configure SDKs, hence I am only interested in iOS at the moment, I uncheck Android in the Platform Configuration. The following is that Configuring SDK encountered a problem:
An internal error occurred during: "Configuring SDK". java.lang.NullPointerException
I continuing, and go to Preferences>Studio>Platforms>iOS, where the iOS SDK home says Not specified, I click refresh - nothing happens.
I run xcode-select -p and the correct path to Xcode Developer folder is printed.
Anyone having a clue of solving this?
I've check all the version statuses, also tried to reinstall and deleting all information that can impact to this.

Share the directory hierarchy where you have stored Android SDK and Platform screen folder. Also try to follow the guidelines of Titanium to integrate iOS, but remember to clean the hidden folders in root directory of your OS X system.

I believe the problem might be with your Xcode. Are you having multiple Xcode's installed?
Use sudo xcode-select -switch <xcode_folder_path> switch between Xcode's.
Then,run appc ti info -t ios and check whether CLI is able to identify the selected Xcode. If your Xcode is listed here, then studio should be able to identify it.

Related

Unable to add apple device in Android studio

I want to try out the Kotlin Multiplatform Mobile (KMM) in Android studio. I have installed the Plugin and when I try to add configuration for IOS, nothing shows up. I just have an IOS option but nothing shows up when I click on it. The android device is already set up, so I was able to run it in Android.
I guess you are not running Android Studio on macOS. You must have macOS to compile through XCode and use Apple Simulators.
If you are running AS on macOS and you created the project with KMM plugin it's weird that you don't have the run configuration for iOS already set up, but you can try to click on the + button on the upper-left corner. Remember that you must have XCode (and Simulators) and command line tools installed on your machine.
If you are running AS on an OS different from macOS you can only compile the non native (not macOS or iOS) part of the library.
Had the same issue. What fixed it it for me was installing Xcode command line tools with xcode-select --install.
If that doesn't work, generally check the integrity of your Xcode setup.

iOS simulators not showing in Titanium Studio

I recently updated my xcode from version 7.3 to 9.0.1 now in titanium studio simulators are not showing up inside run option. In previous version they were working fine. Also i confirmed that my xcode path in Titanium studio is correct and it shows it as "Installed" when i run some app from run configuration option i get this error.
[ERROR] : Invalid "--device-id" value "iPhone"
Available iOS Simulators:
For help, run: titanium.js help build
Please share any clue to solve this issue.
Thanks
I had same issue.
Try this command in terminal.
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer/
Miro

Apache Cordova, Visual Studio 2015, Xcode 8.3 cannot remotebuild

It has been a year since I first build the app, and of course my iPhone software has updated since then. With that I was informed that I needed to update Xcode in order to get the right platform to get a release version for my cordova app updates. Updating xcode required me to update the OS to Sierra on the mac. After that, I have been unable to remotebuild even my debug version, which I had been able to do before.
My constant issue right now is that when I build the app in remote build it keeps adding "ios": "4.0.1" to the platforms.json file, but the error I receive is that with xcode 8.3 I need 4.3.0 or greater.
I cannot figure out how to update this value. I have upgraded npm, node, everything that I can think of. Nothing changes the value, and I can't seem to find anyone else with my problem.
Any help or suggestions would be welcome.
First, open up project platforms folder and delete ios folder. Then update cordova on your development machine and Mac.
For Mac : $ sudo npm install -g cordova
For Windows: npm install -g cordova
Just check whether your files getting deployed to the Mac build folder path. If so, open up the project using XCode.
Then build your project using XCODE. Most probably there will be an error to choose the development team. Once you select the account or the team fom dropdown list you can deploy the app without any issues.
That worked for me. Hope this will help you too.
Another way: Navigate to platforms folder -> platforms.json. Check the IOS version. Change it to 4.3.0 and delete the ios folder and add IOS 4.3.0 via command prompt.
packages.json
{
"android": "5.1.1",
"ios": "4.3.0"
}
in cmd Run
cordova platform add ios#4.3.0
Well, be ready for many actions to be done but in the end it works. )
Update your XCode to 8.3.3 without worry.
Then be sure to update your remotebuild to the latest version that is currently 2.1.3 by running sudo npm i remotebuild -g on your Mac.
Get back to your development machine with Visual Studio and run some command line utility in administrator mode. Open you cordova folder from there.
Execute cordova platform rm ios to remove the current ios version under cordova. It's also advised to remove the android one by cordova platform rm android.
Update the version of CLI you use for builidng on Visual Studio. Currently it's 7.0.1. There were people that claimed that 6.5.0 also works but in my setup 7.0.1 works as well.
Get back to your command line and run cordova platform add ios#4.4.0, This is the minimal cordova ios that supports the cordova 7.0.1.
In case you removed android as well then run cordova platform add android#6.0.0. There are more progressive versions of cordova android but I found them not working.
Now get back to your Mac and remove the following folder ~/.taco-remote/node_modules.
In case you don't see this .taco-remote folder it's the hidden one so run in command line of your Mac com.apple.Finder AppleShowAllFiles true and then killall Finder to close all instances of Finder. Afterwards .taco-remote folder should be visible under your user folder ~/.
Now go back to Visual Studio and open Tools > Options > Tools for Apache Cordova and run Clear Cordova cache.
Now run your ios and it should succeed.
In case you run afterwards your android build and it fails on something like Android platform already added run the Clear cordova cache again and then your android build also should succeed.
From this point both ios and android builds should work.
Whooof. )
Good luck!
BTW, most of this solution came from this thread.

Node.js Devices not found

I installed Appc studio on MBP with C2D, OSX 10.9.5, XCode 6.2, can't update to newest Sierra and XCode, because MBP is not longer supported.
I have problem, I don't see any iOS simulators/devices connected to MBP. I tried to uninstall, install, reinstall, downgrade and upgrade node.js and also TiSDK(6.0.2&5.1.1), but after
appc ti info -t ios
it throws error:
Cannot read property "devices" of undefined
When I open Xcode, I see my connected iPhone and iOS simulators.
Can please somebody help me?
Thank you
If from Xcode you can see al the devices and you can start them, the problem is probably that Appcelerator "lost" the path to Xcode.
Check with appc setup if it's everything right and have a look also at the platform iOS properties.

Titanium performs full rebuild after Titanium Studio 3.2

After I upgraded Titanium Studio to 3.2, whenever I build a project with SDK v. 3.2.0.GA the underlying XCode project is built from the start. This is a real pain as I have added external libraries on the XCode project and they get lost each time.
On previous versions, Studio was not doing a full rebuild so it was not even necessary to compile the project.All that was needed was to do changes, go to the emulator close the app and then reopen it.
Trying to install a pre-3.2 sdk version causes the following error Titanium SDK 3.2 [ERROR] : Invalid "--ios-version" value "7.0" 7.0.3
Could it be a flag or something else on the Studio preferences that I am missing?
Try to clean the project first (or just remove the "build" folder) and have the latest titanium cli (npm install -g titanium).
In case you have a custom Info.plist in your project try to build the proyect without it. If it works, then is something with it.

Resources