1. In Xcode, choose Product -> Edit Scheme and then click the Arguments tab

 

XCode增加参数

 

2 As shown in the following screen shot, click the plus sign in the Arguments Passed On Launch section, and
type the launch argument—in this case, the path to the words.txt file

XCode增加参数

 

 

 

相关文章: