Skip to content

Could not install build/ios/iphoneos/Runner.app on .... #25370

Closed

Description

@jaumard

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

log.txt

...
[   +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!

Activity

  1. zoechi commented on Dec 14, 2018

    @zoechi
    Contributor

    I assume you tried flutter clean?

  2. zoechi commented on Dec 14, 2018

    @zoechi
    Contributor

    There are fatal errors

                CompileSwift normal armv7
                    cd /Users/jaumard/StudioProjects/kiwi_mobile/ios
                    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift -frontend -c /Users/jaumard/StudioProjects/kiwi_mobile/ios/Runner/AppDelegate.swift /Users/jaumard/StudioProjects/kiwi_mobile/ios/Runner/Utils/HostInfoManager.swift /Users/jaumard/StudioProjects/kiwi_mobile/ios/Runner/Utils/HostInfo.swift -emit-module-path /Users/jaumard/Library/Developer/Xcode/DerivedData/Runner-fhcjnhceqgrsifclykenqneqkwum/Build/Intermediates.noindex/Runner.build/Profile-iphoneos/Runner.build/Objects-normal/armv7/Runner.swiftmodule -emit-module-doc-path /Users/jaumard/Library/Developer/Xcode/DerivedData/Runner-fhcjnhceqgrsifclykenqneqkwum/Build/Intermediates.noindex/Runner.build/Profile-iphoneos/Runner.build/Objects-normal/armv7/Runner.swiftdoc -serialize-diagnostics-path /Users/jaumard/Library/Developer/Xcode/DerivedData/Runner-fhcjnhceqgrsifclykenqneqkwum/Build/Intermediates.noindex/Runner.build/Profile-iphoneos/Runner.build/Objects-normal/armv7/AppDelegate.dia -emit-objc-header-path /Users/jaumard/Library/Developer/Xcode/DerivedData/Runner-fhcjnhceqgrsifclykenqneqkwum/Build/Intermediates.noindex/Runner.build/Profile-iphoneos/Runner.build/Objects-normal/armv7/Runner-Swift.h -emit-dependencies-path /Users/jaumard/Library/Developer/Xcode/DerivedData/Runner-fhcjnhceqgrsifclykenqneqkwum/Build/Intermediates.noindex/Runner.build/Profile-iphoneos/Runner.build/Objects-normal/armv7/AppDelegate.d -target armv7-apple-ios10.0 -enable-objc-interop -sdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk -I /Users/jaumard/StudioProjects/kiwi_mobile/build/ios/Profile-iphoneos -F /Users/jaumard/StudioProjects/kiwi_mobile/build/ios/Profile-iphoneos -F /Users/jaumard/StudioProjects/kiwi_mobile/build/ios/Profile-iphoneos/FMDB -F /Users/jaumard/StudioProjects/kiwi_mobile/build/ios/Profile-iphoneos/FirebaseCore -F /Users/jaumard/StudioProjects/kiwi_mobile/build/ios/Profile-iphoneos/GTMOAuth2 -F /Users/jaumard/StudioProjects/kiwi_mobile/build/ios/Profile-iphoneos/GTMSessionFetcher -F /Users/jaumard/StudioProjects/kiwi_mobile/build/ios/Profile-iphoneos/GoogleToolboxForMac -F /Users/jaumard/StudioProjects/kiwi_mobile/build/ios/Profile-iphoneos/GoogleUtilities -F /Users/jaumard/StudioProjects/kiwi_mobile/build/ios/Profile-iphoneos/PhoneNumberKit -F /Users/jaumard/StudioProjects/kiwi_mobile/build/ios/Profile-iphoneos/Protobuf -F /Users/jaumard/StudioProjects/kiwi_mobile/build/ios/Profile-iphoneos/RxSwift -F /Users/jaumard/StudioProjects/kiwi_mobile/build/ios/Profile-iphoneos/device_info -F /Users/jaumard/StudioProjects/kiwi_mobile/build/ios/Profile-iphoneos/firebase_analytics -F /Users/jaumard/StudioProjects/kiwi_mobile/build/ios/Profile-iphoneos/flutter_crashlytics -F /Users/jaumard/StudioProjects/kiwi_mobile/build/ios/Profile-iphoneos/flutter_credit_card_dongle -F /Users/jaumard/StudioProjects/kiwi_mobile/build/ios/Profile-iphoneos/flutter_scan_bluetooth -F /Users/jaumard/StudioProjects/kiwi_mobile/build/ios/Profile-iphoneos/flutter_webview_plugin -F /Users/jaumard/StudioProjects/kiwi_mobile/build/ios/Profile-iphoneos/geolocator -F /Users/jaumard/StudioProjects/kiwi_mobile/build/ios/Profile-iphoneos/google_api_availability -F /Users/jaumard/StudioProjects/kiwi_mobile/build/ios/Profile-iphoneos/google_sign_in -F /Users/jaumard/StudioProjects/kiwi_mobile/build/ios/Profile-iphoneos/nanopb -F /Users/jaumard/StudioProjects/kiwi_mobile/build/ios/Profile-iphoneos/native_device_orientation -F /Users/jaumard/StudioProjects/kiwi_mobile/build/ios/Profile-iphoneos/package_info -F /Users/jaumard/StudioProjects/kiwi_mobile/build/ios/Profile-iphoneos/permission_handler -F /Users/jaumard/StudioProjects/kiwi_mobile/build/ios/Profile-iphoneos/phone_number -F /Users/jaumard/StudioProjects/kiwi_mobile/build/ios/Profile-iphoneos/qr_mobile_vision -F /Users/jaumard/StudioProjects/kiwi_mobile/build/ios/Profile-iphoneos/share -F /Users/jaumard/StudioProjects/kiwi_mobile/build/ios/Profile-iphoneos/shared_preferences -F /Users/jaumard/StudioProjects/kiwi_mobile/build/ios/Profile-iphoneos/sqflite -F /Users/jaumard/StudioProjects/kiwi_mobile/build/ios/Profile-iphoneos/url_launcher -F /Users/jaumard/StudioProjects/kiwi_mobile/ios/Pods/Crashlytics/iOS -F /Users/jaumard/StudioProjects/kiwi_mobile/ios/Pods/Fabric/iOS -F /Users/jaumard/StudioProjects/kiwi_mobile/ios/Pods/FirebaseAnalytics/Frameworks -F /Users/jaumard/StudioProjects/kiwi_mobile/ios/Pods/FirebaseInstanceID/Frameworks -F /Users/jaumard/StudioProjects/kiwi_mobile/ios/Pods/../.symlinks/flutter/ios-profile -F /Users/jaumard/StudioProjects/kiwi_mobile/ios/Pods/GoogleAppMeasurement/Frameworks -F /Users/jaumard/StudioProjects/kiwi_mobile/ios/Pods/GoogleMobileVision/BarcodeDetector/Frameworks -F /Users/jaumard/StudioProjects/kiwi_mobile/ios/Pods/GoogleMobileVision/Detector/Frameworks -F /Users/jaumard/StudioProjects/kiwi_mobile/ios/Pods/GoogleSignIn/Frameworks -F /Users/jaumard/StudioProjects/kiwi_mobile/ios/Flutter -g -module-cache-path /Users/jaumard/Library/Developer/Xcode/DerivedData/ModuleCache.noindex -swift-version 4.2 -O -D COCOAPODS -D COCOAPODS -enable-swift3-objc-inference -warn-swift3-objc-inference-minimal -serialize-debugging-options -Xcc -I/Users/jaumard/Library/Developer/Xcode/DerivedData/Runner-fhcjnhceqgrsifclykenqneqkwum/Build/Intermediates.noindex/Runner.build/Profile-iphoneos/Runner.build/swift-overrides.hmap -Xcc -iquote -Xcc /Users/jaumard/Library/Developer/Xcode/DerivedData/Runner-fhcjnhceqgrsifclykenqneqkwum/Build/Intermediates.noindex/Runner.build/Profile-iphoneos/Runner.build/Runner-generated-files.hmap -Xcc -I/Users/jaumard/Library/Developer/Xcode/DerivedData/Runner-fhcjnhceqgrsifclykenqneqkwum/Build/Intermediates.noindex/Runner.build/Profile-iphoneos/Runner.build/Runner-own-target-headers.hmap -Xcc -I/Users/jaumard/Library/Developer/Xcode/DerivedData/Runner-fhcjnhceqgrsifclykenqneqkwum/Build/Intermediates.noindex/Runner.build/Profile-iphoneos/Runner.build/Runner-all-non-framework-target-headers.hmap -Xcc -ivfsoverlay -Xcc /Users/jaumard/Library/Developer/Xcode/DerivedData/Runner-fhcjnhceqgrsifclykenqneqkwum/Build/Intermediates.noindex/Runner.build/all-product-headers.yaml -Xcc -iquote -Xcc /Users/jaumard/Library/Developer/Xcode/DerivedData/Runner-fhcjnhceqgrsifclykenqneqkwum/Build/Intermediates.noindex/Runner.build/Profile-iphoneos/Runner.build/Runner-project-headers.hmap -Xcc -I/Users/jaumard/StudioProjects/kiwi_mobile/build/ios/Profile-iphoneos/include -Xcc -I/Users/jaumard/StudioProjects/kiwi_mobile/ios/Pods/Firebase/CoreOnly/Sources -Xcc -I/Users/jaumard/StudioProjects/kiwi_mobile/ios/Pods/Headers/Public -Xcc -I/Users/jaumard/StudioProjects/kiwi_mobile/ios/Pods/Headers/Public/Firebase -Xcc -I/Users/jaumard/Library/Developer/Xcode/DerivedData/Runner-fhcjnhceqgrsifclykenqneqkwum/Build/Intermediates.noindex/Runner.build/Profile-iphoneos/Runner.build/DerivedSources/armv7 -Xcc -I/Users/jaumard/Library/Developer/Xcode/DerivedData/Runner-fhcjnhceqgrsifclykenqneqkwum/Build/Intermediates.noindex/Runner.build/Profile-iphoneos/Runner.build/DerivedSources -Xcc -DCOCOAPODS=1 -Xcc -DGTM_OAUTH2_USE_FRAMEWORK_IMPORTS=1 -Xcc -DGPB_USE_PROTOBUF_FRAMEWORK_IMPORTS=1 -Xcc -DPB_FIELD_32BIT=1 -Xcc -DPB_NO_PACKED_STRUCTS=1 -Xcc -DCOCOAPODS=1 -Xcc -DCOCOAPODS=1 -Xcc -DGTM_OAUTH2_USE_FRAMEWORK_IMPORTS=1 -Xcc -DGPB_USE_PROTOBUF_FRAMEWORK_IMPORTS=1 -Xcc -DPB_FIELD_32BIT=1 -Xcc -DPB_NO_PACKED_STRUCTS=1 -Xcc -DGTM_OAUTH2_USE_FRAMEWORK_IMPORTS=1 -Xcc -DCOCOAPODS=1 -Xcc -DGTM_OAUTH2_USE_FRAMEWORK_IMPORTS=1 -Xcc -DGPB_USE_PROTOBUF_FRAMEWORK_IMPORTS=1 -Xcc -DPB_FIELD_32BIT=1 -Xcc -DPB_NO_PACKED_STRUCTS=1 -Xcc -DGPB_USE_PROTOBUF_FRAMEWORK_IMPORTS=1 -Xcc -DCOCOAPODS=1 -Xcc -DGTM_OAUTH2_USE_FRAMEWORK_IMPORTS=1 -Xcc -DGPB_USE_PROTOBUF_FRAMEWORK_IMPORTS=1 -Xcc -DPB_FIELD_32BIT=1 -Xcc -DPB_NO_PACKED_STRUCTS=1 -Xcc -DPB_FIELD_32BIT=1 -Xcc -DPB_NO_PACKED_STRUCTS=1 -Xcc -working-directory/Users/jaumard/StudioProjects/kiwi_mobile/ios -import-objc-header /Users/jaumard/StudioProjects/kiwi_mobile/ios/Runner/Runner-Bridging-Header.h -pch-output-dir /Users/jaumard/Library/Developer/Xcode/DerivedData/Runner-fhcjnhceqgrsifclykenqneqkwum/Build/Intermediates.noindex/PrecompiledHeaders -module-name Runner -num-threads 8 -o /Users/jaumard/Library/Developer/Xcode/DerivedData/Runner-fhcjnhceqgrsifclykenqneqkwum/Build/Intermediates.noindex/Runner.build/Profile-iphoneos/Runner.build/Objects-normal/armv7/AppDelegate.o -o /Users/jaumard/Library/Developer/Xcode/DerivedData/Runner-fhcjnhceqgrsifclykenqneqkwum/Build/Intermediates.noindex/Runner.build/Profile-iphoneos/Runner.build/Objects-normal/armv7/HostInfoManager.o -o /Users/jaumard/Library/Developer/Xcode/DerivedData/Runner-fhcjnhceqgrsifclykenqneqkwum/Build/Intermediates.noindex/Runner.build/Profile-iphoneos/Runner.build/Objects-normal/armv7/HostInfo.o
                fatal error: file '/Users/jaumard/StudioProjects/kiwi_mobile/ios/Runner/GeneratedPluginRegistrant.h' has been modified since the precompiled header '/Users/jaumard/Library/Developer/Xcode/DerivedData/Runner-fhcjnhceqgrsifclykenqneqkwum/Build/Intermediates.noindex/PrecompiledHeaders/Runner-Bridging-Header-swift_UHO4D87BWASC-clang_17YH3N4HXBHXH.pch' was built
                note: please rebuild precompiled header '/Users/jaumard/Library/Developer/Xcode/DerivedData/Runner-fhcjnhceqgrsifclykenqneqkwum/Build/Intermediates.noindex/PrecompiledHeaders/Runner-Bridging-Header-swift_UHO4D87BWASC-clang_17YH3N4HXBHXH.pch'
    

    but I don't know if they are relevant.

  3. added
    c: crashStack traces logged to the console
    platform-iosiOS applications specifically
    toolAffects the "flutter" command-line tool. See also t: labels.
    on Dec 14, 2018
  4. added this to the milestone on Dec 14, 2018
  5. jaumard commented on Dec 14, 2018

    @jaumard
    ContributorAuthor

    Yes I tried flutter clean but no luck :/

  6. added
    t: xcode"xcodebuild" on iOS and general Xcode project management
    p: toolingAffects the flutter_plugin_tools package
    toolAffects the "flutter" command-line tool. See also t: labels.
    and removed
    toolAffects the "flutter" command-line tool. See also t: labels.
    on Jan 7, 2019
  7. abdalmonem commented on Jan 29, 2019

    @abdalmonem
    Contributor

    on real device ?

    • open settings on iphone
    • navigate to general > device management
    • select your app profile
    • tap on "trust"

    another way to solve it :

    • open your project using xCode
    • run it
      if its work
      close xcode and back to android studio or vsCode (whatever IDE) and use normal run button or run command
  8. jaumard commented on Jan 29, 2019

    @jaumard
    ContributorAuthor

    None of that worked for me @abdalmonem

  9. 8 remaining items

  10. khachuong commented on Aug 6, 2019

    @khachuong

    Please follow these commands:

    flutter clean
    flutter build ios
    

    thanks you very much @Chetan8488 , you saved my day

  11. kennenfromchina commented on Oct 10, 2019

    @kennenfromchina
    ➜  zhilun_busin_compan_app git:(dev_card) ✗ flutter run
    Launching lib/main.dart on iPhone 11 Pro Max in debug mode...
    Running pod install...                                              2.5s
    Running Xcode build...
    
     ├─Assembling Flutter resources...                           9.1s
     └─Compiling, linking and signing...                         8.2s
    Xcode build done.                                           20.7s
    Could not find the built application bundle at build/ios/iphonesimulator/Runner.app.
    Error launching application on iPhone 11 Pro Max.
    ➜  zhilun_busin_compan_app git:(dev_card) ✗
    
  12. apastuhov commented on Oct 11, 2019

    @apastuhov

    @kennenfromchina Maybe you changed name of the application via xcode? Then in ios/Runner.xcodeproj/project.pbxproj find /* Debug */ = { section, and there change value of PRODUCT_NAME to Runner.

    After that use flutter clean && flutter run to run the app. And maybe it is better to put such issues to StackOverflow. :)

  13. added a commit that references this issue on Oct 15, 2019
  14. gzimbron commented on Oct 15, 2019

    @gzimbron

    I had renamed "Runner" to "MyAppName", I returned it and it worked

  15. rubickecho commented on Jan 9, 2020

    @rubickecho

    @kennenfromchina Maybe you changed name of the application via xcode? Then in ios/Runner.xcodeproj/project.pbxproj find /* Debug */ = { section, and there change value of PRODUCT_NAME to Runner.

    After that use flutter clean && flutter run to run the app. And maybe it is better to put such issues to StackOverflow. :)

    THX! :)

  16. lukepighetti commented on Feb 1, 2020

    @lukepighetti
    Contributor

    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?

  17. erf commented on Feb 29, 2020

    @erf

    @lukepighetti i rolled back the name change, then set it again and now it worked..

  18. lukepighetti commented on Mar 4, 2020

    @lukepighetti
    Contributor

    @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 forward

  19. jmagman commented on Mar 4, 2020

    @jmagman
    Member

    @lukepighetti @erf If you are hitting an issue on app display rename, that sounds like a completely different issue. You may be hitting #41793.

  20. marceloimg93 commented on Mar 5, 2020

    @marceloimg93

    @kennenfromchina Maybe you changed name of the application via xcode? Then in ios/Runner.xcodeproj/project.pbxproj find /* Debug */ = { section, and there change value of PRODUCT_NAME to Runner.

    After that use flutter clean && flutter run to run the app. And maybe it is better to put such issues to StackOverflow. :)

    Thanks! This solved my problem!

  21. Greatcallie commented on Apr 21, 2020

    @Greatcallie
  22. lock commented on May 5, 2020

    @lock

    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 -v and a minimal reproduction of the issue.

  23. locked and limited conversation to collaborators on May 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    c: crashStack traces logged to the consolep: toolingAffects the flutter_plugin_tools packageplatform-iosiOS applications specificallyt: xcode"xcodebuild" on iOS and general Xcode project managementtoolAffects the "flutter" command-line tool. See also t: labels.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions