Xcode: Difference between revisions

From kJams Wiki
Jump to navigation Jump to search
Created page with "First, [https://karaoke.kjams.com/downloads/xcode.dmg|download the installer] ==MacOS 10.7== Mount the installer, then in Terminal, copy and paste these lines: export COMMAN..."
 
 
(52 intermediate revisions by the same user not shown)
Line 1: Line 1:
First, [https://karaoke.kjams.com/downloads/xcode.dmg|download the installer]
==Downloads==
[https://karaoke.kjams.com/downloads/xcode_python.zip python tool]<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:
# install your keys
export COMMAND_LINE_INSTALL=1
## double click the dev keys cert file
open "/Volumes/Xcode and iOS SDK/Xcode and iOS SDK.mpkg"
## install them into the SYSTEM keychain, NOT the LOGIN keychain. (otherwise you'll get errors)
==MacOS 10.8 and later==
## PW is the same as dave's login (keychain) password
You have to be paying VERY close attention during the install, or you will bluescreen your mac. Yes, a kernel panic you can't get out of (without tricks). See below about kernel panic if you get stuck there. Read the entire list BEFORE starting so you know the steps AHEAD of time.
## 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 [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].
# Mount the installer
# <pre>defaults write com.apple.dt.Xcode IDEBuildOperationMaxNumberOfConcurrentCompileTasks 12</pre> (or 2x the CPUs you have)
# Go to /System/Library/CoreServices
# Run Xcode
# Get info on "Installer"
# 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:
# check "Open in 32-bit mode"
## open the kJams6 project
# Go to /System/Library/Extensions
## file->project settings->advanced
# start to type "AppleProfileFamily.kext", and your selection will then land on the existing .kext by that name, OR the next file alphabetically.
## pick "legacy", Done, Done
# if it exists, trash it. you may need to enter your PW for that.
# Optional?: go to prefs->Locations->custom paths
# During installation (after next step) 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)
## 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")
# Paste this into terminal:<br><pre>
{|border="1"
export COMMAND_LINE_INSTALL=1
| '''Setting Name'''
open "/Volumes/Xcode and iOS SDK/Xcode and iOS SDK.mpkg"
| '''Display Name'''
# when you get to the "Installation Type" screen, you should "customize", turn OFF the "System Tools" check box so that is not installed. (Also, under "Essential", probably also turn off "iOS SDK")
| '''Path'''
# start the install
|-
# 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!
| KJAMS_ROOT
# empty the trash! QUICK!!
| kJams Root
# switch "Installer" back to NON-32-bit mode
| /Volumes/Developer/depot/kJams/Development
# you're good!
|-
 
| YAAF_ROOT
In case of kernel panic
| YAAF Root
# hold down the power button to shut down
| /Volumes/Developer/depot/YAAF/Libraries
# 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!

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