我正在构建一个使用 IAP 的应用程序。
我注意到比在 Sandbox 环境中购买产品时(使用以下基本代码)
SKPayment * payment = [SKPayment paymentWithProduct:product];
[[SKPaymentQueue defaultQueue] addPayment:payment];
Run Code Online (Sandbox Code Playgroud)
如果我是第一次输入沙盒帐户凭据,我会看到 iTunes 登录对话框和使用现有 Apple ID、创建新 Apple ID、取消对话框。
然后我输入我的沙盒帐户凭据...然后我会被提示完全相同的对话框再次输入凭据...之后我就可以成功购买了。
在随后的购买尝试中,我只提示输入一次我的凭据。
只有在我的设备上的“设置”->“iTunes 和 App Store”->“Apple ID”中没有设置 Apple ID 时,才会发生这种情况。
知道为什么会这样吗?
自从在两台运行 macOS 10.15.6 的不同 MacBook 上升级到 XCode12.4 后,我在打开 Storyboard / Xib 文件时遇到了问题。
\n需要明确的是,这种情况不会发生在特定项目中 - 这种情况发生在我打开的任何项目以及该项目中的任何Storyboard/xib 文件中。
\n在文件打开之前和我看到文件打开时有很长的延迟。
\nUI 组件以蓝色轮廓显示,而不是细节。
\n错误消息:发生内部错误编辑功能可能受到限制
\n来自我的log.txt
\nXCODE VERSION INFO:\n\nVersion = 12.4 (12D4e)\nPlugin Version = 17701\nBeta Version = 1\nOS Version = 10.15.6 (19G2021)\n\n\nASSERTION:\n\nFailed to update scene '01J-lp-oVM' with IBUIViewAutolayoutGuide (x1), UIView (x1), and UIViewController (x1).\n\nException name: IBPlatformToolFailureException\nException reason: The tool closed the connection\n\nApplication Specific Information:\n** Terminating app due to uncaught exception 'NSInternalInconsistencyException', …Run Code Online (Sandbox Code Playgroud)