Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Flutter: unable to install "Runner" error when trying to install flutter app to real iOS device

Tags:

xcode

ios

flutter

I am using iPhone 8 (Version 13.3.1), and a MacBook air (Version 10.14.6). I have set 'team' to personal team in Xcode > general. Then I click the button on the top left corner to run it. I received error like this even I have deleted the apps that I have installed before on the same phone with the sample apple id:

Details

Unable to install "Runner"
Domain: com.apple.dtdevicekit
Code: -402620383
--
App installation failed
Domain: com.apple.dtdevicekit
Code: -402620383
Failure Reason: The maximum number of apps for free development profiles has been reached.
User Info: {
    DVTRadarComponentKey = 487927;
    "com.apple.dtdevicekit.stacktrace" = (
    0   DTDeviceKitBase                     0x00000001263006e7 DTDKCreateNSError + 109
    1   DTDeviceKitBase                     0x0000000126300de9 DTDK_AMDErrorToNSError + 792
    2   DTDeviceKitBase                     0x000000012634056a __90-[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:]_block_invoke + 164
    3   DVTFoundation                       0x000000010ba8dc12 DVTInvokeWithStrongOwnership + 73
    4   DTDeviceKitBase                     0x0000000126340301 -[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:] + 1589
    5   IDEiOSSupportCore                   0x00000001261c8a25 __118-[DVTiOSDevice(DVTiPhoneApplicationInstallation) processAppInstallSet:appUninstallSet:installOptions:completionBlock:]_block_invoke.352 + 4523
    6   DVTFoundation                       0x000000010bbbee7a __DVT_CALLING_CLIENT_BLOCK__ + 7
    7   DVTFoundation                       0x000000010bbc0552 __DVTDispatchAsync_block_invoke + 809
    8   libdispatch.dylib                   0x00007fff6734f5f8 _dispatch_call_block_and_release + 12
    9   libdispatch.dylib                   0x00007fff6735063d _dispatch_client_callout + 8
    10  libdispatch.dylib                   0x00007fff673568e0 _dispatch_lane_serial_drain + 602
    11  libdispatch.dylib                   0x00007fff67357396 _dispatch_lane_invoke + 385
    12  libdispatch.dylib                   0x00007fff6735f6ed _dispatch_workloop_worker_thread + 598
    13  libsystem_pthread.dylib             0x00007fff67590611 _pthread_wqthread + 421
    14  libsystem_pthread.dylib             0x00007fff675903fd start_wqthread + 13
);
}
--

like image 212
Vanice Leung Avatar asked Feb 25 '20 08:02

Vanice Leung


2 Answers

In Xcode go to Window → Devices under Installed Apps delete some apps, and afterwords you could run your app

like image 143
Sagar Acharya Avatar answered Sep 30 '22 04:09

Sagar Acharya


I fixed it by renaming the bundle ID

The bundle ID it was complaining about had been used in the past on my phone, with a different app, coming from a different TestFlight account and build.

like image 28
n13 Avatar answered Sep 30 '22 03:09

n13