Calling enableAdServicesAttributionTokenCollection on iOS 14.5 seems to hang my app.

  • 5 September 2022
  • 0 replies

Badge +3


I just migrated to the latest RevenueCat SDK on iOS (from 3 → 4). I also setup SearchAds attribution, but I only want to use the standard attribution (I’m not showing ATT prompt). I am using the latest iOS SDK (4.11.0) via cocoa pods.


I noticed that on all iOS versions except 14.5, my app loads. On 14.5, it hangs after calling -enableAdServicesAttributionTokenCollection:

- (instancetype)init {
self = [super init];
if (self) {
_purchases = [RCPurchases configureWithAPIKey:@"[MY API KEY HERE]"];
#ifdef DEBUG
RCPurchases.logLevel = RCLogLevelError; //RCLogLevelDebug
if (@available(iOS 14.3, macOS 11.1, macCatalyst 14.3, *)) {
[_purchases.attribution enableAdServicesAttributionTokenCollection];
_purchases.delegate = self;
return self;

Any ideas why this might be happening? I’m importing iAd, AdServices, and RevenueCat. It works 100% when I comment out that function call.


0 replies

Be the first to reply!