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

  • Home
  • SEARCH
  • 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 7867783
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T00:48:00+00:00 2026-06-03T00:48:00+00:00

I’m working on a Javascript-intensive web app designed to run on iPhone/iPad for now.

  • 0

I’m working on a Javascript-intensive web app designed to run on iPhone/iPad for now. It also works on all Webkit browsers (Safari + Chrome).

I have a home-made MVC framework consisting of many JavaScript files: one for each view, one for each controller, many “helper” classes.

I also have a bunch of LESS files, one “main” including each LESS file for each view (eg. if I have a UIListView.js, I also have a UIListView.less).

Currently I’m working with MacVim and Less.app, and doing tests on both iPhone/iPad simulators, real iPhone/iPads, and sometimes Safari or Chrome when I really need to do “hardcore” debugging with the developer tools. All my files are stores in my ~/Sites/projectX folder, which I browse using my Mac’s built-in web server.

This is OK while developing, I have many little files referenced by my index.htm but it doesn’t matter as I’m on my intranet over WiFi.

What I’d like to achieve is a more “project-oriented” approach. Just as when I develop an iOS project in Xcode, I’d like to use XCode for all my development needs, keep all my source files in a directory separate from ~/Sites, say ~/Desktop/projectX. I’d like to have two configurations (debug and release) to use with “Build and run” :

  • the “debug” config would simply compile the main .less file (which includes all small .less files), copy the JS + CSS + HTM file over to some directory (~/Sites/projectX_debug), along with all graphic resources. Then depending on the “sub-configuration” chosen, launch either the iPhone Simulator, the iPad Simulator, Safari, or Chrome, clear its cache (via AppleScript?) and open the index.htm

  • the “release” config that would glue all JS files together and minify them, compile and minify the .less file, change the index.htm to reference only the glued JS, then optimize all PNGs with pngout/pngcrush/whatever before sending all the archive to a local directory (~/Sites/projectX_release) or by sftp to my production server.

I believe I can achieve if not all but most of this using the build phases of XCode 4, maybe using GNU makefiles or some kind of preprocessor, but I’m lost at where to start.

Does someone already have this kind of setup for using Xcode to do something else than Mac/iOS development, but still using the “classical” concept of build phases/makefiles traditional to most IDEs?

(An acceptable workaround would be to simply create a bash script to handle that — I can already manage it by myself, but I’d really like to use the integrated XCode features, and just pressing Cmd-R to “compile” and run my project in debug mode).


  • 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-03T00:48:01+00:00Added an answer on June 3, 2026 at 12:48 am

    I will try and step through the things you should do…

    the “debug” config would simply compile the main .less file (which
    includes all small .less files),

    • I would create a build rule to handle .less files, use a script to compile them.

    copy the JS + CSS + HTM file over to
    some directory (~/Sites/projectX_debug), along with all graphic
    resources. Then depending on the “sub-configuration” chosen, launch
    either the iPhone Simulator, the iPad Simulator, Safari, or Chrome,
    clear its cache (via AppleScript?) and open the index.htm

    • For this you just need to add your files to the copy phase in the ‘Build Phases’ section.
    • You can set your build directory in your target’s ‘Build Settings’ section (~/Sites/projectX_debug, if you’d like).

    the “release” config that would glue all JS files together and minify
    them, compile and minify the .less file, change the index.htm to
    reference only the glued JS, then optimize all PNGs with
    pngout/pngcrush/whatever before sending all the archive to a local
    directory (~/Sites/projectX_release) or by sftp to my production
    server.

    • For this part you might want to create a new target and add different rules and settings.

    OR

    If the above is too complicated:

    1. Write your two bash scripts.
    2. Make two targets.
    3. Add your bash script as a build phase in each target.

    Hope that helps.

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

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I used javascript for loading a picture on my website depending on which small
I have a jquery bug and I've been looking for hours now, I can't
this is what i have right now Drawing an RSS feed into the php,
I am reading a book about Javascript and jQuery and using one of the
I am trying to render a haml file in a javascript response like so:
I would like to run a str_replace or preg_replace which looks for certain words
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this

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.