Popovers icon indicating copy to clipboard operation
Popovers copied to clipboard

Example: Conflict with `UIKit` Name with Xcode 15/iOS 17

Open philipbel opened this issue 2 years ago • 0 comments

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 {
       ^

philipbel avatar Nov 08 '23 14:11 philipbel