Working OK now (without any further changes at my end)
Post
Replies
Boosts
Views
Activity
Same problem - I've gone as far as completely reinstalling Xcode - no change. Google gave a couple of suggestions where this message has shown up in the past - but they did no good either.
Hmm - it seems that changing Signing Certificate to Development works in my situation
Did you find a solution? I'm getting the same message and I've done this many times for this app in the past.
No - all the information is there - its just very difficult to access using the tools Apple provides.
Yes same here
Revised code with raw file taken from Xcode asset (Still have the same issue)
struct ContentView: View {
@State private var image: Image?
var body: some View {
VStack {
image?
.resizable()
.scaledToFit()
}
.onAppear(perform: loadImage)
}
func loadImage() {
guard let asset = NSDataAsset(name: "Rawsample") else { return }
let data = asset.data
image = Image(uiImage:UIImage(data:data)!)
}
}
Apparently the code should not have used AsyncImage for a local file - but the logic remains the same