I'm attempting to do the same thing.
Are you getting errors in the console? Here's what I'm getting:
2022-12-09 11:35:17.208256-0800 StoreDemo1[20986:8095799] [SceneConfiguration] Info.plist contained no UIScene configuration dictionary (looking for configuration named "(no name)")
2022-12-09 11:35:17.208310-0800 StoreDemo1[20986:8095799] [SceneConfiguration] Info.plist contained no UIScene configuration dictionary (looking for configuration named "(no name)")
2022-12-09 11:35:17.208380-0800 StoreDemo1[20986:8095799] [SceneConfiguration] Info.plist contained no UIScene configuration dictionary (looking for configuration named "(no name)")
2022-12-09 11:35:17.273253-0800 StoreDemo1[20986:8095825] [Default] [StoreKit] Did not receive any products or error for products request.
Post
Replies
Boosts
Views
Activity
How do you sign out of a dev account in Xcode?
So it appears the problem it had was with the order of the parameters, because the following builds without error:
`var action: () -> Void
var title: String
var desc: String {
get {
return self._desc
}
set {
self._desc = newValue
self.suggestions = newValue.components(separatedBy: "\n\n")
}
}
private var _desc: String = ""
private var suggestions:[String] = []
public init(action: @escaping () -> Void, title: String, desc: String) {
self.action = action
self.title = title
self.desc = desc
}`
Also worth mentioning is that the type of value being added as a parameter didn't matter (I tried it as a string and it was the same as when it was a function).
If anyone can explain what is going on here—I'd very much appreciate it. If you happen to run into this problem, try rearranging the order of your parameters.
I am also experiencing this. I didn't make any changes that effect any kind of state whatsoever. I merely attempted to edit the Entitlements File, and then undid the changes. This error appeared and now it won't go away. Even reverting to previous builds doesn't make it stop
Okay, so what worked for me was to include the toolbar with buttons in the screens which don't require buttons and then to hide them with an opacity modifier set to 0.0, like so:
Button(action: {}) {
Label("Share", systemImage: "square.and.arrow.up")
}
.opacity(0.0)