Skip to content

Example: Conflict with UIKit Name with Xcode 15/iOS 17 #104

@philipbel

Description

@philipbel

Xcode 15/iOS 17 automatically generates asset symbols.
The UIKit struct in UIKit.swift causes a conflict in GeneratedAssetSymbols.swift (the Xcode generated file) and the Examples project fails to build:

DerivedData/PopoversExample-elyygqgsxdjpvofmfzweokndwyir/Build/Intermediates.noindex/PopoversExample.build/Debug-iphonesimulator/PopoversExample.build/DerivedSources/GeneratedAssetSymbols.swift:105:17: error: 'UIColor' is not a member type of struct 'PopoversExample.UIKit'
extension UIKit.UIColor {
          ~~~~~ ^
Popovers/Examples/PopoversExample/UIKit/UIKit.swift:11:8: note: 'UIKit' declared here
struct UIKit: View {
       ^
DerivedData/PopoversExample-elyygqgsxdjpvofmfzweokndwyir/Build/Intermediates.noindex/PopoversExample.build/Debug-iphonesimulator/PopoversExample.build/DerivedSources/GeneratedAssetSymbols.swift:120:17: error: 'UIImage' is not a member type of struct 'PopoversExample.UIKit'
extension UIKit.UIImage {
          ~~~~~ ^
Popovers/Examples/PopoversExample/UIKit/UIKit.swift:11:8: note: 'UIKit' declared here
struct UIKit: View {
       ^

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions