I am using a windows machine. So I have installed MAC OS sierra using VMWare in the same machine.
I have developed a Ionic3 Angular4 application with Cordova.
I have successfully created the .apk file using the command "ionic cordova build/run android" in my Windows.
So now I want to generate .ipa file. So I just moved the entire project to my MAC OS box. Then installed cordova & Ionic.
Now I am trying to build using command "ionic cordova build/run ios"
But getting the below error
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer
directory '/Library/Developer/CommandLineTools' is a command line tools instance
So executed sudo xcode-select -s /Applications/Xcode.app/Contents/Developer.
But got error /Applications/Xcode.app/Contents/Developer” does not exist
How can overcome these errors and build my ios .ipa file?
Note: Xcode not installed manually. But installed the Xcode via Terminal (a popup opened and asked to install xcode. So clicked install button. Finally It showed Xcode installed successfully)
You will have to install xcode. See the cordova platform guide for iOS. And you will also need the xcode commandline-tools (which you already installed). If you want to run you application in a simulator you will also have to install ios-sim (sudo npm install -g ios-sim#latest). And for deploying your application to a real device ios-deploy (sudo npm install -g ios-deploy#latest)
Related
flutter run -d macOS
Downloading darwin-x64 tools... 107.0s
Downloading darwin-x64-profile tools... 69.7s
Downloading darwin-x64-profile tools... 23.6s
Downloading darwin-x64-release tools... 54.3s
Downloading darwin-x64-release tools... 20.4s
Launching lib/main.dart on macOS in debug mode...
Podfile missing
When i run flutter run -d macOS code it showing Podfile missing and how to fix it?Mac Pro
How to run mac desktop app using android studio?
If it is not possible to run macOS app from android studio then which ide i need to use?
The Podfile missing message may also appear when you have selected the command-line tools. In that case it can be fixed with
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
That fixed it for me when I switched to Flutter 2.0.
I also ran flutter create --platforms=macos . before, but that didn't fix it.
Add desktop support to an existing Flutter project
To add desktop support to an existing project, run the following command in a terminal from the root project directory:
flutter create .
To run your project as a desktop app, use the following command:
flutter run -d macOS
for more
How can I open an existing Flutter project made by Android Studio on Mac-Os to export ipa version of app? Can it be done with Mac-Os version of Android Studio or I have to do it with X-Code? How?
Thanks in Advance
I could finally do that by accomplishing the following steps:
Copy the project into macOs (with X-Code Installed)
Open it by Android Studio (preferably latest version)
Enable Flutter and Dart plugin on Android Studio framework settings
Run command flutter packages get (Connection to Flutter repositories must be available)
Run flutter build ios --release as #Günter Zöchbauer truly commented
Connect iPhone device or simulator and run directly on your device
If some errors printed you may need to verify your developer account settings on X-Code or check Github page of your libraries for possible iOS issues
You can do it in XCode.
Ensure you run flutter build ios --release before you do.
Connection to physical iPhone device is not necessary. Run any sample project in xcode. Start a Simulator. (Only One simulator preferrably).
clone the repository from github into Mac (with X-Code Installed)
open terminal.
cd to your pubspec.yaml
flutter run (it will automatically run flutter pub get)
(It will launch on the already running iOS simulator)
follow steps on flutter.dev to install flutter. Above steps will only work from terminal if flutter doctor(any flutter command) is recognized
I'm on High Sierra with Xcode Version 9.0.1 (9A1004).
When running tns doctor I get the following warning:
WARNING: Xcode is not installed or is not configured properly.
You will not be able to build your projects for iOS or run them in the iOS Simulator.
To be able to build for iOS and run apps in the native emulator, verify that you have installed Xcode.
If I run the installation script, furthermore I get:
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
Xcode is not installed or not configured properly. Download, install, set it up and run this script again.
As you might have guessed, I have Xcode installed from the app store and I've also installed cocoapods and xcodeproj. This is the only warning that I get.
Any suggestions?
Run the following command:
sudo xcode-select --reset
I found this answer here:
http://overengineer.net/fixing-nativescript-s-xcode-is-not-installed-or-is-not-configured-properly-on-macos
I had this problem today, but running the recommended command didn't help. I found that running the command
$ tns doctor
walked me through a series of prompts and corrected the issue. I did have to restart my terminal after the program completed in order for it to take effect.
Open Xcode than go to Preferences -> Locations -> Command Line Tools after that it'll automatically take a path for the same. The system may ask for sudo password.
I am using AppGyver, Steroids Installation has been done and I have successfully created the demo project. I am trying to configure the iOS Simulator for Appgyver so that i can launch my app on simulator using steroids command line and debug the app but when i want to simulate it on ios simulator it gives XCode is not installed. But I have XCode installed and Command Line tools too.
pkgutil --pkg-info=com.apple.pkg.CLTools_Executables - PRINT
pkgutil --pkgs='com.apple.pkg.Xcode.*' - NO OUTPUT
When I use xcode-select --install It gives "xcode-select: error: command line tools are already installed"
When I use open /Applications/Xcode.app/Contents/Developer/Applications/iOS Simulator.app - Simulator Launch
OS Version : Mac OS X Yosemite 10.10
XCode : 6.1
iOS Simulator : Version 8.1 (550.3)
Node : v0.10.24
NPM : 1.3.21
Please help me to resolve this issue. Any help will be much appreciated.
I have started the IOS emulator through apache cordova CLI and it works, says the build is successful. I can interact with the emulator however my app is not installed on it?
Is there a command that im missing to install my app on this emulated device?
Thanks
To build
cordova build ios
To run in emulator
cordova emulate ios
To run in device
cordova run ios
It might be a bug in Cordova CMD. Try the following commands from your project root directory:
1) cordova build --emulator
2) ios-sim launch platforms/ios/build/emulator/<your_app_name>.app --devicetypeid "com.apple.CoreSimulator.SimDeviceType.iPhone-5s, 8.1"
If you don't have ios-sim install it: npm install -g ios-sim