got the same in Xcode 13.2.1 with swiftui
I have 3 nested ForEach's. Had to break them up into separate functions for each nested ForEach level
Post
Replies
Boosts
Views
Activity
have to keep my Apple Watch turned off. its basically off all the time now. I think ill sell it.
same issue here on iPhone. did you get a resolution to this?
fixed this issue for me. there was a few old screenshots that were loaded under different sizes that don't show up in the 'App Preview and Screenshots' section. I had to go to 'Media Manager' and go through each of the sizes (they are collapsed by default) so I had to expand them to see the other screenshots. deleted them and was able to submit.
Would be nice if there were more descriptive error messages as it appears everyone is getting the same error message for a multitude of different issues. wasted 2 days on this...
Same issue here - any solution?
in 14.2 rc the error is different but reproduced the same way.
to reproduce: open the picker (photos show) then tap on search bar then scroll down slightly and error appears. previously it said "Picker Unavailable", now it says "Unable to load items" with a button that says "try again", after tapping the button the photos appear again until u scroll down again.
ok after weeks of getting nowhere on this, I found the cause.
For me this was caused by having multiple .onOpenURL's similar to you. I had one in each view that I wanted to action the url. While it worked most times, this was causing unpredictable results intermittently for my app and gave this error each time.
So I moved the .onOpenURL to the App file then used an environment variable to pass the url to the views I wanted to action it.
something like this:
struct MyApp: App {
@State var deepLink: URL? = nil
var body: some Scene {
WindowGroup {
ContentView()
.environment(\.deepLink, self.deepLink)
.onOpenURL { url in
guard url.scheme == "myApp" else { return }
self.deepLink = url
/* clear the environment variable so you can send the same url twice */
DispatchQueue.main.asyncAfter(deadline: .now() + .milliseconds(200), execute: {
self.deepLink = nil
})
}
}
}
}
remember to setup your environment variables
import SwiftUI
struct deepLinkKey: EnvironmentKey {
static var defaultValue: URL? = nil
}
extension EnvironmentValues {
var deepLink: URL? {
get { self[deepLinkKey.self] }
set { self[deepLinkKey.self] = newValue }
}
}
then in the views u want to use it in
var body: some View {
content()
.onChange(of:deepLink, perform: { url in
guard url?.scheme == "myApp" else { return }
/* parse the url here*/
})
}
btw thanks for mentioning onOpenURL, otherwise I would never have found it.
also seeing this in Xcode 12.1 (12A7403) with ios 14.1
VideoPlayer(player: player).scaledToFill()
doesn't work either