I am solving my C assignment in Xcode and in that program i have to give command line arguments when running the program and for this i have to user terminal like this:
./a.out myfirstCommand mySecondCommand
I was wondering if it possible to give these kind of commands within xcode instead of going to terminal. Thanks
从 Xcode 4.x 开始,我必须转到“产品”菜单,选择“编辑方案”,然后选择参数选项卡并在那里添加参数。
键盘快捷键是命令shift <
Pre Xcode 4.x
Right click the executable in your Xcode project and pick "Get Info". Then pick the "arguments" tab and you can set arguments to pass when you run or debug your program from inside Xcode.
Xcode 4.x or later
Go to the Product menu, select "Edit Scheme", then select the arguments tab and add the arguments there.
For XCode v12.5.1, you can pass additional/launch run argument by following action-
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.