Rectangle 27 67

Go to Preferences -> General and disable Live Issues in Editors and in Issue Navigator

This has become very laggy in xcode 7, (to the point where just scrolling through actual compile errors is a problem), fix still applies 4 years later!

Xcode still recompiles every project on every my action - switch file, insert char and so on. It's really annoying.

It is caused by the IB_DESIGNABLE definitions in the source header files. You can stop by following steps: 1. Open Story Board 2. Editor -> Automatically refresh view ( Uncheck this)

Sign up for our newsletter and get our top new questions delivered to your inbox (see an example).

iphone - How do you disable auto build in xcode - Stack Overflow

iphone xcode ipad ios4
Rectangle 27 92

Go to Editor -> Add Build Phase -> Add Run Script Build Phase

Go to Build Phases in the project navigator and edit Run Sript. Change Shell to /bin/bash and paste the following script:

#!/bin/bash
buildNumber=$(/usr/libexec/PlistBuddy -c "Print CFBundleVersion" "$INFOPLIST_FILE")
buildNumber=$(($buildNumber + 1))
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $buildNumber" "$INFOPLIST_FILE"

Don't forget to change the Build number found under General in the Identity section from 1.0 to 1

Poor solution as the build number will increment every time a build is performed, whether a source file has changed or not. That's not very useful and this solution is better: stackoverflow.com/questions/9258344/

I changed the "$INFOPLIST_FILE" string to "${PROJECT_DIR}/${INFOPLIST_FILE}". Then I edited the scheme and put the script in as a "post-action". I made sure to check the "Provide build settings from <App>" and set the shell to /bin/bash. I put it as a post-action so that I know exactly what build I'm doing. Great for simple apps. I recommend a makefile for automated builds for more serious applications. Happy coding!

@trojanfoe this worked fine for me as long as you check the 'run script only when installing checkbox'

For anyone wondering "Run script only when installing" will only run the script when you Archive your app for upload.

To add the script in Xcode 6.1 you need to go to Your Project > Build Phases Tab and then click the little '+' towards the top left, right below the bar with all the tabs on it. Click "New Run Script Phase"

How to auto increment the build number in Xcode 5 - Stack Overflow

xcode build xcode5
Rectangle 27 91

Go to Editor -> Add Build Phase -> Add Run Script Build Phase

Go to Build Phases in the project navigator and edit Run Sript. Change Shell to /bin/bash and paste the following script:

#!/bin/bash
buildNumber=$(/usr/libexec/PlistBuddy -c "Print CFBundleVersion" "$INFOPLIST_FILE")
buildNumber=$(($buildNumber + 1))
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $buildNumber" "$INFOPLIST_FILE"

Don't forget to change the Build number found under General in the Identity section from 1.0 to 1

Poor solution as the build number will increment every time a build is performed, whether a source file has changed or not. That's not very useful and this solution is better: stackoverflow.com/questions/9258344/

I changed the "$INFOPLIST_FILE" string to "${PROJECT_DIR}/${INFOPLIST_FILE}". Then I edited the scheme and put the script in as a "post-action". I made sure to check the "Provide build settings from <App>" and set the shell to /bin/bash. I put it as a post-action so that I know exactly what build I'm doing. Great for simple apps. I recommend a makefile for automated builds for more serious applications. Happy coding!

@trojanfoe this worked fine for me as long as you check the 'run script only when installing checkbox'

For anyone wondering "Run script only when installing" will only run the script when you Archive your app for upload.

To add the script in Xcode 6.1 you need to go to Your Project > Build Phases Tab and then click the little '+' towards the top left, right below the bar with all the tabs on it. Click "New Run Script Phase"

How to auto increment the build number in Xcode 5 - Stack Overflow

xcode build xcode5
Rectangle 27 0

If you have any IB_DESIGNABLE in source files, the system's live tracker will check for issues in StoryBoard too. It may leads to unnecessary building.

iphone - How do you disable auto build in xcode - Stack Overflow

iphone xcode ipad ios4
Rectangle 27 0

I was able to solve my problem by using Chromium, however, I did test to make sure it would work with Chrome as well. The problem with Chrome is that you can't easily find older releases and they can (and do) change the way you disable auto-updates with more recent versions. There are several suggestions out there for disabling auto updates in Chrome, some are more valid than others.

I decided to download a previous version of Chromium following the guidelines on the website (in this case it uses version 44 as an example):

  • Loop up that version history ("44.0.2403.157") in the Position Lookup
  • In this case it returns a base position of "330231". This is the commit of where the 44 release was branched, back in May 2015.*
  • Paste "330231" into the filter field at the top and wait for all the results to XHR in.

Note: that sometimes the number will not match and you have to scroll through the list to the next lowest match you see. I had to go back several matches to find a working copy in my situation.

Once you have a binary here is the javascript logic to use it ( More info can be found in the Selenium Docs ):

// get the webdriver for future operations
var webdriver = require("selenium-webdriver");
// configure the chromedriver
var chrome = require("selenium-webdriver/chrome");
// here I get the path of chromedriver to avoid using path variables
var path = new require("chromedriver").path;
var service = new chrome.ServiceBuilder(path).build();

var options = new chrome.Options();
// Note: on mac you need to reach in the .app folder
options.setChromeBinaryPath("Chromium.app/Contents/MacOS/Chromium");

var driver = new chrome.Driver(options, service);

node.js - How to use Selenium chromedriver without being forced to upd...

node.js selenium selenium-webdriver selenium-chromedriver nwjs
Rectangle 27 0

Go to Preferences -> General and disable Live Issues in Editors and in Issue Navigator

iphone - How do you disable auto build in xcode - Stack Overflow

iphone xcode ipad ios4
Rectangle 27 0

Go to Editor -> Add Build Phase -> Add Run Script Build Phase

Go to Build Phases in the project navigator and edit Run Sript. Change Shell to /bin/bash and paste the following script:

#!/bin/bash
buildNumber=$(/usr/libexec/PlistBuddy -c "Print CFBundleVersion" "$INFOPLIST_FILE")
buildNumber=$(($buildNumber + 1))
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $buildNumber" "$INFOPLIST_FILE"

Don't forget to change the Build number found under General in the Identity section from 1.0 to 1

Poor solution as the build number will increment every time a build is performed, whether a source file has changed or not. That's not very useful and this solution is better: stackoverflow.com/questions/9258344/

I changed the "$INFOPLIST_FILE" string to "${PROJECT_DIR}/${INFOPLIST_FILE}". Then I edited the scheme and put the script in as a "post-action". I made sure to check the "Provide build settings from <App>" and set the shell to /bin/bash. I put it as a post-action so that I know exactly what build I'm doing. Great for simple apps. I recommend a makefile for automated builds for more serious applications. Happy coding!

@trojanfoe this worked fine for me as long as you check the 'run script only when installing checkbox'

To add the script in Xcode 6.1 you need to go to Your Project > Build Phases Tab and then click the little '+' towards the top left, right below the bar with all the tabs on it. Click "New Run Script Phase"

How to auto increment the build number in Xcode 5 - Stack Overflow

xcode build xcode5