Xcode 14 circular reference errors

After updating to Xcode 14.0.1 the app won't run on real device and show me circular reference 

errors only on real devices (in the simulator work fine)

the problem appears even on the swift page only contains a comment

I tried to remove derived data and I updated the pods and also the Swift Package

You blurred the image, so we have very little information. Just possible to give a blurred answer… 😉

it does not make a difference in the blurred swift file names but the errors are still the same, did you face this issue?

The point Claude31 is making is that you've posted an error that appears because some of your code is causing it, but you won't show us your code, so we really can't help you.

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 }
}

Same problem with Xcode 14.2 only when archiving my project

Updating my Pods solved the problem for me :)

Xcode 14 circular reference errors
 
 
Q