I'm using xCode 13 beta
4 and want to archive my project containing Kingfisher
.
The app runs fine under iOS 15
, however I get the following errors when I look to archive it. Anyone with an idea what I should do? Thanks!
Asked
Active
Viewed 4,162 times
2

Fahim Parkar
- 30,974
- 45
- 160
- 276

mcmgr
- 21
- 1
- 2
-
`AnyCancellable` is from Combine framework. And it works only for ios 13 and above. Set your deployment target in your Project Settings to above ios 13 – Quang Hà Sep 16 '21 at 00:31
4 Answers
4
If you are using Xcode 13, here is a workaround.
If you need to use Xcode 13 but cannot upgrade to v7, use the version6-xcode13 branch. However, you have to drop iOS 10 support due to an Xcode 13 bug.
pod 'Kingfisher', :git => 'https://github.com/onevcat/Kingfisher.git', :branch => 'version6-xcode13'

Abu-Bakr
- 408
- 6
- 12
4
Having Xcode 13 upgrade, after pod update, I start getting the same issue as you, after a workaround, I found two ways:
Downgrade Kingfisher to 5.x like:
pod 'Kingfisher', '~>5.15.7'
OR
- In Deployment Info, upgrade your iOS support version to 12.0
Waiting for any fix from Kingfisher, I opted for downgrading to 5.x

user2167877
- 1,676
- 1
- 14
- 15
-
1Need to update both app and Kingfisher, Deployment Info, support version to 12.0 – Oshitha Wimalasuriya May 06 '22 at 03:58
2
This script worked for me on Xcode 13
post_install do |pi|
pi.pods_project.targets.each do |t|
t.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '11.0'
end
end
end

Masroor
- 76
- 6