Describe the bug
I apologize if this issue has already been resolved on this thread, but I couldn't find any tickets. Basically I'm developing a simple barcode scanning app, with logic that will be implemented later, probably with firebase, I'm not entirely sure since I saw that this is exactly the same problem that many developers encounter using also firebase.
When I restart my Mac, or create the same exact project from scratch, if I run flutter build ios or flutter run, the app works fine but obviously I can't test the barcode scanner, since the camera is unavailable in the simulator. However, if I try to connect my iPhone (13 Pro Max, iOS: 16.0), neither the iOS simulator (same exact device, iPhone 13 Pro Max, iOS: 16.0, I'm using XCode 14.0) nor the device can have the app installed. I think I have this issue and tried to resolve it from about 40hrs of work. I tried everything, from stable to master channel, the other way around, tried to reboot both the device and the system, tried checking and unchecking buildin phases options, keychain accesses, updating, cleaning, upgrading and building.
I'm certain that this isn't a setup problem:
iOS Deployment Target: 12.0 in every location, even pod install recognizes it as deployment target automatically (updated also the Podfile)
Swift Language: 5 in every location
If I uninstall the previously installed app on the simulator, the apps installs/works fine. For example:
Run app on Simulator
Plug in physical device (as I mentioned the specs are the same on both the physical device and the Simulator)
Error
Unplug physical device
Error on Simulator
Uninstall app from Simulator
flutter run to Simulator
Installation is fine and the app is working.
Error
`(base) tommaso@MacBook-Pro-di-Tommaso-6 The List % flutter run
Launching lib/main.dart on iPhone 13 Pro Max in debug mode...
Automatically signing iOS for device deployment using specified development team in Xcode project: *****
Running Xcode build...
Xcode build done. 8.6s
Failed to build iOS app
Error output from Xcode build:
β³
BUILD FAILED
Xcode's output:
β³
Writing result bundle at path:
/var/folders/yx/kzr1jrcs7_gbd8370smqrk_r0000gn/T/flutter_tools.JRbpLh/flutter_ios_build_temp_dirUcBjBI/temporary_xcresult_bundle
Failed to package /Users/tommaso/Desktop/Flutter.nosync/Projects/The List.
Command PhaseScriptExecution failed with a nonzero exit code
note: Planning
note: Build preparation complete
note: Building targets in dependency order
warning: Run script build phase 'Run Script' will be run during every build because it does not specify any outputs. To address this warning, either add output
dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'Runner'
from project 'Runner')
warning: Run script build phase 'Thin Binary' will be run during every build because it does not specify any outputs. To address this warning, either add
output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target
'Runner' from project 'Runner')
Result bundle written to path:
/var/folders/yx/kzr1jrcs7_gbd8370smqrk_r0000gn/T/flutter_tools.JRbpLh/flutter_ios_build_temp_dirUcBjBI/temporary_xcresult_bundle
Could not build the precompiled application for the device.
Error launching application on iPhone 13 Pro Max.`
Last Considerations about the problem
With the risk of repeating myself, I'll say that I literally tried everything, but the error stays the same. I guess that following the error there is something wrong with the package_conf.json in /Users/tommaso/Desktop/Flutter.nosync/Projects/The List/.dart_tool/package_config.json but I literally don't know what it is or what to do.
Thanks for taking the time to read this, I'd really appreciate a little helpπ₯
flutter doctor -v
`[β] Flutter (Channel master, 3.1.0-0.0.pre.1243, on macOS 13.0 22A5266r darwin-arm (Rosetta), locale en-IT)
β’ Flutter version 3.1.0-0.0.pre.1243 at /Users/tommaso/Desktop/Flutter.nosync/flutter
β’ Upstream repository https://github.com/flutter/flutter.git
β’ Framework revision dc06326caa (10 hours ago), 2022-06-13 16:48:09 -0700
β’ Engine revision 6670f92130
β’ Dart version 2.18.0 (build 2.18.0-180.0.dev)
β’ DevTools version 2.14.0
[β] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
β’ Android SDK at /Users/tommaso/Library/Android/sdk
β’ Platform android-31, build-tools 30.0.3
β’ Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
β’ Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)
β’ All Android licenses accepted.
[β] Xcode - develop for iOS and macOS (Xcode 14.0)
β’ Xcode at /Applications/Xcode-beta.app/Contents/Developer
β’ CocoaPods version 1.11.3
[β] Chrome - develop for the web
β’ Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
Describe the bug I apologize if this issue has already been resolved on this thread, but I couldn't find any tickets. Basically I'm developing a simple barcode scanning app, with logic that will be implemented later, probably with firebase, I'm not entirely sure since I saw that this is exactly the same problem that many developers encounter using also firebase.
When I restart my Mac, or create the same exact project from scratch, if I run
flutter build ios
orflutter run
, the app works fine but obviously I can't test the barcode scanner, since the camera is unavailable in the simulator. However, if I try to connect my iPhone (13 Pro Max, iOS: 16.0), neither the iOS simulator (same exact device, iPhone 13 Pro Max, iOS: 16.0, I'm using XCode 14.0) nor the device can have the app installed. I think I have this issue and tried to resolve it from about 40hrs of work. I tried everything, from stable to master channel, the other way around, tried to reboot both the device and the system, tried checking and unchecking buildin phases options, keychain accesses, updating, cleaning, upgrading and building.I'm certain that this isn't a setup problem:
pod install
recognizes it as deployment target automatically (updated also the Podfile)If I uninstall the previously installed app on the simulator, the apps installs/works fine. For example:
flutter run
to SimulatorError `(base) tommaso@MacBook-Pro-di-Tommaso-6 The List % flutter run Launching lib/main.dart on iPhone 13 Pro Max in debug mode... Automatically signing iOS for device deployment using specified development team in Xcode project: ***** Running Xcode build...
Xcode build done. 8.6s Failed to build iOS app Error output from Xcode build: β³ BUILD FAILED
Xcode's output: β³ Writing result bundle at path: /var/folders/yx/kzr1jrcs7_gbd8370smqrk_r0000gn/T/flutter_tools.JRbpLh/flutter_ios_build_temp_dirUcBjBI/temporary_xcresult_bundle
Could not build the precompiled application for the device.
Error launching application on iPhone 13 Pro Max.`
Last Considerations about the problem With the risk of repeating myself, I'll say that I literally tried everything, but the error stays the same. I guess that following the error there is something wrong with the package_conf.json in
/Users/tommaso/Desktop/Flutter.nosync/Projects/The List/.dart_tool/package_config.json
but I literally don't know what it is or what to do. Thanks for taking the time to read this, I'd really appreciate a little helpπ₯flutter doctor -v
`[β] Flutter (Channel master, 3.1.0-0.0.pre.1243, on macOS 13.0 22A5266r darwin-arm (Rosetta), locale en-IT) β’ Flutter version 3.1.0-0.0.pre.1243 at /Users/tommaso/Desktop/Flutter.nosync/flutter β’ Upstream repository https://github.com/flutter/flutter.git β’ Framework revision dc06326caa (10 hours ago), 2022-06-13 16:48:09 -0700 β’ Engine revision 6670f92130 β’ Dart version 2.18.0 (build 2.18.0-180.0.dev) β’ DevTools version 2.14.0[β] Android toolchain - develop for Android devices (Android SDK version 30.0.3) β’ Android SDK at /Users/tommaso/Library/Android/sdk β’ Platform android-31, build-tools 30.0.3 β’ Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java β’ Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840) β’ All Android licenses accepted.
[β] Xcode - develop for iOS and macOS (Xcode 14.0) β’ Xcode at /Applications/Xcode-beta.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 2021.2) β’ 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.12+0-b1504.28-7817840)
[β] VS Code (version 1.68.0) β’ VS Code at /Applications/Visual Studio Code.app/Contents β’ Flutter extension version 3.42.0
[β] Connected device (3 available) β’ iPhone 13 Pro Max (mobile) β’ 00008110-000125483A82801E β’ ios β’ iOS 16.0 20A5283p β’ macOS (desktop) β’ macos β’ darwin-arm64 β’ macOS 13.0 22A5266r darwin-arm (Rosetta) β’ Chrome (web) β’ chrome β’ web-javascript β’ Google Chrome 102.0.5005.115
[β] HTTP Host Availability β’ All required HTTP hosts are available
β’ No issues found!`