I'm new in flutter, I have project my client want me to extract .ipa file and upload it.
I made provisioning profile and all setup is done.
I run command flutter doctor -v
[✓] Flutter (Channel beta, 1.21.0-9.2.pre, on Mac OS X 10.15.4 19E266, locale en-US)
• Flutter version 1.21.0-9.2.pre at /Users/user/Documents/flutter
• Framework revision 81a45ec2e5 (2 weeks ago), 2020-08-27 14:14:33 -0700
• Engine revision 20a9531835
• Dart version 2.10.0 (build 2.10.0-7.3.beta)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
• Android SDK at /Users/user/Library/Android/sdk
• Platform android-30, build-tools 30.0.2
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 11.6)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 11.6, Build version 11E708
• CocoaPods version 1.9.3
[✓] Android Studio (version 4.0)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 49.0.2
• Dart plugin version 193.7547
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
Scan[✓] Connected device (2 available)
• iPhone 8 (mobile) • 7484DAD5-9562-4A70-A83C-D8D4C378B35A • ios • com.apple.CoreSimulator.SimRuntime.iOS-13-6 (simulator)
• iPhone SE (2nd generation) (mobile) • 6A6DAEF0-D41D-4466-9815-826DF83ECB51 • ios • com.apple.CoreSimulator.SimRuntime.iOS-13-6 (simulator)
• No issues found!
But when run flutter build ios this found this exception after xcode build done:
Oops; flutter has exited unexpectedly: "ProcessException: Process timed out:
Command: /usr/bin/env xcrun xcodebuild -configuration Release -quiet
-workspace Runner.xcworkspace -scheme Runner BUILD_DIR=/Users/user/Desktop/LadyCare/build/ios -sdk iphoneos SCRIPT_OUTPUT_STREAM_FILE=/var/folders/rt/fl3hxxg54zg57wrggxsbx42m0000gn/T/flutter_tools.ziHuHJ/flutter_build_log_pipe.uI1i3M/pipe_to_stdout FLUTTER_SUPPRESS_ANALYTICS=true COMPILER_INDEX_STORE_ENABLE=NO
-showBuildSettings".
Do this, it might fix your problem
flutter clean && flutter run
The above command is basically implementing the command at the same time
>>> flutter clean
>>> flutter run
Related
I'm getting this error when I try to run my application on the iOS simulator:
Launching lib/main.dart on iPhone 14 Pro Max in debug mode...
Running Xcode build...
└─Compiling, linking and signing... 9,2s
Xcode build done. 27,9s
Connecting to the VM Service is taking longer than expected...
Still attempting to connect to the VM Service...
If you do NOT see the Flutter application running, it might have crashed. The device logs (e.g. from adb or XCode) might have more details.
If you do see the Flutter application running on the device, try re-running with --host-vmservice-port to use a specific port known to be available.
At the end of the Xcode build done. 27,9s print in the terminal, the App opens in the iOS simulator for a few milliseconds, but is instantly closed, and a crash screen from Xcode is opened.
Here is my flutter doctor -v:
[✓] Flutter (Channel master, 3.8.0-9.0.pre.18, on macOS 13.2 22D49 darwin-arm64, locale pt-BR)
• Flutter version 3.8.0-9.0.pre.18 on channel master at /Users/rafael/Documents/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision f945ad99c3 (55 minutes ago), 2023-02-10 00:05:44 +0100
• Engine revision 40e17fb524
• Dart version 3.0.0 (build 3.0.0-218.0.dev)
• DevTools version 2.21.1
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0-rc2)
• Android SDK at /Users/rafael/Library/Android/sdk
• Platform android-33, build-tools 33.0.0-rc2
• Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7281165)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 14.2)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 14C18
• CocoaPods version 1.11.3
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 2020.3)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7281165)
[✓] VS Code (version 1.75.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.58.0
[✓] Connected device (3 available)
• iPhone 14 Pro Max (mobile) • 49BFE69F-8CDD-4726-A6A4-60AC1E87E6E9 • ios • com.apple.CoreSimulator.SimRuntime.iOS-16-2 (simulator)
• macOS (desktop) • macos • darwin-arm64 • macOS 13.2 22D49 darwin-arm64
• Chrome (web) • chrome • web-javascript • Google Chrome 109.0.5414.119
[✓] HTTP Host Availability
• All required HTTP hosts are available
• No issues found!
I solved the problem by removing a package that I had in the application that has the pub google_mobile_ads in its .yaml, and as I am not implementing Ads in this App I did not configure the necessary items in AndroidManifest.xml and Info.plist.
I tried to run my app i am getting the error as CocoaPods not installed. Skipping pod
install. When i run the app in the terminal using 'flutter run' it's working perfectly. I don't know why it's not working in Android studio.
Please find the error below.
Launching lib/main.dart on iPhone 12 Pro Max in debug mode...
Warning: CocoaPods not installed. Skipping pod install.
CocoaPods is used to retrieve the iOS and macOS platform side's plugin code that responds to your plugin usage on the Dart side.
Without CocoaPods, plugins will not work on iOS or macOS.
For more info, see https://flutter.dev/platform-plugins
To install see https://guides.cocoapods.org/using/getting-started.html#installation for instructions.
CocoaPods not installed or not in valid state.
Error launching application on iPhone 12 Pro Max.
Flutter doctor also i don't find any issue.
flutter doctor -v
[✓] Flutter (Channel stable, 3.0.4, on macOS 12.4 21F79 darwin-arm, locale en-GB)
• Flutter version 3.0.4 at /opt/homebrew/Caskroom/flutter/2.5.0/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 85684f9300 (2 weeks ago), 2022-06-30 13:22:47 -0700
• Engine revision 6ba2af10bb
• Dart version 2.17.5
• DevTools version 2.12.2
[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
• Android SDK at /Users/elamparithibalakrishnan/Library/Android/sdk
• Platform android-31, build-tools 31.0.0
• Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 13.4.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• CocoaPods version 1.11.3
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 2020.3)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
[✓] Connected device (3 available)
• iPhone 12 Pro Max (mobile) • 0C7D4F63-17B1-4E66-8277-767ED0672937 • ios • com.apple.CoreSimulator.SimRuntime.iOS-15-5
(simulator)
• macOS (desktop) • macos • darwin-arm64 • macOS 12.4 21F79 darwin-arm
• Chrome (web) • chrome • web-javascript • Google Chrome 103.0.5060.114
! Error: iPhone is not connected. Xcode will continue when iPhone is connected. (code -13)
[✓] HTTP Host Availability
• All required HTTP hosts are available
• No issues found!
Can anyone please help me on this issue.
Thanks in advance.
shared_preferences: ^0.5.12+4
Error log:
MissingException(No implementation found for method getAll on channel plugins.flutter.io/shared_preferences)
flutter sdk details:
[✓] Flutter (Channel stable, 1.22.5, on Mac OS X 10.14.6 18G7016 darwin-x64, locale en-US)
• Flutter version 1.22.5 at /Users/taleb/Developer/flutter
• Framework revision 7891006299 (6 weeks ago), 2020-12-10 11:54:40 -0800
• Engine revision ae90085a84
• Dart version 2.10.4
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
• Android SDK at /Users/taleb/Library/Android/sdk
• Platform android-30, build-tools 30.0.3
• ANDROID_HOME = /Users/taleb/Library/Android/sdk
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
• All Android licenses accepted.
[!] Xcode - develop for iOS and macOS
✗ Xcode installation is incomplete; a full installation is necessary for iOS development.
Download at: https://developer.apple.com/xcode/download/
Or install Xcode via the App Store.
Once installed, run:
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
sudo xcodebuild -runFirstLaunch
• CocoaPods version 1.8.3
[✓] Android Studio (version 4.1)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin installed
• Dart plugin version 201.9317
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
[✓] IntelliJ IDEA Ultimate Edition (version 2019.3)
• IntelliJ at /Applications/IntelliJ IDEA.app
• Flutter plugin version 45.1.2
• Dart plugin version 193.7547
[✓] Connected device (1 available)
• SM A107F (mobile) • R9AM905ZREJ • android-arm • Android 10 (API 29)
! Doctor found issues in 1 category.
If you're using shared_preferences 0.2.4 and above, use setMockInitialValues:
SharedPreferences.setMockInitialValues({}); // set initial values here if desired
For earlier versions you can do it manually:
const MethodChannel('plugins.flutter.io/shared_preferences')
.setMockMethodCallHandler((MethodCall methodCall) async {
if (methodCall.method == 'getAll') {
return <String, dynamic>{}; // set initial values here if desired
}
return null;
});
Using MacOS and VSCode. Just upgraded Flutter to release 1.20.0 and now I cannot start my project in debug mode (F5) from within VSCode on my iPhone simulator.
If I execute on the terminal
flutter run
everything is working as expected.
Output of flutter doctor -v:
[✓] Flutter (Channel stable, 1.20.0, on Mac OS X 10.15.6 19G73, locale es-ES)
• Flutter version 1.20.0 at /Applications/flutter
• Framework revision 840c9205b3 (12 hours ago), 2020-08-04 20:55:12 -0700
• Engine revision c8e3b94853
• Dart version 2.9.0
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
• Android SDK at /Users/abibiano/Library/Android/sdk
• Platform android-29, build-tools 29.0.3
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 11.6)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 11.6, Build version 11E708
• CocoaPods version 1.8.4
[✓] Android Studio (version 3.5)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 43.0.1
• Dart plugin version 191.8593
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
[✓] VS Code (version 1.47.3)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.13.1
[✓] Connected device (1 available)
• iPhone SE (2nd generation) (mobile) • C2027E6D-0C59-4B06-94BC-12382916EE09 • ios •
com.apple.CoreSimulator.SimRuntime.iOS-13-6 (simulator)
• No issues found!
It's fixed.
Please update the vscode plugin for dart.
https://github.com/Dart-Code/Dart-Code/issues/2702
So, this is a very small problem, but totally annoying!
This is my code:
print('COORDINATES -> ${lat}:${lng}');
As you can see, it should print out, example: '74.23132:47.13123' right?
But instead it goes like this..
flutter: COORDINATES -> 74.23132:
47.13123
Is it really suppose to work like that in flutter?
Best regards!
flutter doctor -v
[✓] Flutter (Channel stable, v1.7.8+hotfix.3, on Mac OS X 10.14.5 18F203, locale en-GB)
• Flutter version 1.7.8+hotfix.3 at /Users/usr/Developer/flutter
• Framework revision b712a172f9 (9 days ago), 2019-07-09 13:14:38 -0700
• Engine revision 54ad777fd2
• Dart version 2.4.0
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
• Android SDK at /Users/usr/Library/Android/sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-28, build-tools 28.0.3
• Java binary at: /Applications/Android Studio 3.5 Preview.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 10.2.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 10.2.1, Build version 10E1001
• CocoaPods version 1.7.0
[✓] iOS tools - develop for iOS devices
• ios-deploy 1.9.4
[✓] Android Studio (version 3.5)
• Android Studio at /Applications/Android Studio 3.5 Preview.app/Contents
• Flutter plugin version 37.1.3
• Dart plugin version 191.7830
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
[✓] Connected device (2 available)
• Mattias’s iPhone • aaf4a41bc5a93fcf273e2070e19ec2a6a3f37921 • ios • iOS 12.3.1
• iPhone Xʀ • 93F3E348-5835-492B-B756-CCD1BAD6C8E8 • ios • com.apple.CoreSimulator.SimRuntime.iOS-12-2 (simulator)
• No issues found!
SOLUTION
After trying every logic step to accomplish this, it turns out that the flutter-team hasn't supported this yet! So don't even get into this ever, until flutter support two variables in concatenating. Very very sad to let you know!