I posted an answer for the same issue in this thread: https://developer.apple.com/forums/thread/714721?answerId=732601022#732601022
The one that I found in my project is a kind of defining typealias inside a protocol
I changed from
public protocol Reusable {
typealias Cell = UITableViewCell & Reusable
typealias View = UITableViewHeaderFooterView & Reusable
static var reuseIdentifier: String { get }
}
to
public typealias ReusableCell = UITableViewCell & Reusable
public typealias ReusableView = UITableViewHeaderFooterView & Reusable
public protocol Reusable {
static var reuseIdentifier: String { get }
}
Post
Replies
Boosts
Views
Activity
Hello,
This is a crash issue of XC14 compiler. I took hours to search on every forum and Github issues of some well-known project with their releases for XC14&iOS16 and found that almost everything is related in a common fix about: defining typealias inside a protocol
For details, my case is currently due to
public protocol Reusable {
typealias Cell = UITableViewCell & Reusable
typealias View = UITableViewHeaderFooterView & Reusable
static var reuseIdentifier: String { get }
}
I changed them to
public typealias ReusableCell = UITableViewCell & Reusable
public typealias ReusableView = UITableViewHeaderFooterView & Reusable
public protocol Reusable {
static var reuseIdentifier: String { get }
}
and get the compiler run successfully.
You may have my case to check your source code for similar issue. My code was running well with XC13 but start breaking since XC14