• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Xcode 6.2b4 modifies argv[] entries?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Xcode 6.2b4 modifies argv[] entries?


  • Subject: Xcode 6.2b4 modifies argv[] entries?
  • From: Ward Willats <email@hidden>
  • Date: Fri, 30 Jan 2015 13:23:46 -0800

Hello.

I am debugging a command-line app in Xcode 6.2 beta 4 (6C107a) under OSX 10.10.2. I am passing arguments into the app via the "arguments" tab in the debug scheme.

Immediately on arrival in main(), I see xcode has indeed passed my arguments in argv[]. However, it has also prepended the project directory to each one!

That is, a switch like "-S" becomes "/Users/my_home/the_project/-S"

Of course, an earlier version of this project seems to be working just fine on a co-worker's machine.

Any thoughts? I can slam the right values with code at runtime (assuming it will work fine when executed directly in the shell), but this is kind of a PITA.

Thanks,

-- Ward
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Prev by Date: Re: OmniGraffle takes over Xcode
  • Next by Date: "Xcode is being updated"
  • Previous by thread: Re: OmniGraffle takes over Xcode
  • Next by thread: "Xcode is being updated"
  • Index(es):
    • Date
    • Thread