Installing flutter on Mac iOS - ios

Unfortunately, I couldn’t install flutter on my MacBook Air. Every time I install flutter SDK I see some documents but none of them leads to extract flutter? I can’t find the folder flutter_macOS?

Do you have install flutter SDK follow by official document?
[https://docs.flutter.dev/get-started/install/macos]
Document need required 2 steps,
Step1: download Flutter SDK and extract zip.
Step 2: set Path for ternimal
Notes: You need set path Flutter SDK if the IDE need to required (Ex: Android Studio)
I hope helpfully for you

Related

Run Flutter Android Built App on IOS Device

I am very new to flutter and require your help.
I have built my complete flutter app for android, and now I want to test the same on Iphone, how is it possible?
I tried few tutorials starting with "flutter build ios --release" , but nothing is working for me
You need to have a mac, or use codemagic or get macOS on the VirtualBox on your windows system!
Xcode is required to build and release iOS app. You must use a device running on macOS.
Please refer official doc : https://docs.flutter.dev/deployment/ios
After successfully configuration, use flutter build ios command to build iOS app.
You need to have a Mac and Xcode to build and release iOS app.
However, you can use simple external tools to do so.
For example, Appollo (https://github.com/Appollo-CLI/Appollo), it is a python CLI that lets you access remote MacOS build machines.
You can install it with:
pip install appollo
You can checkout their Youtube channel for some quick tutorials, https://www.youtube.com/channel/UCBNRrJd4UP0QQRoYF4JOEmA or the official doc, https://appollo.readthedocs.io/en/master/tutorial/index.html

Could not find dart in flutter sdk in your flutter project?

I am using mac and i have installed vs code ide for developement, now i am not able to create new project and no suggetions are given in the ide and also it does not found any error and also i have installed both the plugins i.e flutter and dart but still it is not working for me.
Run flutter doctor and post the screenshot here.
Run it in terminal "flutter doctor"
Have you downloaded flutter sdk from https://flutter.dev/docs/get-started/install/macos Despite plugins you also need this.

Flutter iOS - Run script : xcode_backend.sh Operation not permitted

I'm trying to build any Flutter app on iOS on a new Macbook pro 16"
My project used to work well, then after some flutter upgrade, i can't build any project with Xcode
Problem:
/bin/sh:
/Users/{MyUserName}/Documents/dev/utils/flutter/packages/flutter_tools/bin/xcode_backend.sh:
Operation not permitted Command PhaseScriptExecution failed with a
nonzero exit code
What i tried:
Upgrading Xcode & Command line tools
chmod -R 755 my project, and the flutter lib
Follow the Flutter tutorial to use flutter with the latest version of xcode
Switching flutter channel (tried stable 1.17 & master 1.19)
Delete Xcode (& dependencies) delete Flutter & reinstall both
Now, when i try to create a new flutter project
I always face the issue.
The builds are working when i use flutter run from CLI (on my device)
But if i try to use the project with xcode & try to build or run, i face the issue above.
I cant really find similar issues on the web.
PS: My project are working on my old macbook pro 13" same version of xcode and Flutter
Found the answer:
The problem was that Xcode App didn't have enough rights to read / write files & folders.
To solve it:
Go to System preferences > Security & Privacy
Last tab: Privacy
Full disk access: Add Xcode App
If you dont want Xcode to have full disk access you can add it in "Files and folders" instead, and give Xcode rights to your projects folder

Dart SDK not install

I want to get started with flutter web so I am trying to install dart-sdk for windows (stable version Link: https://gekorm.com/dart-windows/) but it doesn't download.it always show a message,download failed:The operation timed out.
actually you don't need to install dart SDK separately, because flutter SDK comes with dart SDK together in one zip.
to start flutter web app you need to change flutter channel to beta and enable web configuration :
flutter channel beta
flutter upgrade
flutter config --enable-web
or I recommend downloading the flutter beta SDK from here:
and use separately it from your stable SDK
you can find more info about flutter web here

APK fails to be installed on any device

I'm new in the Xamarin Development world so I installed Visual Studio 2017 with all the needed cross compiler features.
After downloading and updating the SDKs for Android API 23, 24, 25 and 26 and some corresponding emulator images I got the emulators starting up.
I created a base Xamarin Android App within VS, compiled and deployed it to the simulator.
By deploying/installing the generated APK to the simulator I get the following error:
Failure [INSTALL_FAILED_INVALID_APK: Package couldn't be installed in /data/app/BlankAndroid.BlankAndroid-1: Package /data/app/BlankAndroid.BlankAndroid-1/base.apk code is missing]
It doesn't matter which SDK I choose as “Target Framework” or which Simulator I choose (Android 6, Android 7 or 7.1). The result is the same: The apk is not installed, but the “Mono Shared Runtime” are present and will be updated.
I figured out that the created apk file does not contain a file “classes.dex” or any oder dex files just some ressources. A file “classes.zip” in the directory “obj\Debug\android\bin\classes” with the generated java classes out of my C# is present. These files should be compiled with the DEX-Compiler to the classes.dex file, when I understood correctly.
Even other sample projects from the Internet have exactly the same result.
What do I do wrong?
The problem got solved by fresh installing the Android SDK and all related components. It seemed to have a SDK missmatch between an old Google Android SDK and the new installed Xamarin Android SDK.
I faced the same problem and tried many solutions from the search in web but this one to an extent solved that deploy failure issue.
In the emulator, open settings -> Apps -> Uninstall your app if it is listed
Deploy the app from visual studio again.
This solved the problem that said base.apk is missing.
Try setting your project back to the current recommended defaults. Remove all of the following properties from the .csproj file:
AndroidEnableMultiDex
AndroidDexGenerator
AndroidLinkTool
AndroidDexTool
This will let Xamarin.Android pick the current latest default values, this apply for Visual Studio for Mac and VS 2017-2019

Resources