I have a Kotlin Multiplatform library in iOS which is installed as a Pod in my Xcode project. I am able to build in Xcode fine with a simulator target. I am also able to run Xcode > Product > Archive without issues. The issue is when I try to generate a Beta build.
When I run fastlane beta, I get:
Exit Code 65
** ARCHIVE FAILED **
[09:00:39]: ▸ The following build commands failed:
[09:00:39]: ▸ PhaseScriptExecution [CP-User]\
Build\ USER/Library/Developer/Xcode/DerivedData/MyApp-hcjgimlnfvcffcbpuwpfwifkgikb/Build/Intermediates.noindex/
ArchiveIntermediates/MyApp/IntermediateBuildFilesPath/Pods.build/Beta-iphoneos/mymultiplatformlibrary.build/
Script-8FCFFD85020DFCF30210C03ECFF91358.sh (in target 'mymultiplatformlibrary' from project 'Pods')
Podfile
pod 'mymultiplatformlibrary', :path => '<shared library path>'
Xcode: 13.2
iOS min target: 12.0