Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The maximum number of apps for free development profiles has been reached. Xcode 11.5

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

like image 624
Heshara Aluthge Avatar asked May 22 '20 10:05

Heshara Aluthge


3 Answers

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.

like image 87
Artur Peplinski Avatar answered Nov 19 '22 11:11

Artur Peplinski


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

like image 41
John Avatar answered Nov 19 '22 12:11

John


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

like image 26
BB9z Avatar answered Nov 19 '22 10:11

BB9z