RevenueCat / purchases-flutter

Flutter plugin for in-app purchases and subscriptions. Supports iOS, macOS and Android.
https://www.revenuecat.com/
MIT License
593 stars 160 forks source link

Swift Compiler Error (Xcode): '@objc' property in extension of subclass #1079

Open spn107 opened 1 month ago

spn107 commented 1 month ago

‼️ Required data ‼️

Do not remove any of the steps from the template below. If a step is not applicable to your issue, please leave that step empty.

There are a lot of things that can contribute to things not working. Having a very basic understanding of your environment will help us understand your issue faster!

Environment

Describe the bug

Failed to build iOS app

Swift Compiler Error (Xcode): '@objc' property in extension of subclass of 'Offering' requires iOS 13.0.0 /Users/noob/Documents/Spondonit_office/lms_flutter_app/lms_flutter_app/ios/Pods/PurchasesHybridCommon/ios/PurchasesHybridCommon/PurchasesHybridCommon/Offering+HybridAdditions.swift:13:14

Swift Compiler Error (Xcode): '@objc' property in extension of subclass of 'PromotionalOffer' requires iOS 13.0.0 /Users/noob/Documents/Spondonit_office/lms_flutter_app/lms_flutter_app/ios/Pods/PurchasesHybridCommon/ios/PurchasesHybridCommon/PurchasesHybridCommon/PromotionalOffer+HybridAdditions.swift:13:8

Swift Compiler Error (Xcode): '@objc' static method in extension of subclass of 'Purchases' requires iOS 13.0.0 /Users/noob/Documents/Spondonit_office/lms_flutter_app/lms_flutter_app/ios/Pods/PurchasesHybridCommon/ios/PurchasesHybridCommon/PurchasesHybridCommon/Purchases+HybridAdditions.swift:15:16

Swift Compiler Error (Xcode): '@objc' static method in extension of subclass of 'Purchases' requires iOS 13.0.0 /Users/noob/Documents/Spondonit_office/lms_flutter_app/lms_flutter_app/ios/Pods/PurchasesHybridCommon/ios/PurchasesHybridCommon/PurchasesHybridCommon/Purchases+HybridAdditions.swift:73:16

Uncategorized (Xcode): Command SwiftCompile failed with a nonzero exit code

RCGitBot commented 1 month ago

👀 We've just linked this issue to our internal tracker and notified the team. Thank you for reporting, we're checking this out!

mshmoustafa commented 1 month ago

Hi @spn107 what is your iOS deployment target? Open the Xcode project in the ios folder, click on your target, Build, iOS Deployment Target. You can follow this guide as a reference: https://www.avanderlee.com/workflow/minimum-ios-version/

spn107 commented 1 month ago

Hello

Hi @spn107 what is your iOS deployment target? Open the Xcode project in the ios folder, click on your target, Build, iOS Deployment Target. You can follow this guide as a reference: https://www.avanderlee.com/workflow/minimum-ios-version/

I am using minimum deployment ios 13

Screenshot 2024-05-29 at 1 56 57 PM
almzayyen commented 2 weeks ago

I am also facing this issue

mshmoustafa commented 18 hours ago

Hello,

Apologies for the delay, this issue got lost in our ticket tracking system. I'll make sure to watch this issue so that it doesn't go unattended for too long again.

Are you building from Xcode or using flutter build ios? Does building from Xcode work? You might have some mismatch between the podfile and the pubspec but building from Xcode should bypass all of that.