I have a ContentView
in my app which includes the line of code FileUploadProgressAttributes.
this struct is defined in a file included in the target FileUploadProgressExtension.
and it is an ActivityAttributes.
in ContentView I imported FileUploadProgressExtension,
and the xcode is able to find the FileUploadProgressAttributes
during prebuild. but during build, it gives me
Undefined symbols for architecture arm64:
"FileUploadProgressExtension.FileUploadProgressAttributes.init(filename: Swift.String) -> FileUploadProgressExtension.FileUploadProgressAttributes
the workaround i found is to add the file with the FileUploadProgressAttributes
to my app's target, but I'm not sure if this is the right thing to do. When Xcode created the extension for me, it added the extension target as a target dependency of my app. so obviously if i added this file to my app target it makes the extension target pointless.
First time working with widgets so I'm not sure if I'm missing something.