Repository navigation
Could not install build/ios/iphoneos/Runner.app on .... #25370
Copy link
Copy link
Closed
Labels
c: crashStack traces logged to the consoleStack traces logged to the consolep: toolingAffects the flutter_plugin_tools packageAffects the flutter_plugin_tools packageplatform-iosiOS applications specificallyiOS applications specificallyt: xcode"xcodebuild" on iOS and general Xcode project management"xcodebuild" on iOS and general Xcode project managementtoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.
Description
I'm trying to run my application on profile mode with the command:
flutter run --profile --target=lib/main-staging.dart
But it doesn't work, it say it can't install it on the device... no problem in debug mode, but release and profile doesn't work...
No problem on Android :)
Logs
...
[ +5 ms] "flutter run" took 49 234ms.
[ ] Could not install build/ios/iphoneos/Runner.app on 09e05a2baacde4b9261c05f770f8df6cfb1ec4b8.
[ +1 ms] Try launching Xcode and selecting "Product > Run" to fix the problem:
[ ] open ios/Runner.xcworkspace
[ ] Error running application on iPhone de Andrea.
#0 throwToolExit (package:flutter_tools/src/base/common.dart:26:3)
#1 RunCommand.runCommand (package:flutter_tools/src/commands/run.dart:404:7)
<asynchronous suspension>
#2 FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:401:18)
#3 _asyncThenWrapperHelper.<anonymous closure> (dart:async/runtime/libasync_patch.dart:77:64)
#4 _rootRunUnary (dart:async/zone.dart:1132:38)
#5 _CustomZone.runUnary (dart:async/zone.dart:1029:19)
#6 _FutureListener.handleValue (dart:async/future_impl.dart:129:18)
#7 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:642:45)
#8 Future._propagateToListeners (dart:async/future_impl.dart:671:32)
#9 Future._complete (dart:async/future_impl.dart:476:7)
#10 _SyncCompleter.complete (dart:async/future_impl.dart:51:12)
#11 _AsyncAwaitCompleter.complete (dart:async/runtime/libasync_patch.dart:28:18)
#12 _completeOnAsyncReturn (dart:async/runtime/libasync_patch.dart:295:13)
#13 RunCommand.usageValues (package:flutter_tools/src/commands/run.dart)
#14 _asyncThenWrapperHelper.<anonymous closure> (dart:async/runtime/libasync_patch.dart:77:64)
#15 _rootRunUnary (dart:async/zone.dart:1132:38)
#16 _CustomZone.runUnary (dart:async/zone.dart:1029:19)
#17 _FutureListener.handleValue (dart:async/future_impl.dart:129:18)
#18 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:642:45)
#19 Future._propagateToListeners (dart:async/future_impl.dart:671:32)
#20 Future._complete (dart:async/future_impl.dart:476:7)
#21 _SyncCompleter.complete (dart:async/future_impl.dart:51:12)
#22 _AsyncAwaitCompleter.complete.<anonymous closure> (dart:async/runtime/libasync_patch.dart:33:20)
#23 _rootRun (dart:async/zone.dart:1124:13)
#24 _CustomZone.run (dart:async/zone.dart:1021:19)
#25 _CustomZone.bindCallback.<anonymous closure> (dart:async/zone.dart:947:23)
#26 _microtaskLoop (dart:async/schedule_microtask.dart:41:21)
#27 _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)
#28 _runPendingImmediateCallback (dart:isolate/runtime/libisolate_patch.dart:115:13)
#29 _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:172:5)
flutter doctor -v
[✓] Flutter (Channel beta, v1.0.0, on Mac OS X 10.14.2 18C54, locale fr-FR)
• Flutter version 1.0.0 at /Users/jaumard/flutter
• Framework revision 5391447fae (2 weeks ago), 2018-11-29 19:41:26 -0800
• Engine revision 7375a0f414
• Dart version 2.1.0 (build 2.1.0-dev.9.4 f9ebf21297)
[✓] Android toolchain - develop for Android devices (Android SDK 28.0.3)
• Android SDK at /Users/jaumard/Library/Android/sdk
• Android NDK at /Users/jaumard/Library/Android/sdk/ndk-bundle
• Platform android-28, build-tools 28.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_152-release-1136-b06)
• All Android licenses accepted.
[✓] iOS toolchain - develop for iOS devices (Xcode 10.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 10.1, Build version 10B61
• ios-deploy 1.9.4
• CocoaPods version 1.5.3
[✓] Android Studio (version 3.2)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 31.1.1
• Dart plugin version 181.5656
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
[✓] IntelliJ IDEA Ultimate Edition (version 2018.3)
• IntelliJ at /Applications/IntelliJ IDEA.app
• Flutter plugin version 30.0.3
• Dart plugin version 183.4733
[✓] Connected device (1 available)
• iPhone de Andrea • 09e05a2baacde4b9261c05f770f8df6cfb1ec4b8 • ios • iOS 12.1.1
• No issues found!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
c: crashStack traces logged to the consoleStack traces logged to the consolep: toolingAffects the flutter_plugin_tools packageAffects the flutter_plugin_tools packageplatform-iosiOS applications specificallyiOS applications specificallyt: xcode"xcodebuild" on iOS and general Xcode project management"xcodebuild" on iOS and general Xcode project managementtoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.
Activity
zoechi commentedon Dec 14, 2018
I assume you tried
flutter clean?zoechi commentedon Dec 14, 2018
There are fatal errors
but I don't know if they are relevant.
jaumard commentedon Dec 14, 2018
Yes I tried
flutter cleanbut no luck :/abdalmonem commentedon Jan 29, 2019
on real device ?
another way to solve it :
if its work
close xcode and back to android studio or vsCode (whatever IDE) and use normal run button or run command
jaumard commentedon Jan 29, 2019
None of that worked for me @abdalmonem
8 remaining items
khachuong commentedon Aug 6, 2019
thanks you very much @Chetan8488 , you saved my day
kennenfromchina commentedon Oct 10, 2019
apastuhov commentedon Oct 11, 2019
@kennenfromchina Maybe you changed name of the application via xcode? Then in
ios/Runner.xcodeproj/project.pbxprojfind/* Debug */ = {section, and there change value ofPRODUCT_NAMEtoRunner.After that use
flutter clean && flutter runto run the app. And maybe it is better to put such issues to StackOverflow. :)fix Runner could not install issue
gzimbron commentedon Oct 15, 2019
I had renamed "Runner" to "MyAppName", I returned it and it worked
rubickecho commentedon Jan 9, 2020
THX! :)
lukepighetti commentedon Feb 1, 2020
You used to be able to just change the display name in Xcode and have it work. How are we supposed to change the name now that this breaks builds?
erf commentedon Feb 29, 2020
@lukepighetti i rolled back the name change, then set it again and now it worked..
lukepighetti commentedon Mar 4, 2020
@jmagman requesting reopen and tag
regression, or the final word on how we're expected to set the display name of our iOS apps moving forwardjmagman commentedon Mar 4, 2020
@lukepighetti @erf If you are hitting an issue on app display rename, that sounds like a completely different issue. You may be hitting #41793.
marceloimg93 commentedon Mar 5, 2020
Thanks! This solved my problem!
Greatcallie commentedon Apr 21, 2020
lock commentedon May 5, 2020
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.