iOS simulators not showing in Titanium Studio - ios

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

Related

Cannot install the flutter application for ios

I got and Error which says that "found "xcode 10.1, build version 10b61". xcode 10.2 or greater is required to develop for ios. flutter ", Tried everything, but cannot make it work.
Its working on the Xcode, but unfortunately Its not working in VS Code.
The latest Xcode version is 11.3. Please update the Xcode in your mac machine and open Xcode to complete the installation of all necessary components.
Fluter requires Xcode command-line tools. to setup command-line tool run following in your terminal:
$ sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
$ sudo xcodebuild -runFirstLaunch
Detailed reference can be found in Fluter iOS setup. Hope this helps.
I had the same problem, my macbook is late 2011 so I couldn't update to Mojave or Catalina which is required by xcode 10.2 and above.
for people like me reaching here, I just updated my mac to Catalina (the same 2011 model) using dosdude patcher located at macOS Catalina Patcher. it works like a charm, I installed the latest xcode and now all is fine.

Flutter : Not Connecting to IOS Simulator in Android Studio

I am following the Flutter Test Drive tutorial on the Flutter Docs. I installed XCode, cocoapods, ran pods setup etc.
However, in Android Studio, when I try to run IOS by clicking "Run IOS Simulator," it opens the simulator but fails to connect.
I also tried doing this from the terminal. Opened an IOS emulator and then ran flutter run in the app folder in terminal. I got an error No devices attached.
Please check whether you installed the latest version of Xcode.
After the installation, try to run the following command.
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
As other people have suggested, it happens when you update XCode. So, run the command in terminal suggested by Muhammed
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
Then, you probably have to run
flutter clean.
For it to run properly.
I ran into the same problem but unfortunately, #MUHAMMED IQBAL PA's solution didn't suffice.
Running these two commands, however, resolved the problem:
As pointed out by others:
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
:
sudo xcodebuild -runFirstLaunch
I fixed this problem by flowing these steps and refreshing the list of simulators
This error showed up after I updated my Xcode.
Open Terminal
Run the following command in Terminal
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
Enter your device's password.
Your IDE (Android Studio or IntelliJ) will detect the IOS Simulator as soon as you click return.
it happened to me when i have updated my Xcode, use this command to let Flutter recognize your Xcode again.
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
I have to use three steps:
running this two commands :
1)
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
2)
flutter clean
3)
I have to select on Android studio Ide - (on the simulator select button drop down left hand side of main.dart showing) I have to select "Open IOS emulator".
Then the simulator run. And the simulator was Auto select on the emulator selected section.
I have used Android Studio Bumble Bee and Xcode 13.
The summary is, I think, I have to open the simulator first, then its come to online with Android studio.
I came across this problem on my MacBook.
iOS toolchain - develop for iOS devices (Xcode 8.2.1)
✗ Flutter requires a minimum Xcode version of 9.0.0.
Download the latest version or update via the Mac App Store.
Xcode was not updated. That is why IOS simulators are not supported.
Also make sure that you have agreed to Xcode licenses via running the command,
sudo xcodebuild -license
I Fixed this issue like this:
Open simulator
Go to "Device" in menu
Click "Erase all content and settings"
which this will delete all content and settings of the simulator but the problem of hide in the android studio devices will be fix.
I had different issue why IOS simulator was not appearing in fresh installation - dart sdk was not configured. I've clicked run->run there it was showing that dart is not configured, I've added flutter/bin/cache/dart-sdk in config and after that iphone simulator has appeared. Of course I followed other steps:
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
sudo xcodebuild -runFirstLaunch

Unable to find any Xcode installations thats supports at least iOS 8.0

I haven't used my development tools for Appecelerator Titanium in a while (Studio and CLI). Now I try to run an existing app in the iOS simulator.
From studio I can not select the iOS simulators.
When I use the CLI and execute: appc run (platform iOS) i get this message:
Unable to find any Xcode installations thats supports at least iOS 8.0
I have Xcode version 9.0.1 installed.
How can i connect Xcode with Titanium again?
The path of the active XCode developer directory (xcode-select -p) is:
/Applications/Xcode.app/Contents/Developer
You're probably on an SDK older than 6.2. xcode 9 isn't supported by older SDK's for obvious reasons. You can either install xcode8 (downloadable from the apple website) or you can upgrade to Titanium SDK 6.2 or higher (6.3 came out, I recommend that)
For information regarding versioning (of everything related to Ti, check the compatibility matrix in the documentation)
Had the same problem today after installed Xcode 9.2, on side of Xcode 9.4.1 and Titanium SDK 7.2.0.GA. Same error message as in the title of this post. As suggested by Patrick De Marta, I've tried
appc run -p ios -T simulator -C x
after that, I could select a simulator and run the app.
Thanks!
What do you get when you execute "appc ti sdk list" from command line ?
I'm not sure if this is your case, but I had a similar problem and solved it by specifying the target simulator with the CLI build option -C
(appc ti info for the list of simulator names )
hope this helps

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.

Installing Appcelerator Studio OS X El Capitan

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.

Resources