Builds and runs, but can not archive using interface builder
RaaghavM opened this issue · comments
I am using this multi-select segmented control using Interface Builder and not SwiftUI, and everything runs smoothly. However, when I go to archive the project to publish in the App Store, it seems to give compiler errors in the MultiSegmentPicker.swift file, although this code should not run since I am not using SwiftUI. Is there a way to get around this issue?
Try using the master
branch instead of the swiftui
branch.
Thanks for your quick response! I believe I'm using the master
branch? I'm using Swift Package Manager and followed the instructions for setup in the README
for this project. I am simply using the URL https://github.com/yonat/MultiSelectSegmentedControl, and I believe it defaults to the master
branch. Is there something else I'm missing?
Sorry, I missed the problem. Try using version 2.2.0 until I find a better fix, sorry.
(I'm assuming you can't change the deployment target to iOS 13...)
Another option is to use CocoaPods instead of spm.
This seems to be a bug in spm: https://bugs.swift.org/browse/SR-11907
I'm actually using iOS 13 as the deployment target, but this problem still persists. I'll try using version 2.2.0, or CocoaPods if that doesn't work either. Thanks for your help!
Used CocoaPods and it was successful.