Hello,
I’m trying to integrate Revenuecat Paywall into my Flutter app and getting an error like below :
Xcode build done. 60,5s
Failed to build iOS app
Could not build the precompiled application for the device.
Swift Compiler Error (Xcode): Type 'Bundle' has no member 'module'
/Users/username/Desktop/projects/projectname/ios/Pods/RevenueCatUI/RevenueCatUI/Helpers/PaywallData+Default.swift:116:47
Swift Compiler Error (Xcode): Type 'Bundle' has no member 'module'
/Users/username/Desktop/projects/projectname/ios/Pods/RevenueCatUI/RevenueCatUI/Helpers/PaywallData+Default.swift:116:76
2
Error launching application on Mustafa1.
Exited (1).
On line 116:47 in PaywallData+Default.swift is :
static let defaultTemplateBaseURL = Bundle.module.resourceURL ?? Bundle.module.bundleURL
So I changed every module to main and it worked.
But I know this is temporarily solution. What should I do or what I’m missing ?
