Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9271515
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T15:38:06+00:00 2026-06-18T15:38:06+00:00

Currently I am developing a couple of C programs on my mac using Xcode.

  • 0

Currently I am developing a couple of C programs on my mac using Xcode. There however is 1 problem. My study requires me to use some sort of input field through the coding. So for instance if the users wants to run the program 10 times or wants the program to create 10 answers. I am using “atoi(argv[1])” just to get the input from the user.

This is exactly the problem. As soon as I run the program it just starts to bug, which is normal I quess because he is waiting for the input and not receiving it or something else. Anyways I tried to solve this problem with this link: How to run command-line application from the terminal?

This unfortunately didnt solve it either. I have already tried to re-install xcode, because just entering gcc in my terminal doesnt work either, but everytime the app store auto instals it for me.

Does anyone has a fix for my problem. I would greatly appreciate it due to the fact that next friday I have another deadline 🙁 and I wont be getting a sufficient grade if my user input is not working.

Your help is again much appreciated!

Greetings,

Kipt Scriddy

EDIT: To clarify the problem. When running the script I want it to pop up in Terminal and wether there is an input field reguired it should ask for input. At the moment he is crashing immediatly due to the lack of input. He is not waiting for the argument to be passed from the users. He is skipping that part

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T15:38:07+00:00Added an answer on June 18, 2026 at 3:38 pm

    HOWTO Pass command line arguments to your program from Xcode IDE

    1. Open your project’s active Scheme. Easiest way to do this is from the main menu. Select Product/Scheme/Edit Scheme…
    2. In the schema editor, you’ll see several build targets on the left side; the one you want is the “Run YourProjectName” target. Select it.
    3. On the right side you’ll see four sub-tabs, including Info, Arguments, Options, and Diagnostics. Select Arguments
    4. Add/Remove any arguments you need. In your case, add /phi as the first argument, then 10 as the second.

    Noteworthy: This is also where you can specify the current working directory of your program at launch rather than the long, temp path Xcode uses when building your binaries. To do so:

    1. Perform steps 1-2 from above.
    2. Select the Options sub-tab
    3. Click the “Use custom working directory” checkbox.
    4. Specify the full path where you want Xcode to execute your program from.

    That in combination with getting your parameter handling fixed in your program should get you up and running.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm currently developing a website. Every feature works fine. However, I'm using a lot
I am currently developing an ecommerce software using PHP/MySQL for a big company. There
Currently developing an extension for Gmail that inserts a couple of buttons, using jquery.
I am currently in the early stages of developing a couple web applications, I
Currently developing an application using the newest version of symfony, obtained through PEAR. This
Currently developing a PHP framework and have ran into my first problem. I need
Im currently developing an In-House Enterprise application. I will publish the app using Apple
I am currently developing a private framework for use on WebKit devices. I have
I'm currently developing 2 sites using Wordpress and hosted by a shared host who
I'm currently developing a web file browser using jquery and php. One of my

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.