如果我在 Build Phases 中将 StoreKit 的状态设置为可选,Parse 会正常工作吗

Will Parse working correctly if I set StoreKit's status to optional in Build Phases

我想在我的项目中使用 Appirater 库,但在阅读了它的安装教程后,有一点不太清楚。

Be sure to change Required to Optional for StoreKit in your target's Build Phases » Link Binary with Libraries section.

如果我将 StoreKit 框架的 statusRequired 设置为 Optional,这会影响与我的 Parse 实现相关的任何内容吗?因为 Parse iOS SDK 也需要 StoreKit。或者切换到 Optional 意味着框架将仅在需要时加载并且没有任何副作用,因此 Parse 也可以正常工作?我说得对还是那样不容易?

如果有人能给我一些指导,我将不胜感激,谢谢。

tl;dr 没关系。 OptionalRequired 对于 2015 年的 StoreKit 实际上是相同的。

设置一个框架Optional本质上就是告诉系统"Don't crash this app if you can't find this framework on the iOS device you are running on"。 StoreKit 是很久以前在 iOS 中引入的,因此在 3(当引入 StoreKit 时)之前仍然存在 iOS 版本的设备的可能性很小。

Appirater 说明将其设置为 Optional 的唯一原因是因为在编写这些说明时,仍然有很多 iOS 设备具有 iOS 没有 StoreKit,Appirater 可以 运行 没有它,所以没有理由让应用程序崩溃。因此,说明说要做到 Optional.

也就是说,我应该在 Appirater.h 中简化 Appirater 设置和 @import StoreKit,这样就没有人再需要处理它了。