Xcode: Difference between revisions

From kJams Wiki
Jump to navigation Jump to search
 
(18 intermediate revisions by the same user not shown)
Line 1: Line 1:
==Downloads==
==Downloads==
[https://karaoke.kjams.com/downloads/xcode.dmg Xcode 3.2.6 Installer]<br>
[https://karaoke.kjams.com/downloads/xcode_libs.zip Command Line Tool libs]<br>
[https://karaoke.kjams.com/downloads/xcode_lipo.zip liposuction tool]<br>
[https://karaoke.kjams.com/downloads/xcode_python.zip python tool]<br>
[https://karaoke.kjams.com/downloads/xcode_python.zip python tool]<br>
[https://karaoke.kjams.com/downloads/xcode_keys.zip dev keys]<br>
[file:///Volumes/Developer/depot/kJams/Development/xcode_keys.zip dev keys] <-- click will fail, but look at URL to find the file<br>


==MacOS 10.7==
==Do These Things too==
Mount the installer, then in Terminal, copy and paste these lines:
export COMMAND_LINE_INSTALL=1
open "/Volumes/Xcode and iOS SDK/Xcode and iOS SDK.mpkg"
==MacOS 10.8 and later==
You have to be paying VERY close attention during the install, or you will bluescreen your mac. Yes, a kernel panic so you can't even boot!  See below about "kernel panic" if you get stuck there. Read the entire list BEFORE starting so you know the steps AHEAD of time.
 
# copy the "Kernel Panic" section below to a plain text file on your desktop.  You'll be glad you did if things go south.
# Mount the installer
# Go to /System/Library/CoreServices
# Get info on "Installer"
# check "Open in 32-bit mode"
# Go to /System/Library/Extensions
# start to type "AppleProfileFamily.kext", and your selection will then land on the existing .kext by that name, OR the next file alphabetically.
# if it exists, trash it. you may need to enter your PW for that.
# Quit iTunes if it's running
# open "Activity Monitor" and kill anything relating to "iTunes"
# memorize this: During installation you must watch for the file "AppleProfileFamily.kext" appearing and IMMEDIATELY delete it. If you wait too long and it starts to run, you will get a kernel panic. (see below in case of kernel panic)
# Paste this into terminal:<pre>export COMMAND_LINE_INSTALL=1&#10;open "/Volumes/Xcode and iOS SDK/Xcode and iOS SDK.mpkg"</pre>
# even though you switched "Installer" to run in 32bit mode, it will ask you to allow it to quit and re-open, click OK
# the cert has expired, continue anyway
# when you get to the "Installation Type" screen, click "customize"
## turn OFF "System Tools"
## turn ON "Mac OS X 10.4 SDK"
## <strike>Twirl down "Essentials" and make sure "iOS SDK" is on (needed for Interface Builder)</strike> doesn't seem to help
# start the install
# part way thru, the "installd" needs your permission to "control your computer"
# do this very quickly:
## click the "open prefs" button (i forget the name) (not the "deny" button)
## click the lock icon, enter your password
## scroll down to "installd"
## check it
## close the prefs window
# watch the Extensions folder like a hawk, do not take your eyes off of it: the instant you see "AppleProfileFamily.kext", select it and do command-delete! note you may need to type your password real fast too!
# empty the trash! QUICK!!
# relax, and wait for the install to finish
# switch "Installer" back to NON-32-bit mode
# unzip the "xcode_libs.zip" file ("Command Line Tools", above)
# drag all the contents into /usr/lib (you must authenticate)
# unzip the "lipo" tool, drop it in /usr/bin (also auth)
# delete "Python.framework" from /developer/SDKs/ <all three: 10.4, 10.5, 10.6> /System/Library/Frameworks
# put the downloaded Python framework into /Library/Frameworks
 
==In case of kernel panic==
# hold down the power button to shut down
# power on and immediately hold the SHIFT key (safe mode)
# when you get to the finder, go to /System/Library/Extensions
# trash the file "AppleProfileFamily.kext"
# if you accidentally also installed the "System Tools" or if CHUD somehow got installed, then you'll need to throw that stuff out too. eg search for "com.apple.iokit.ChudKernLib" and chuck all the stuff with "chud" in it that's nearby.
# empty trash
# reboot
# you're good!
==Do This too==
# install your keys
# install your keys
## open the dev keys, the PW is the same as dave's login (keychain) password
## double click the dev keys cert file
## install them into the SYSTEM keychain, NOT the LOGIN keychain.  (otherwise you'll get errors)
## install them into the SYSTEM keychain, NOT the LOGIN keychain.  (otherwise you'll get errors)
## PW is the same as dave's login (keychain) password
## in KeyChain Access, get info on the Private Key, change to the "Access Control" tab and select the "Allow all applications to access this item".
## in KeyChain Access, get info on the Private Key, change to the "Access Control" tab and select the "Allow all applications to access this item".
# log into developer.apple.com and download the code signing certs, install them
# log into developer.apple.com and download [https://www.apple.com/certificateauthority/ the intermediate code signing certs], install them. if you run into signing issues (eg: "unable to build chain to self-signed root for signer"), [https://developer.apple.com/forums/thread/712043 see this link].
# <pre>defaults write com.apple.dt.Xcode IDEBuildOperationMaxNumberOfConcurrentCompileTasks 12</pre> (or 2x the CPUs you have)
# Run Xcode
# Run Xcode
# go to prefs->source trees
# in order for the kJams "build phase" steps that include shell scripts that have the variable "$BUILD_DIR" in them, we must use legacy build locations:
# enter these items: (make sure path is correct)
## open the kJams6 project
## file->project settings->advanced
## pick "legacy", Done, Done
# Optional?: go to prefs->Locations->custom paths
## enter these items: (make sure path is correct) (don't need 2nd one if not building YAAF on mac, also i think we can remove FIRST one cuz i replaced all search path "KJAMS_ROOT" with "SRCROOT")
{|border="1"
{|border="1"
| '''Setting Name'''
| '''Setting Name'''

Latest revision as of 06:46, 28 November 2025

Downloads

python tool
dev keys <-- click will fail, but look at URL to find the file

Do These Things too

  1. install your keys
    1. double click the dev keys cert file
    2. install them into the SYSTEM keychain, NOT the LOGIN keychain. (otherwise you'll get errors)
    3. PW is the same as dave's login (keychain) password
    4. in KeyChain Access, get info on the Private Key, change to the "Access Control" tab and select the "Allow all applications to access this item".
  2. log into developer.apple.com and download the intermediate code signing certs, install them. if you run into signing issues (eg: "unable to build chain to self-signed root for signer"), see this link.
  3. defaults write com.apple.dt.Xcode IDEBuildOperationMaxNumberOfConcurrentCompileTasks 12
    (or 2x the CPUs you have)
  4. Run Xcode
  5. in order for the kJams "build phase" steps that include shell scripts that have the variable "$BUILD_DIR" in them, we must use legacy build locations:
    1. open the kJams6 project
    2. file->project settings->advanced
    3. pick "legacy", Done, Done
  6. Optional?: go to prefs->Locations->custom paths
    1. enter these items: (make sure path is correct) (don't need 2nd one if not building YAAF on mac, also i think we can remove FIRST one cuz i replaced all search path "KJAMS_ROOT" with "SRCROOT")
Setting Name Display Name Path
KJAMS_ROOT kJams Root /Volumes/Developer/depot/kJams/Development
YAAF_ROOT YAAF Root /Volumes/Developer/depot/YAAF/Libraries