Skip to main content
Question

Swift Compiler Error (Xcode): Type 'Bundle' has no member 'module'

  • September 1, 2025
  • 1 reply
  • 39 views

Forum|alt.badge.img+1

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 ?

This post has been closed for comments

1 reply

joan-cardona
RevenueCat Staff
Forum|alt.badge.img+6
  • RevenueCat Staff
  • September 4, 2025

Hi ​@mustafasolak,

Do you mind sharing which version of the Flutter SDK are you integrating? 

It’d be great to know how are you adding the SDK to your project since it seems an issue related on how the package is included. Would you be able to share the relevant part of the pubspec.yaml file.

 

Best,