CocoaPods can't compile (Bitrise, fastlane)
- [X] I have updated Purchases SDK to the latest version
- [X] I have read the Contribution Guidelines
- [X] I have searched the Community
- [X] I have read docs.revenuecat.com
- [X] I have searched for existing Github issues
Describe the bug
The newest version of the cocoa pods version can't compile. We migrated from 5.3.3 to the newest 5.20.1. We use fast lane to build the project.
gym(
scheme: "OurAppAdHoc",
clean: true
)
The underlying command:
set -o pipefail && xcodebuild -workspace ./OurApp.xcworkspace -scheme OurAppAdHoc -destination 'generic/platform=iOS' -archivePath /Users/vagrant/Library/Developer/Xcode/Archives/2025-03-21/OurApp\ 2025-03-21\ 10.39.27.xcarchive clean archive | tee /var/folders/b8/9zt_tx3s1y37nzh_cs991xyc0000gn/T/fastlane_logs1758332179/gym/OurApp-OurAppAdHoc.log | xcbeautify
Result:
[RevenueCat] Compiling RevenueCat-dummy.m
❌ error: Build input files cannot be found: '/Users/vagrant/git/Pods/RevenueCatUI/RevenueCatUI/Templates/V2/Components/Icon/IconComponentView.swift', '/Users/vagrant/git/Pods/RevenueCatUI/RevenueCatUI/Templates/V2/Components/Icon/IconComponentViewModel.swift'. Did you forget to declare these files as outputs of any script phases or custom build rules which produce them? (in target 'RevenueCatUI' from project 'Pods')
** ARCHIVE FAILED **
The following build commands failed:
SwiftDriver\ Compilation\ Requirements RevenueCatUI normal arm64 [com.apple.xcode.tools](https://com.apple.xcode.tools/).swift.compiler (in target 'RevenueCatUI' from project 'Pods')
Archiving workspace OurApp with scheme OurAppAdHoc
(2 failures)
- Environment
- Platform: iOS
- SDK version: 5.20.1
- StoreKit version:
- [ ] StoreKit 1 (default on versions <5.0.0. Can be enabled in versions >=5.0.0 with
.with(storeKitVersion: .storeKit1)) - [x] StoreKit 2 (default on versions >=5.0.0)
- [ ] StoreKit 1 (default on versions <5.0.0. Can be enabled in versions >=5.0.0 with
- OS version: macOS 14.5 Sonoma
- Xcode version: Xcode 16.2
- Device and/or simulator:
- [X] Device
- [ ] Simulator
- Environment:
- [X] Sandbox
- [X] TestFlight
- [X] Production
- How widespread is the issue. Percentage of devices affected. -- None, it does not compile.
- Debug logs that reproduce the issue. Complete logs with
Purchases.logLevel = .verbosewill help us debug this issue.
N/A
- Steps to reproduce, with a description of expected vs. actual behavior
I. Add pod in the pod file + pod install
platform :ios, '15.0'
source 'https://github.com/CocoaPods/Specs.git'
inhibit_all_warnings!
use_frameworks!
target 'OurApp' do
pod 'RevenueCat', '5.20.1'
pod 'RevenueCatUI', '5.20.1'
end
II. Run fastlane (locally or on Bitrise/CI) III. It does not compile.
- Other information (e.g. stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, etc.)
It seems the file IconComponentViewModel.swift is not properly processed (linked?).
- Additional context Add any other context about the problem here.
👀 We've just linked this issue to our internal tracker and notified the team. Thank you for reporting, we're checking this out!
We tried to bump cocoapods (from 1.14.2 to 1.16.2) and fastlane (from 2.225.0 to 2.227.0) so we use the newest versions but it didn't help.