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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T02:58:48+00:00 2026-05-25T02:58:48+00:00

I want to use a different API url for my iPhone app when I’m

  • 0

I want to use a different API url for my iPhone app when I’m debugging or doing an ad-hoc deployment. Is there any way to detect from code (if adhoc) use this Url rather than the default one?

  • 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-05-25T02:58:49+00:00Added an answer on May 25, 2026 at 2:58 am

    There are two ways I can think of:

    1.) Conditional Compilation

    Since you have to “Archive” the product to distribute the adhoc build, you might as well setup a new config for Archive and leverage the preprocessor.

    2.) Alternate default .settings files based on Release/Debug/AdHoc.

    Same suggestion as above, but using a .settings file instead of compilation. Personally, I’d recommend this over the conditional compilation because it can be changed (and saved) after deployment if you want to test other environments without redeploying.

    EDIT

    Conditional Compilation refers to using "ifdef" blocks right? I tried this once but couldn't get it to check for AD-HOC, only DEBUG seemed to work

    Correct.

    There is not an “ADHOC” macro defined by default. But you can easily add one.

    Here’s how you might go about setting up an additional configuration with a new preprocessor macro for your ADHOC builds:

    Step 1: Setup a new Config (optional… you might just use Release… up to you).

    Setup a new config

    Step 2: Add the preprocessor macro for that config. In my screenshot it only shows Debug and Release because I didn’t actually add a new config. If you added a new Config (and called it something like “AdHoc”, it should show up here as well:

    enter image description here

    Add ADHOC=1 just like the DEBUG=1 macro for the debug config.

    Step 3: Either modify your current Scheme, or duplicate it, such that the “Archive” step uses your new configuration:

    enter image description here

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

Sidebar

Related Questions

I want to allow users of an iPhone app to upload photos and use
I want to allow users of an iPhone app to upload photos and use
I want to dynamically make different YouTube JSON API requests and then use a
Scenario I have a windows forms application. I want to use two different WCF
I want to execute a php-script from php that will use different constants and
I want to use multiple private keys to connect to different servers or different
I have some folder with different files. I want to use something like this:
I got a question ;) Actually I want to use core-data in different threads.
I'm working through the Facebook API for my iPhone app, and have two questions:
I want to use the canvas api on a map designed in Adobe illustrator

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.