How to specify application data package in Xcode Schemes?

后端 未结 1 461
悲&欢浪女
悲&欢浪女 2021-02-19 05:31

I\'d like to specify an application data package using Xcode schemes so that I can customize and deploy to the device during testing. However, by default, the Scheme | Option |

1条回答
  •  礼貌的吻别
    2021-02-19 06:20

    Easiest way I know is to go to the Organiser (apple shift 2), and then find a connected device.

    Go to applications and select the application you need app data for and hit download. This is going to dump some of the sandbox data into a package on your dev machine.

    To use this in the scheme, you just need to add this to your project, and then it will show up in the drop down.

    As far as I can see, there isn't a way to choose what data to put in the xcappdata file, but since it is a package, you can open it in the finder ( show package contents) and get rid of anything you don't want.

    Hope this helps

    0 讨论(0)
提交回复
热议问题