Post

Replies

Boosts

Views

Activity

Reply to Xcode 12 Build failed, error: circular reference
Hi @wkKevin, I think this error is logical. I ran the same issue - https://stackoverflow.com/questions/64785101/got-an-error-circular-reference-after-upgrading-to-xcode12 after upgrading my XCode to XCode 12. In my case, I reference the same type to the the type that is using it: class OnboardingStep: NavigationFlowStep<StepInput.OnboardingWelcome> { &#9;&#9;struct InitialData { &#9;&#9;&#9;&#9;var onboardingList: ListTitles &#9;&#9;&#9;&#9;var featuredTitle: Product &#9;&#9;&#9;&#9;var welcomeScreenTitle: Product &#9;&#9;} .... and in OnboardingStepInput.swift I have this InitialData reference there: struct StepInput { ... typealias OnboardingWelcome = (      availableSteps: [OnboardingScreen],     initialData: OnboardingStep.InitialData    ) ... and in your code here, it has similar pattern: extension UIWindow.Level { private static var statusBarRawValue: RawValue { UIWindow.Level.statusBar.rawValue } } it references itself. Maybe not the best explanation that I can come up with, but I think you've got my point.
Nov ’20