32

I updated Xcode to 11.5 from 11.4 soon after the update I'm unable to run the apps on my physical device which is also currently running the latest IOS 13.5. When I try running the app an error shows up saying "-402620383--The maximum number of apps for free development profiles has been reached." even though I have no apps running on my phone.

So far I've tried,

  • Clearing all the provisioning profiles from, Window >> Devices and simulator >> Right clicking on the device.
  • Unpairing iPhone from the computer and re-pairing it.
  • Removing my free developer account from Xcode and logging back.
  • Restarting my computer
  • Cleaned the project

Cleared all apps in iPhone

Cleared all provisioning profiles from the iPhone

Joakim Danielson
  • 43,251
  • 5
  • 22
  • 52
Heshara Aluthge
  • 343
  • 1
  • 3
  • 8

4 Answers4

83

I had the same exact issue, even though I uninstalled all apps installed through Xcode. I found out that after updating to Xcode 11.5 and iOS 13.5, some of the other apps (not developed by me) are counted toward the limit.

Open Console app on Macbook and catch logs while trying to install an app from Xcode. Under Devices on the left > Choose your iPhone device > Then search for MIFreeProfileValidatedAppTracker and something like:

[MIFreeProfileValidatedAppTracker _onQueue_addReferenceForApplicationIdentifier:bundle:error:]: 182: This device has reached the maximum number of installed apps using a free developer profile: {(
    "<bundleid>",
    "<bundleid>",
    "<bundleid>"
)}

Instead of <bundleid> there are gonna be concrete ids that are counted toward free app limit. I found out, which app are those, deleted them and everything worked like a charm after that.

Ahmad Tariq
  • 303
  • 1
  • 6
Artur Peplinski
  • 854
  • 7
  • 4
32

This is not a bug. Apple restricts free developer accounts, permitting the installation of only three apps on a device.

An easier way is to delete apps through the Xcode devices window, instead of searching through the log file. In Xcode 13.1, the devices window is accessible from the Window > Devices and Simulators menu item, or by using the shift + command + 2 keyboard shortcut.

Devices window

Use the delete button to remove apps under the same account.

When targeting devices running iOS 13.3.1, tvOS 13.3.1, watchOS 6.1, or later using a free Apple Developer account, app extensions incorrectly count against the limit of three apps installed simultaneously. When this happens, Xcode reports an error: “The maximum number of apps for free development profiles has been reached.” (59264389) (FB7568073)

Workaround: Delete apps signed with your free account from your device and also remove any associated provisioning profiles from the device using Xcode’s Devices window. If your app contains more than two app extensions, remove them to remain under the three app limit.

https://developer.apple.com/documentation/xcode-release-notes/xcode-11_4-release-notes

GoldDragonTSU
  • 487
  • 1
  • 9
  • 23
BB9z
  • 2,432
  • 1
  • 30
  • 36
21

In Addition to Artur Peplinski answer, all apps effected are offloaded apps. Apple include a feature on iOS 11 that automatically offload unused app after 14 days. You can disable this feature in the iOS settings. If you load them again or delete them, it works

John
  • 241
  • 2
  • 5
  • I have soooooo many apps , this will take forever – frazras Jun 27 '20 at 23:59
  • @frazras, yeah me too, this bug is very annoying – leon Jul 12 '20 at 21:42
  • I updated my Xcode to 11.6 and the problem still happens. – Carlos Irano Jul 19 '20 at 15:57
  • Offloaded apps can be removed without necessity to download them before it (long tap doesn't show "Remove app" button for them). Just enter edit screen mode (long tap on any app and try to move it on screen to make cross in top-left corner appear). It helped me to remove more than 150 offloaded apps in few minutes. – Akhrameev Aug 10 '20 at 11:44
1

If you are in the Apple Developer Program but still have this issue, try this:

1

Go to Xcode preferences

2

Navigate to 'Accounts'

3

Open 'Manage Certificates'

4

Add this certificate

אורי orihpt
  • 2,358
  • 2
  • 16
  • 41