问题描述:
内购完成会,会受到以下回调,一般我们会通过payment的applicationusername
用于关联我们的orderId等信息,但是在iOS14这个字段会丢失
- (void)paymentQueue:(SKPaymentQueue *)queue
updatedTransactions:(NSArray<SKPaymentTransaction *> *)transactions
解决方法:
通过payment的productIdentifier
作为Key去存储applicationusername
,同时也要做同一个productIdentifier
购买未完成时,不能再购买同一个productIdentifier
的操作。
问题描述:
更新完xcode14后发现,工程的构建的framework
在模拟器运行失败,报没有x86_64
架构,编译后通过 lipo -info指令发现只有arm64的架构,没有x86_64的架构。
解决方法: 在VALID_ARCHS中加入了x86_64之后我这里就可以正常运行了