I integrated firebase analytics into my unity game and made an android and iOS build, the android build works fine but the iOS build fails and gives me errors. This is the build log where the errors appears:
[2025-01-16T12:37:38.854Z] + [arm64] Linking UnityFramework...
[2025-01-16T12:37:40.989Z] ld64.lld: warning: directory not found for option -LC:/iOS/RSKV_ftr_FirebaseSDK_iOS#5/$(BUILT_PRODUCTS_DIR)
[2025-01-16T12:37:40.989Z] ld64.lld: warning: directory not found for option -Fbuild/Release-iphoneos/XCFrameworkIntermediates/FirebaseAnalytics/AdIdSupport
[2025-01-16T12:37:40.989Z] ld64.lld: warning: directory not found for option -Fbuild/Release-iphoneos/XCFrameworkIntermediates/GoogleAppMeasurement/AdIdSupport
[2025-01-16T12:37:40.989Z] ld64.lld: warning: directory not found for option -Fbuild/Release-iphoneos/XCFrameworkIntermediates/GoogleAppMeasurement/WithoutAdIdSupport
[2025-01-16T12:37:40.989Z] ld64.lld: error: undefined symbol: $s8StoreKit11TransactionV5OfferV4typeAC0D4TypeVvg
[2025-01-16T12:37:40.989Z] >>> referenced by ./Pods/FirebaseAnalytics/Frameworks\FirebaseAnalytics.xcframework\ios-arm64\FirebaseAnalytics.framework\FirebaseAnalytics(Analytics+StoreKit.o):(symbol $sSo12FIRAnalyticsC17FirebaseAnalyticsE14logTransactionyy8StoreKit0E0VFZ+0x4f4)
[2025-01-16T12:37:40.989Z]
[2025-01-16T12:37:40.989Z] ld64.lld: error: undefined symbol: $s8StoreKit11TransactionV5offerAC5OfferVSgvg
[2025-01-16T12:37:40.989Z] >>> referenced by ./Pods/FirebaseAnalytics/Frameworks\FirebaseAnalytics.xcframework\ios-arm64\FirebaseAnalytics.framework\FirebaseAnalytics(Analytics+StoreKit.o):(symbol $sSo12FIRAnalyticsC17FirebaseAnalyticsE14logTransactionyy8StoreKit0E0VFZ+0x460)
[2025-01-16T12:37:40.989Z] >>> referenced by ./Pods/FirebaseAnalytics/Frameworks\FirebaseAnalytics.xcframework\ios-arm64\FirebaseAnalytics.framework\FirebaseAnalytics(Analytics+StoreKit.o):(symbol $sSo12FIRAnalyticsC17FirebaseAnalyticsE14logTransactionyy8StoreKit0E0VFZ+0xa4)
[2025-01-16T12:37:40.989Z]
[2025-01-16T12:37:40.989Z] ld64.lld: error: undefined symbol: $s8StoreKit11TransactionV5OfferV11PaymentModeVSQAAMc
[2025-01-16T12:37:40.989Z] >>> referenced by ./Pods/FirebaseAnalytics/Frameworks\FirebaseAnalytics.xcframework\ios-arm64\FirebaseAnalytics.framework\FirebaseAnalytics(Analytics+StoreKit.o):(symbol $sSo12FIRAnalyticsC17FirebaseAnalyticsE14logTransactionyy8StoreKit0E0VFZ+0x380)
[2025-01-16T12:37:40.989Z] >>> referenced by ./Pods/FirebaseAnalytics/Frameworks\FirebaseAnalytics.xcframework\ios-arm64\FirebaseAnalytics.framework\FirebaseAnalytics(Analytics+StoreKit.o):(symbol $sSo12FIRAnalyticsC17FirebaseAnalyticsE14logTransactionyy8StoreKit0E0VFZ+0x37c)
[2025-01-16T12:37:40.989Z]
[2025-01-16T12:37:40.989Z] ld64.lld: error: undefined symbol: $s8StoreKit11TransactionV5OfferV11PaymentModeVMa
[2025-01-16T12:37:40.989Z] >>> referenced by ./Pods/FirebaseAnalytics/Frameworks\FirebaseAnalytics.xcframework\ios-arm64\FirebaseAnalytics.framework\FirebaseAnalytics(Analytics+StoreKit.o):(symbol $sSo12FIRAnalyticsC17FirebaseAnalyticsE14logTransactionyy8StoreKit0E0VFZ+0x378)
[2025-01-16T12:37:40.989Z] >>> referenced by ./Pods/FirebaseAnalytics/Frameworks\FirebaseAnalytics.xcframework\ios-arm64\FirebaseAnalytics.framework\FirebaseAnalytics(Analytics+StoreKit.o):(symbol $sSo12FIRAnalyticsC17FirebaseAnalyticsE14logTransactionyy8StoreKit0E0VFZ+0x374)
[2025-01-16T12:37:40.989Z] >>> referenced by ./Pods/FirebaseAnalytics/Frameworks\FirebaseAnalytics.xcframework\ios-arm64\FirebaseAnalytics.framework\FirebaseAnalytics(Analytics+StoreKit.o):(symbol $sSo12FIRAnalyticsC17FirebaseAnalyticsE14logTransactionyy8StoreKit0E0VFZ+0x1a8)
[2025-01-16T12:37:40.989Z] >>> referenced 1 more times
[2025-01-16T12:37:40.989Z]
[2025-01-16T12:37:40.989Z] ld64.lld: error: undefined symbol: $s8StoreKit11TransactionV5OfferV11PaymentModeV9freeTrialAGvgZ
[2025-01-16T12:37:40.989Z] >>> referenced by ./Pods/FirebaseAnalytics/Frameworks\FirebaseAnalytics.xcframework\ios-arm64\FirebaseAnalytics.framework\FirebaseAnalytics(Analytics+StoreKit.o):(symbol $sSo12FIRAnalyticsC17FirebaseAnalyticsE14logTransactionyy8StoreKit0E0VFZ+0x1a0)
[2025-01-16T12:37:40.989Z]
[2025-01-16T12:37:40.989Z] ld64.lld: error: undefined symbol: $s8StoreKit11TransactionV5OfferV11paymentModeAE07PaymentF0VSgvg
[2025-01-16T12:37:40.989Z] >>> referenced by ./Pods/FirebaseAnalytics/Frameworks\FirebaseAnalytics.xcframework\ios-arm64\FirebaseAnalytics.framework\FirebaseAnalytics(Analytics+StoreKit.o):(symbol $sSo12FIRAnalyticsC17FirebaseAnalyticsE14logTransactionyy8StoreKit0E0VFZ+0x158)
[2025-01-16T12:37:40.989Z]
[2025-01-16T12:37:40.989Z] ld64.lld: error: undefined symbol: $s8StoreKit11TransactionV5OfferVMa
[2025-01-16T12:37:40.989Z] >>> referenced by ./Pods/FirebaseAnalytics/Frameworks\FirebaseAnalytics.xcframework\ios-arm64\FirebaseAnalytics.framework\FirebaseAnalytics(Analytics+StoreKit.o):(symbol $sSo12FIRAnalyticsC17FirebaseAnalyticsE14logTransactionyy8StoreKit0E0VFZ+0xac)
[2025-01-16T12:37:40.989Z]
[2025-01-16T12:37:40.989Z] ld64.lld: error: undefined symbol: $s8StoreKit11TransactionV5OfferV11PaymentModeVMn
[2025-01-16T12:37:40.989Z] >>> referenced by ./Pods/FirebaseAnalytics/Frameworks\FirebaseAnalytics.xcframework\ios-arm64\FirebaseAnalytics.framework\FirebaseAnalytics(Analytics+StoreKit.o):(symbol symbolic _____Sg 8StoreKit11TransactionV5OfferV11PaymentModeV+0x1)
[2025-01-16T12:37:40.989Z] >>> referenced by ./Pods/FirebaseAnalytics/Frameworks\FirebaseAnalytics.xcframework\ios-arm64\FirebaseAnalytics.framework\FirebaseAnalytics(Analytics+StoreKit.o):(symbol symbolic _____Sg_ABt 8StoreKit11TransactionV5OfferV11PaymentModeV+0x1)
[2025-01-16T12:37:40.989Z]
[2025-01-16T12:37:40.989Z] ld64.lld: error: undefined symbol: $s8StoreKit11TransactionV5OfferVMn
[2025-01-16T12:37:40.989Z] >>> referenced by ./Pods/FirebaseAnalytics/Frameworks\FirebaseAnalytics.xcframework\ios-arm64\FirebaseAnalytics.framework\FirebaseAnalytics(Analytics+StoreKit.o):(symbol symbolic _____Sg 8StoreKit11TransactionV5OfferV+0x1)
[2025-01-16T12:37:40.989Z]
script returned exit code 1

Can someone help identify the problem and how to solve it?
I tried adding StoreKit.framework to XCode list of frameworks and the error persisted. I updated firebase analytics and appcore to their latest versions and wasn't able to solve the problem.