“Cannot connect to iTunes Store” in-app purchases

前端 未结 17 2345
鱼传尺愫
鱼传尺愫 2020-12-01 06:13

I am having problems testing my in-app purchases. I get back valid product identifiers, but upon purchase I receive the dreaded \"Cannot connect to iTunes Store\". Interesti

17条回答
  •  北海茫月
    2020-12-01 06:40

    This error also had occurred when to SKProductsRequest passed wrong NSSet:

    Wrong:

    let products = NSSet(objects: ["id1", "id2"])
    

    Correct:

    let products = NSSet(objects: "id1", "id2")
    

提交回复
热议问题