Solved

52 duplicate symbols during linking (ios)

  • 5 October 2023
  • 1 reply
  • 749 views

Badge +2

Adding RevenueCat to a new project that built okay without RevenueCat. I’ve tried the project IOS 17 & 16 with RevenueCat. Now get this type of error during linking:

duplicate symbol '_OBJC_METACLASS_$_RCSubscriptionPeriod' in:
    /Users/username/Library/Developer/Xcode/DerivedData/project-gqirresgntulppesvshjgagnzupy/Build/Products/Debug-iphoneos/RevenueCat.o
    /Users/username/Library/Developer/Xcode/DerivedData/project-gqirresgntulppesvshjgagnzupy/Build/Products/Debug-iphoneos/RevenueCat_CustomEntitlementComputation.o
duplicate symbol '_OBJC_CLASS_$_RCCustomerInfo' in:
    /Users/username/Library/Developer/Xcode/DerivedData/project-gqirresgntulppesvshjgagnzupy/Build/Products/Debug-iphoneos/RevenueCat.o
    /Users/username/Library/Developer/Xcode/DerivedData/project-gqirresgntulppesvshjgagnzupy/Build/Products/Debug-iphoneos/RevenueCat_CustomEntitlementComputation.o
duplicate symbol '_OBJC_CLASS_$_RCPromotionalOfferEligibility' in:
    /Users/username/Library/Developer/Xcode/DerivedData/project-gqirresgntulppesvshjgagnzupy/Build/Products/Debug-iphoneos/RevenueCat.o
    /Users/username/Library/Developer/Xcode/DerivedData/project-gqirresgntulppesvshjgagnzupy/Build/Products/Debug-iphoneos/RevenueCat_CustomEntitlementComputation.o
duplicate symbol '_OBJC_CLASS_$_RCPurchases' in:
    /Users/username/Library/Developer/Xcode/DerivedData/project-gqirresgntulppesvshjgagnzupy/Build/Products/Debug-iphoneos/RevenueCat.o
    /Users/username/Library/Developer/Xcode/DerivedData/project-gqirresgntulppesvshjgagnzupy/Build/Products/Debug-iphoneos/RevenueCat_CustomEntitlementComputation.o
duplicate symbol '_OBJC_METACLASS_$_RCStoreProductDiscount' in:
    /Users/username/Library/Developer/Xcode/DerivedData/project-gqirresgntulppesvshjgagnzupy/Build/Products/Debug-iphoneos/RevenueCat.o
    /Users/username/Library/Developer/Xcode/DerivedData/project-gqirresgntulppesvshjgagnzupy/Build/Products/Debug-iphoneos/RevenueCat_CustomEntitlementComputation.o
duplicate symbol '_OBJC_CLASS_$_RCIntroEligibility' in:
    /Users/username/Library/Developer/Xcode/DerivedData/project-gqirresgntulppesvshjgagnzupy/Build/Products/Debug-iphoneos/RevenueCat.o
    /Users/username/Library/Developer/Xcode/DerivedData/project-gqirresgntulppesvshjgagnzupy/Build/Products/Debug-iphoneos/RevenueCat_CustomEntitlementComputation.o
duplicate symbol '_OBJC_METACLASS_$_RCStoreTransaction' in:
    /Users/username/Library/Developer/Xcode/DerivedData/project-gqirresgntulppesvshjgagnzupy/Build/Products/Debug-iphoneos/RevenueCat.o
    /Users/username/Library/Developer/Xcode/DerivedData/project-gqirresgntulppesvshjgagnzupy/Build/Products/Debug-iphoneos/RevenueCat_CustomEntitlementComputation.o
duplicate symbol '_OBJC_METACLASS_$_RCStorefront' in:
    /Users/username/Library/Developer/Xcode/DerivedData/project-gqirresgntulppesvshjgagnzupy/Build/Products/Debug-iphoneos/RevenueCat.o
    /Users/username/Library/Developer/Xcode/DerivedData/project-gqirresgntulppesvshjgagnzupy/Build/Products/Debug-iphoneos/RevenueCat_CustomEntitlementComputation.o
duplicate symbol '_OBJC_METACLASS_$_RCCustomerInfo' in:
    /Users/username/Library/Developer/Xcode/DerivedData/project-gqirresgntulppesvshjgagnzupy/Build/Products/Debug-iphoneos/RevenueCat.o
    /Users/username/Library/Developer/Xcode/DerivedData/project-gqirresgntulppesvshjgagnzupy/Build/Products/Debug-iphoneos/RevenueCat_CustomEntitlementComputation.o
duplicate symbol '_OBJC_CLASS_$_RCDangerousSettings' in:
    /Users/username/Library/Developer/Xcode/DerivedData/project-gqirresgntulppesvshjgagnzupy/Build/Products/Debug-iphoneos/RevenueCat.o
    /Users/username/Library/Developer/Xcode/DerivedData/project-gqirresgntulppesvshjgagnzupy/Build/Products/Debug-iphoneos/RevenueCat_CustomEntitlementComputation.o
duplicate symbol '_OBJC_METACLASS_$_RCPromotionalOfferSignedData' in:
    /Users/username/Library/Developer/Xcode/DerivedData/project-gqirresgntulppesvshjgagnzupy/Build/Products/Debug-iphoneos/RevenueCat.o
    /Users/username/Library/Developer/Xcode/DerivedData/project-gqirresgntulppesvshjgagnzupy/Build/Products/Debug-iphoneos/RevenueCat_CustomEntitlementComputation.o
 

 

The RevenueCat is 4.27.1

 

icon

Best answer by uk-f63070 6 October 2023, 15:50

View original

1 reply

Badge

Hey George,

This issue already answered at RC Github Page. Could you try that step and build your code again?

https://github.com/RevenueCat/purchases-ios/issues/3117#issuecomment-1697199059

Reply