Superwall-iOS icon indicating copy to clipboard operation
Superwall-iOS copied to clipboard

[BUG] Release doesn't compile in Xcode

Open mrhussain0334 opened this issue 7 months ago • 5 comments

New issue checklist

  • [x] I have reviewed the README and documentation
  • [x] I have searched existing issues and this is not a duplicate
  • [ ] I have attempted to reproduce the issue and include an example project.

General information

  • Superwall version: 4.2.0
  • iOS version(s): 18.4
  • Xcode version: 16.3

Describe the bug

I am trying to create a MAUI iOS binding for this library by adding header files to it but when I try to build this in Xcode or using make-xcframework.sh it gives me error

error: Build input files cannot be found: '/Users/h/Work/Superwall-iOS-4.2.0/Sources/SuperwallKit/Models/Assignment/AssignmentPostback.swift', '/Users/h/Work/Superwall-iOS-4.2.0/Sources/SuperwallKit/Models/Assignment/ConfirmedAssignment.swift', '/Users/h/Work/Superwall-iOS-4.2.0/Sources/SuperwallKit/Models/Assignment/ConfirmedAssignmentResponse.swift', '/Users/h/Work/Superwall-iOS-4.2.0/Sources/SuperwallKit/Models/Geo/GeoInfo.swift', '/Users/h/Work/Superwall-iOS-4.2.0/Sources/SuperwallKit/Models/Geo/GeoWrapper.swift', '/Users/h/Work/Superwall-iOS-4.2.0/Sources/SuperwallKit/Models/Product/ProductItem.swift', '/Users/h/Work/Superwall-iOS-4.2.0/Sources/SuperwallKit/Analytics/Superwall Placement/SuperwallPlacement.swift', '/Users/h/Work/Superwall-iOS-4.2.0/Sources/SuperwallKit/Analytics/Superwall Placement/SuperwallPlacementObjc.swift', '/Users/h/Work/Superwall-iOS-4.2.0/Sources/SuperwallKit/Analytics/Internal Tracking/Trackable Events/TrackableSuperwallPlacement.swift', '/Users/h/Work/Superwall-iOS-4.2.0/Sources/SuperwallKit/Paywall/Presentation/Internal/Operators/WaitForEntitlementsAndConfig.swift'. Did you forget to declare these files as outputs of any script phases or custom build rules which produce them?

Steps to reproduce

Download the release 4.2.0 and use make-xcframework.sh or use xcode to build.

mrhussain0334 avatar Apr 19 '25 17:04 mrhussain0334

Does the example app build for you?

yusuftor avatar Apr 22 '25 12:04 yusuftor

+1 on this, there are missing build files. Using Xcode 16.2. @yusuftor

Build input files cannot be found: '/Superwall-iOS-develop/Sources/SuperwallKit/Paywall/Presentation/Internal/Operators/WaitForEntitlementsAndConfig.swift', '/Superwall-iOS-develop/Sources/SuperwallKit/Analytics/Internal Tracking/Trackable Events/TrackableSuperwallPlacement.swift', '/Superwall-iOS-develop/Sources/SuperwallKit/Analytics/Superwall Placement/SuperwallPlacementObjc.swift', '/Superwall-iOS-develop/Sources/SuperwallKit/Analytics/Superwall Placement/SuperwallPlacement.swift', '/Superwall-iOS-develop/Sources/SuperwallKit/Models/Product/ProductItem.swift', '/Superwall-iOS-develop/Sources/SuperwallKit/Models/Geo/GeoWrapper.swift', '/Superwall-iOS-develop/Sources/SuperwallKit/Models/Geo/GeoInfo.swift', '/Superwall-iOS-develop/Sources/SuperwallKit/Models/Assignment/ConfirmedAssignmentResponse.swift', '/Superwall-iOS-develop/Sources/SuperwallKit/Models/Assignment/ConfirmedAssignment.swift', '/Superwall-iOS-develop/Sources/SuperwallKit/Models/Assignment/AssignmentPostback.swift'. Did you forget to declare these files as outputs of any script phases or custom build rules which produce them? (in target 'SuperwallKit' from project 'SuperwallKit')

chrisdeweese avatar Apr 29 '25 00:04 chrisdeweese

None of those files exist anymore in that release so I'm not sure why it's still expecting to see them. I can't reproduce it. Maybe you can try clearing your DerivedData and removing/reinstalling the package?

yusuftor avatar Apr 30 '25 09:04 yusuftor

Sorry, I'm referring to the example project in Examples/Advanced. Sounds like a recent update removed the files for the SDK but the changes weren't pushed for the example projects?

chrisdeweese avatar Apr 30 '25 19:04 chrisdeweese

We use the advanced example app when working on the SDK. It works for us and I can't reproduce this issue. Did you try cleaning DerivedData?

yusuftor avatar May 01 '25 18:05 yusuftor

I haven't heard back for a while and can't reproduce so I'm gonna close this.

yusuftor avatar May 30 '25 09:05 yusuftor