自2022年10月12日起,具有外部账户管理/购买功能的读者应用必须申报新的授权。
外链帐号 允许符合条件的应用程序链接到外部网站以创建或管理帐户。 https://developer.apple.com/documentation/storekit/external_link_account
我不能建造因为:
Swift Compiler Error (Xcode): Cannot find 'ExternalLinkAccount' in scope
<plist>
<dict>
<key>SKExternalLinkAccount</key>
<dict>
<key>*</key>
<string>https://example.com</string>
<key>jp</key>
<string>https://example.com/jp</string>
</dict>
</dict>
</plist>
<key>com.apple.developer.storekit.external-link.account</key>
<true/>
<plist>
<dict>
<key>com.apple.developer.storekit.external-link.account</key>
<true/>
</dict>
</plist>
Swift Compiler Error (Xcode): Cannot find 'ExternalLinkAccount' in scope
import SwiftUI
struct ExternalLinkAccountModal: View {
var body: some View {
Text("Hello, world!")
.padding()
.onAppear {
Task {
await executeTask()
}
}
}
}
struct ExternalLinkAccountModal_Previews: PreviewProvider {
static var previews: some View {
ExternalLinkAccountModal(onConfirm: nil, onCancel: nil)
.previewDevice("iPhone 13")
.previewInterfaceOrientation(.portrait)
}
}
func executeTask() async {
let basicTask = Task {
if await ExternalLinkAccount.canOpen {
do {
try await ExternalLinkAccount.open()
} catch {
print("ExternalLinkAccount.open() error \(error)")
}
}
}
}
Associated Domains, External Link Account, In-App Purchase, Push Notifications
你能帮忙解决这个问题吗?
我正在使用 osx Ventura 和 ios16 平台进行开发。
您可能需要:
import StoreKit