NSFileManager creating folder (Cocoa error 513.)

前端 未结 4 1144
深忆病人
深忆病人 2020-12-02 17:33

I\'m trying to create a folder inside the /sounds folder of my app.

-(void)productPurchased:(UAProduct*) product {
    NSLog(@\"[StoreFrontDelegate] Purchase         


        
4条回答
  •  醉梦人生
    2020-12-02 17:53

    This is because you should never modify the bundle of your application at runtime. Instead, you should have a folder elsewhere where you can add resources.

    EDIT:
    The error you are seeing is most likely because you cannot write to the bundle.

提交回复
热议问题