I left my flutter project for a while when Flutter beta v1.0.0 was out. Now I moved my project to a new system with latest Flutter (stable v1.2.1) and Dart and ran into this build exception problem.
Note this project is working fine on my old desktop
flutter doctor output below
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel beta, v1.0.0, on Linux, locale en_GB.UTF-8)
[!] Android toolchain - develop for Android devices (Android SDK 28.0.3)
! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses
[✓] Android Studio (version 3.2)
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
[✓] Connected device (1 available)
flutter doctor output of new/current system
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, v1.2.1, on Microsoft Windows [Version 10.0.17763.379], locale en-IN)
[√] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
[!] Android Studio (version 3.2)
X Flutter plugin not installed; this adds Flutter specific functionality.
X Dart plugin not installed; this adds Dart specific functionality.
[√] VS Code (version 1.32.3)
[√] Connected device (1 available)
pubsec.yaml
gist link to pubsec.yaml
Since I'm coming back after a long time I have no idea what changes Flutter went through can anyone please help me out
Output of flutter run on current system
Launching lib/main.dart on Android SDK built for x86 in debug mode...
Initializing gradle... 1.5s
Resolving dependencies... 6.0s
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:processDebugResources'.
> Android resource linking failed
Output: D:\Android Projects\maze-flutter\build\app\intermediates\incremental\mergeDebugResources\merged.dir\values-v28\values-v28.xml:7: error: resource android:attr/dialogCornerRadius not found.
D:\Android Projects\maze-flutter\build\app\intermediates\incremental\mergeDebugResources\merged.dir\values-v28\values-v28.xml:11: error: resource android:attr/dialogCornerRadius not found.
D:\Android Projects\maze-flutter\build\app\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:956: error: resource android:attr/fontVariationSettings not found.
D:\Android Projects\maze-flutter\build\app\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:957: error: resource android:attr/ttcIndex not found.
error: failed linking references.
Command: C:\Users\powerpurple\.gradle\caches\transforms-1\files-1.1\aapt2-3.2.1-4818971-windows.jar\18c59619c56cba96590906f3917a302b\aapt2-3.2.1-4818971-windows\aapt2.exe link -I\
C:\Users\powerpurple\AppData\Local\Android\sdk\platforms\android-27\android.jar\
--manifest\
D:\Android Projects\maze-flutter\build\app\intermediates\merged_manifests\debug\processDebugManifest\merged\AndroidManifest.xml\
-o\
D:\Android Projects\maze-flutter\build\app\intermediates\processed_res\debug\processDebugResources\out\resources-debug.ap_\
-R\
#D:\Android Projects\maze-flutter\build\app\intermediates\incremental\processDebugResources\resources-list-for-resources-debug.ap_.txt\
--auto-add-overlay\
--java\
D:\Android Projects\maze-flutter\build\app\generated\not_namespaced_r_class_sources\debug\processDebugResources\r\
--custom-package\
com.example.codee\
-0\
apk\
--output-text-symbols\
D:\Android Projects\maze-flutter\build\app\intermediates\symbols\debug\R.txt\
--no-version-vectors
Daemon: AAPT2 aapt2-3.2.1-4818971-windows Daemon #0
Output: C:\Users\powerpurple\.gradle\caches\transforms-1\files-1.1\appcompat-1.0.0-rc01.aar\353a670f458ae84ffafa8b187ee27491\res\values-v28\values-v28.xml:9:5-12:13: AAPT: error: resource android:attr/dialogCornerRadius not found.
D:\Android Projects\maze-flutter\build\app\intermediates\incremental\mergeDebugResources\merged.dir\values-v28\values-v28.xml:11: AAPT: error: resource android:attr/dialogCornerRadius not found.
C:\Users\powerpurple\.gradle\caches\transforms-1\files-1.1\core-1.0.1.aar\f099bdc17ba82cfe6a5a3ab5ab60bee4\res\values\values.xml:89:5-125:25: AAPT: error: resource android:attr/fontVariationSettings not found.
C:\Users\powerpurple\.gradle\caches\transforms-1\files-1.1\core-1.0.1.aar\f099bdc17ba82cfe6a5a3ab5ab60bee4\res\values\values.xml:89:5-125:25: AAPT: error: resource android:attr/ttcIndex not found.
error: failed linking references.
Command: C:\Users\powerpurple\.gradle\caches\transforms-1\files-1.1\aapt2-3.2.1-4818971-windows.jar\18c59619c56cba96590906f3917a302b\aapt2-3.2.1-4818971-windows\aapt2.exe link -I\
C:\Users\powerpurple\AppData\Local\Android\sdk\platforms\android-27\android.jar\
--manifest\
D:\Android Projects\maze-flutter\build\app\intermediates\merged_manifests\debug\processDebugManifest\merged\AndroidManifest.xml\
-o\
D:\Android Projects\maze-flutter\build\app\intermediates\processed_res\debug\processDebugResources\out\resources-debug.ap_\
-R\
#D:\Android Projects\maze-flutter\build\app\intermediates\incremental\processDebugResources\resources-list-for-resources-debug.ap_.txt\
--auto-add-overlay\
--java\
D:\Android Projects\maze-flutter\build\app\generated\not_namespaced_r_class_sources\debug\processDebugResources\r\
--custom-package\
com.example.codee\
-0\
apk\
--output-text-symbols\
D:\Android Projects\maze-flutter\build\app\intermediates\symbols\debug\R.txt\
PS D:\Android Projects\maze-flutter> flutter run
Using hardware rendering with device Android SDK built for x86. If you get graphics artifacts, consider enabling software rendering with
"--enable-software-rendering".
Launching lib/main.dart on Android SDK built for x86 in debug mode...
Initializing gradle... 1.4s
Resolving dependencies... 5.7s
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:processDebugResources'.
> Android resource linking failed
Output: D:\Android Projects\maze-flutter\build\app\intermediates\incremental\mergeDebugResources\merged.dir\values-v28\values-v28.xml:7: error: resource android:attr/dialogCornerRadius not found.
D:\Android Projects\maze-flutter\build\app\intermediates\incremental\mergeDebugResources\merged.dir\values-v28\values-v28.xml:11: error: resource android:attr/dialogCornerRadius not found. D:\Android Projects\maze-flutter\build\app\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:956: error: resource android:attr/fontVariationSettings not found.
D:\Android Projects\maze-flutter\build\app\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:957: error: resource android:attr/ttcIndex not found.
error: failed linking references.
Command: C:\Users\powerpurple\.gradle\caches\transforms-1\files-1.1\aapt2-3.2.1-4818971-windows.jar\18c59619c56cba96590906f3917a302b\aapt2-3.2.1-4818971-windows\aapt2.exe link -I\
C:\Users\powerpurple\AppData\Local\Android\sdk\platforms\android-27\android.jar\
--manifest\
D:\Android Projects\maze-flutter\build\app\intermediates\merged_manifests\debug\processDebugManifest\merged\AndroidManifest.xml\
-o\
D:\Android Projects\maze-flutter\build\app\intermediates\processed_res\debug\processDebugResources\out\resources-debug.ap_\
-R\
#D:\Android Projects\maze-flutter\build\app\intermediates\incremental\processDebugResources\resources-list-for-resources-debug.ap_.txt\
--auto-add-overlay\
--java\
D:\Android Projects\maze-flutter\build\app\generated\not_namespaced_r_class_sources\debug\processDebugResources\r\
--custom-package\
com.example.codee\
-0\
apk\
--output-text-symbols\
D:\Android Projects\maze-flutter\build\app\intermediates\symbols\debug\R.txt\
--no-version-vectors
Daemon: AAPT2 aapt2-3.2.1-4818971-windows Daemon #0
Output: C:\Users\powerpurple\.gradle\caches\transforms-1\files-1.1\appcompat-1.0.0-rc01.aar\353a670f458ae84ffafa8b187ee27491\res\values-v28\values-v28.xml:9:5-12:13: AAPT: error: resource android:attr/dialogCornerRadius not found.
D:\Android Projects\maze-flutter\build\app\intermediates\incremental\mergeDebugResources\merged.dir\values-v28\values-v28.xml:11: AAPT: error: resource android:attr/dialogCornerRadius not found.
C:\Users\powerpurple\.gradle\caches\transforms-1\files-1.1\core-1.0.1.aar\f099bdc17ba82cfe6a5a3ab5ab60bee4\res\values\values.xml:89:5-125:25: AAPT: error: resource android:attr/fontVariationSettings not found.
C:\Users\powerpurple\.gradle\caches\transforms-1\files-1.1\core-1.0.1.aar\f099bdc17ba82cfe6a5a3ab5ab60bee4\res\values\values.xml:89:5-125:25: AAPT: error: resource android:attr/ttcIndex not found.
error: failed linking references.
Command: C:\Users\powerpurple\.gradle\caches\transforms-1\files-1.1\aapt2-3.2.1-4818971-windows.jar\18c59619c56cba96590906f3917a302b\aapt2-3.2.1-4818971-windows\aapt2.exe link -I\
C:\Users\powerpurple\AppData\Local\Android\sdk\platforms\android-27\android.jar\
--manifest\
D:\Android Projects\maze-flutter\build\app\intermediates\merged_manifests\debug\processDebugManifest\merged\AndroidManifest.xml\
-o\
D:\Android Projects\maze-flutter\build\app\intermediates\processed_res\debug\processDebugResources\out\resources-debug.ap_\
-R\
#D:\Android Projects\maze-flutter\build\app\intermediates\incremental\processDebugResources\resources-list-for-resources-debug.ap_.txt\
--auto-add-overlay\
--java\
D:\Android Projects\maze-flutter\build\app\generated\not_namespaced_r_class_sources\debug\processDebugResources\r\
--custom-package\
com.example.codee\
-0\
apk\
--output-text-symbols\
D:\Android Projects\maze-flutter\build\app\intermediates\symbols\debug\R.txt\
--no-version-vectors
Daemon: AAPT2 aapt2-3.2.1-4818971-windows Daemon #0
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 18s
Running Gradle task 'assembleDebug'...
Running Gradle task 'assembleDebug'... Done 19.6s
*******************************************************************************************
The Gradle failure may have been because of AndroidX incompatibilities in this Flutter app.
See * for more information on the problem and how to fix it.
*******************************************************************************************
Gradle task assembleDebug failed with exit code 1
The missing resources were only added in API 28. You need to update your compileSDKversion in your build.gradle file to version 28.
compileSdkVersion update worked for me!
/AppName/android/app/build.gradle
adnroid compileSdkVersion: 28 to compileSdkVersion: 30
OS: Ubuntu 20.04 LTS
Android emulator API 30
Dart 2.10.2
Flutter 1.22.2
Go to /AppName/android/app/build.gradle
in defaultConfig update both to
compileSdkVersion 31
targetSdkVersion 31
It worked for me!
Related
I'm trying to build an apk with the buildozer -v android release command but it fails. The buildozer -v android debug runs fine and was able to pack an apk.
Here's the error
[DEBUG]:
[DEBUG]: > Task :mergeReleaseResources FAILED
[DEBUG]: Error: java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: AAPT2 error: check logs for details
[DEBUG]:
[DEBUG]:
[DEBUG]: FAILURE: Build failed with an exception.
[DEBUG]:
[DEBUG]: * What went wrong:
[DEBUG]: Execution failed for task ':mergeReleaseResources'.
[DEBUG]: > Error: java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: AAPT2 error: check logs for details
[DEBUG]:
[DEBUG]: * Try:
[DEBUG]: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
[DEBUG]:
[DEBUG]: * Get more help at https://help.gradle.org
[DEBUG]:
[DEBUG]: BUILD FAILED in 30s
[DEBUG]: 9 actionable tasks: 8 executed, 1 up-to-date
> Task :mergeReleaseResources FAILED
Error: java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: AAPT2 error: check logs for details
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':mergeReleaseResources'.
> Error: java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: AAPT2 error: check logs for details
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 30s
9 actionable tasks: 8 executed, 1 up-to-date
STDERR:
[INFO]: STDOUT (last 20 lines of 28):
> Task :mergeReleaseResources FAILED
Error: java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: AAPT2 error: check logs for details
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':mergeReleaseResources'.
> Error: java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: AAPT2 error: check logs for details
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 30s
9 actionable tasks: 8 executed, 1 up-to-date
[INFO]: STDERR:
[INFO]: COMMAND:
cd /media/itutorgurgaon/1CE47CDAE47CB79A/Users/HP/AppData/Local/Programs/Python/Python37/KivyApps-ChitkaranSingh/class12english/.buildozer/android/platform/build/dists/Class12English && /media/itutorgurgaon/1CE47CDAE47CB79A/Users/HP/AppData/Local/Programs/Python/Python37/KivyApps-ChitkaranSingh/class12english/.buildozer/android/platform/build/dists/Class12English/gradlew assembleRelease
[WARNING]: ERROR: /media/itutorgurgaon/1CE47CDAE47CB79A/Users/HP/AppData/Local/Programs/Python/Python37/KivyApps-ChitkaranSingh/class12english/.buildozer/android/platform/build/dists/Class12English/gradlew failed!
WARNING: Received a --sdk argument, but this argument is deprecated and does nothing.
No compiled python is present to zip, skipping.
No setup.py/pyproject.toml used, copying full private data into .apk.
Applying Java source code patches...
Applying patch: src/patches/SDLActivity.java.patch
Warning: failed to apply patch (exit code 1), assuming it is already applied: src/patches/SDLActivity.java.patch
# Command failed: /usr/bin/python -m pythonforandroid.toolchain apk --debug --bootstrap=sdl2 --dist_name Class12English --name 'English XII' --version 0.1 --package www.itutorgurgaon.com.class12english --android_api 27 --minsdk 21 --ndk-api 21 --private /media/itutorgurgaon/1CE47CDAE47CB79A/Users/HP/AppData/Local/Programs/Python/Python37/KivyApps-ChitkaranSingh/class12english/.buildozer/android/app --presplash /media/itutorgurgaon/1CE47CDAE47CB79A/Users/HP/AppData/Local/Programs/Python/Python37/KivyApps-ChitkaranSingh/class12english/icons/app_logo.jpg --icon /media/itutorgurgaon/1CE47CDAE47CB79A/Users/HP/AppData/Local/Programs/Python/Python37/KivyApps-ChitkaranSingh/class12english/icons/app_logo.jpg --orientation sensor --release --copy-libs --arch armeabi-v7a --color=always --storage-dir="/media/itutorgurgaon/1CE47CDAE47CB79A/Users/HP/AppData/Local/Programs/Python/Python37/KivyApps-ChitkaranSingh/class12english/.buildozer/android/platform/build" --ndk-api=21
#
# Buildozer failed to execute the last command
# The error might be hidden in the log above this error
# Please read the full log, and search for it before
# raising an issue with buildozer itself.
# In case of a bug report, please add a full log with log_level = 2
Please Help !
I had a fiddling round with the code and the spec file. The error seemed to have been the jpg file which I used for the presplash and icon in the spec file.
I changed the jpg file to a png file. Voild ! the APK is ready.
ERROR: C:/users/pemgithub/_bazel_pemgithub/3mdmxsrc/external/bazel_tools/tools/cpp/BUILD:58:1: Target '#bazel_tools//tools/cpp:malloc' depends on toolchain '#local_config_cc//:cc-compiler-x64_windows', which cannot be found: no such target '#local_config_cc//:cc-compiler-x64_windows': target 'cc-compiler-x64_windows' not declared in package '' defined by C:/users/pemgithub/_bazel_pemgithub/3mdmxsrc/external/local_config_cc/BUILD.bazel'
ERROR: D:/pemcode/amd/gapid/cmd/gapir/cc/BUILD.bazel:34:1: Target '//cmd/gapir/cc:gapir_unstripped' depends on toolchain '#local_config_cc//:cc-compiler-x64_windows', which cannot be found: no such target '#local_config_cc//:cc-compiler-x64_windows': target 'cc-compiler-x64_windows' not declared in package '' defined by C:/users/pemgithub/_bazel_pemgithub/3mdmxsrc/external/local_config_cc/BUILD.bazel'
ERROR: Analysis of target '//:pkg' failed; build aborted: Analysis failed
INFO: Elapsed time: 0.897s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded, 0 targets configured)
currently loading: #io_bazel_rules_go//go/private ... (3 packages)
Fetching #com_github_golang_protobuf; Restarting.
I'm trying to build GAPID on Windows, https://github.com/google/gapid/blob/master/BUILDING.md
...
Update using bazel 0.26.0, I get a different error
ERROR: C:/users/pemgithub/_bazel_pemgithub/3mdmxsrc/external/gapic_third_party/BUILD.bazel:41:1: no such package '#org_lwjgl_core//jar': Failed to fetch Maven dependency: Could not transfer artifact org.lwjgl:lwjgl:jar:3.2.0 from/to org_lwjgl_core (https://repo1.maven.org/maven2/): connect timed out and referenced by '#gapic_third_party//:lwjgl'
ERROR: Analysis of target '//:pkg' failed; build aborted: no such package '#org_lwjgl_core//jar': Failed to fetch Maven dependency: Could not transfer artifact org.lwjgl:lwjgl:jar:3.2.0 from/to org_lwjgl_core (https://repo1.maven.org/maven2/): connect timed out
INFO: Elapsed time: 11.858s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded, 0 targets configured)
Fetching #com_github_pkg_errors; Restarting. 10s
Not able install new packages in flutter
description: A new Flutter project.
version: 1.0.0+1
environment:
sdk: ">=2.1.0 <3.0.0"
dependencies:
flutter:
sdk: flutter
cupertino_icons: ^0.1.2
google_maps_flutter: ^0.5.13
ERROR MESSAGE -
Running "flutter packages get" in myapp... Handshake error in client (OS Error:
CERTIFICATE_VERIFY_FAILED: self signed certificate in certificate chain(handshake.cc:352))
pub get failed (69) -- attempting retry 2 in 2 seconds...
Why is this error keep coming when i'm executing my project? It occur once i put the image_picker in my pubspec.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:processDebugResources'.
Android resource linking failed
Output: /Users/s/Desktop/Flutter/a/build/app/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:331: error: resource android:attr/fontVariationSettings not found.
/Users/s/Desktop/Flutter/a/build/app/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:331: error: resource android:attr/ttcIndex not found.
error: failed linking references.
Command: /Users/s/.gradle/caches/transforms-1/files-1.1/aapt2-3.2.1-4818971-osx.jar/6d65e55edb223325e7c5119d99552582/aapt2-3.2.1-4818971-osx/aapt2 link -I\
/Users/s/Library/Android/sdk/platforms/android-27/android.jar\
--manifest\
/Users/s/Desktop/Flutter/a/build/app/intermediates/merged_manifests/debug/processDebugManifest/merged/AndroidManifest.xml\
-o\
/Users/s/Desktop/Flutter/a/build/app/intermediates/processed_res/debug/processDebugResources/out/resources-debug.ap_\
-R\
#/Users/s/Desktop/Flutter/a/build/app/intermediates/incremental/processDebugResources/resources-list-for-resources-debug.ap_.txt\
--auto-add-overlay\
--java\
/Users/s/Desktop/Flutter/a/build/app/generated/not_namespaced_r_class_sources/debug/processDebugResources/r\
--custom-package\
com.example.a\
-0\
apk\
--output-text-symbols\
/Users/s/Desktop/Flutter/a/build/app/intermediates/symbols/debug/R.txt\
--no-version-vectors
Daemon: AAPT2 aapt2-3.2.1-4818971-osx Daemon #0
Output: /Users/s/.gradle/caches/transforms-1/files-1.1/design-27.1.1.aar/fa938137e4d19d1dd06a6895b6e14886/res/values/values.xml:96:5-202: AAPT: error: resource android:attr/fontVariationSettings not found.
/Users/s/.gradle/caches/transforms-1/files-1.1/design-27.1.1.aar/fa938137e4d19d1dd06a6895b6e14886/res/values/values.xml:96:5-202: AAPT: error: resource android:attr/ttcIndex not found.
error: failed linking references.
Command: /Users/s/.gradle/caches/transforms-1/files-1.1/aapt2-3.2.1-4818971-osx.jar/6d65e55edb223325e7c5119d99552582/aapt2-3.2.1-4818971-osx/aapt2 link -I\
/Users/s/Library/Android/sdk/platforms/android-27/android.jar\
--manifest\
/Users/s/Desktop/Flutter/a/build/app/intermediates/merged_manifests/debug/processDebugManifest/merged/AndroidManifest.xml\
-o\
/Users/s/Desktop/Flutter/a/build/app/intermediates/processed_res/debug/processDebugResources/out/resources-debug.ap_\
-R\
#/Users/s/Desktop/Flutter/a/build/app/intermediates/incremental/processDebugResources/resources-list-for-resources-debug.ap_.txt\
--auto-add-overlay\
--java\
/Users/s/Desktop/Flutter/a/build/app/generated/not_namespaced_r_class_sources/debug/processDebugResources/r\
--custom-package\
com.example.a\
-0\
apk\
--output-text-symbols\
/Users/s/Desktop/Flutter/a/build/app/intermediates/symbols/debug/R.txt\
--no-version-vectors
Daemon: AAPT2 aapt2-3.2.1-4818971-osx Daemon #0
Change your compileSdkVersion to 28 (under android/app/build.gradle)
compileSdkVersion 28
Then run the command
flutter clean
Then run the project again.
#PhucTran answer's is correct.
Just want to add that i had to Invalidate Cache from Android Studio and Restart it.
File-> Invalidate Cahe and Restart
It worked in the past. But recently I can't start Appium with iOS real devices anymore. My environment is as follow:
Appium 1.5.3
XCode 7.3
iOS 9.1
And I use selenium and io.appium as follow
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>2.53.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.appium</groupId>
<artifactId>java-client</artifactId>
<version>4.0.0</version>
</dependency>
Whenever I start the test, I always get this exception when creating iOSDriver
org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: Removing com.project.classname failed (WARNING: The server did not provide any stacktrace information)
I googled that from iOS 10 and XCode 8 they don't support UI Automation. I still use iOS 9 and XCode 7. Does anyone have the same problem and any solutions. I am kind of stuck here. Thanks
This is log file from Appium
[debug] [iOS] Running ios real device reset flow
[debug] [iOS] Full reset requested. Will try to uninstall the app 'com.project.classname'.
[debug] [iOS] Creating iDevice object with udid 5571568ad437d17f705f6645d73ef78ea5e72e7b
[iOS] Could not remove 'com.project.classname' from device
[MJSONWP] Encountered internal error running command: Error: Removing com.project.classname failed
at /Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-ios-driver/node_modules/node-idevice/main.js:145:6
at ChildProcess.exithandler (child_process.js:193:7)
at emitTwo (events.js:100:13)
at ChildProcess.emit (events.js:185:7)
at maybeClose (internal/child_process.js:850:16)
at Socket.<anonymous> (internal/child_process.js:323:11)
at emitOne (events.js:90:13)
at Socket.emit (events.js:182:7)
at Pipe._onclose (net.js:475:12)
[HTTP] <-- POST /wd/hub/session 500 973 ms - 175
Try to see if the problem is related to libimobiledevice or device lockdown
Use that command to install it:
brew install libimobiledevice --HEAD
also try to use this command
sudo chmod -R 777 /var/db/lockdown/