Is there a way to pass command line options to my iOS app from Xcode?

后端 未结 4 2001
半阙折子戏
半阙折子戏 2021-02-19 00:37

I\'m hoping to find a method to pass certain information in to my app when I launch it during testing, so that I can perform special debug tasks. Xcode has a section \"Arguments

4条回答
  •  时光说笑
    2021-02-19 00:53

    You can access them using NSProcessInfo object like this,

    NSArray * arguments = [[NSProcessInfo processInfo] arguments];
    

提交回复
热议问题