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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T23:06:50+00:00 2026-06-05T23:06:50+00:00

In Xcode build ref: https://developer.apple.com/library/mac/#documentation/DeveloperTools/Reference/XcodeBuildSettingRef/1-Build_Setting_Reference/build_setting_ref.html#//apple_ref/doc/uid/TP40003931-CH3-SW45 It says: ACTION Description: Identifier. Identifies the type of

  • 0

In Xcode build ref:

https://developer.apple.com/library/mac/#documentation/DeveloperTools/Reference/XcodeBuildSettingRef/1-Build_Setting_Reference/build_setting_ref.html#//apple_ref/doc/uid/TP40003931-CH3-SW45

It says:

ACTION

Description:

Identifier. Identifies the type of build to perform on the target.

Then I make a small script in scheme->build->pre-actions:

echo "action:"

echo ${ACTION}

But $ACTION seems empty.

I also tried other variables like $BUILD_VARIANTS and they are normal, so I’m pretty sure it’s not my script’s fault.

Does anyone have the same issue?

  • 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-05T23:06:51+00:00Added an answer on June 5, 2026 at 11:06 pm

    I’ve found the solution below:

    Now I add the script in "build phases" then it worked. I also found some interesting stuff in Xcode’s build log:

    cd /Users/developer/project/resourceTest

    setenv ACTION build

    setenv AD_HOC_CODE_SIGNING_ALLOWED NO

    setenv ALTERNATE_GROUP staff

    setenv ALTERNATE_MODE u+w,go-w,a+rX

    ……

    So it seems Xcode set these environment variables in "build phase" but not in "post actions". You can run some scripts or send an E-mail in "post actions" but not all of these environment variables used by project are guaranteed that can be used properly.

    Furthermore, you can’t get any script error message when it’s running at "post actions". Xcode also ignores these errors so your build process won’t crash.

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

Sidebar

Related Questions

Ld /Users/rajeshmedampudi/Library/Developer/Xcode/DerivedData/sampleResource-flngddqnaawregcrrshzpianssjc/Build/Products/Debug-iphonesimulator/sampleResource.app/sampleResource normal i386 cd /Users/rajeshmedampudi/Dropbox/Work/iphone/sampleResource setenv MACOSX_DEPLOYMENT_TARGET 10.6 setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch
I can't find anything workspace related in the Xcode Build Setting Reference . Essentially
Running SMJobBless: (PrefPane project xcode version 4 Build 4A304a) SMJobBless(kSMDomainSystemLaunchd, @com.coderama.coderamaHelper, authRef, &err); Causes
I've configured my XCode project to build with Apple LLVM compiler 3.0, (clang). When
In the Packaging section of Xcode build settings, there are the following options: Compress
I have enabled Preprocessing of Info.plist in the Xcode build settings, to replace the
I created a new branch in XCode to build a new feature. After some
I am getting duplicate error in my xcode while build and run I have
I am typing code from Head First iPhone Development (O'reilly) and Xcode will build
When I build with Xcode (I am porting a large project with tons of

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.