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 9242915
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T08:41:23+00:00 2026-06-18T08:41:23+00:00

I am running a customized script which includes a command (ios-sim) which should be

  • 0

I am running a customized script which includes a command (ios-sim) which should be known to bash (the binary lies in /usr/local/bin, $PATH knows). However, when invoked by xcodebuild the console logs “command not found”.

I am able to execute the command manually, but I have no idea why it doesn’t work within the run script. I have checked the user but as I expected it is both times the same user…

The line invoking ios-sim:

ios-sim launch $(dirname $TEST_HOST) $environment_args --args -SenTest All $test_bundle_path -v
  • 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-18T08:41:24+00:00Added an answer on June 18, 2026 at 8:41 am

    Rather than relying on $PATH, the value of which isn’t obvious, use the whole path to ios-sim.

    Edit your custom script and change:

    ios-sim launch ...
    

    to

    /usr/local/bin/ios-sim launch ...
    

    The reason why using $PATH can be dangerous (perhaps too strong a word) is that it’s not obvious where it’s set. For example Xcode will use the path that’s configured in /etc/launchd.conf and /usr/local/bin might have been added in /etc/profile or ~/.bash_profile.

    • Will launchd use the value in /etc/profile and thereby pass it to Xcode to use?
    • Will scripts started by Xcode use /etc/profile or ~/.bash_profile?

    It’s complicated and thorough understanding of this environment will doubtless allow you to invoke your command via $PATH, however using the fullpath to a command is a simple approach which will always work.

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

Sidebar

Related Questions

Running my script through Devel::NYTProf showed that the following portion of code took up
Running the following line in my script gives me a Permission denied error: $config_out
how do i retrieve the date format of the machine the script is running
I am running a Jersey REST service. The POJO's which represent my resources are
I have a CSV file which uses a highly customized format. Here, each number
I've got a Flash app that includes a twitter share for a customized mini
I got a phpbb3 CMS running and customized a lot about it. Now i'm
I am running a website which is using WPML with Wordpress. Hebrew is the
Running Solr on Tomcat 7 on Win 2008 Server. I am looping through a
Running Puppet v2.7.14 on CEntOs 6 and also using Apache/Passenger instead of WEBrick. I

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.