Xcode: Difference between revisions

From kJams Wiki
Jump to navigation Jump to search
 
(41 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 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.
## 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].
# copy the "Kernel Panic" section below to a plain text file on your desktopYou'll be glad you did if things go south.
# <pre>defaults write com.apple.dt.Xcode IDEBuildOperationMaxNumberOfConcurrentCompileTasks 12</pre> (or 2x the CPUs you have)
# Mount the installer
# Run Xcode
# Go to /System/Library/CoreServices
# 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:
# Get info on "Installer"
## open the kJams6 project
# check "Open in 32-bit mode"
## file->project settings->advanced
# Go to /System/Library/Extensions
## pick "legacy", Done, Done
# start to type "AppleProfileFamily.kext", and your selection will then land on the existing .kext by that name, OR the next file alphabetically.
# Optional?: go to prefs->Locations->custom paths
# if it exists, trash it. you may need to enter your PW for that.
## 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")
# Quit iTunes if it's running
{|border="1"
# open "Activity Monitor" and kill anything relating to "iTunes"
| '''Setting Name'''
# 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)
| '''Display Name'''
# Paste this into terminal:<pre>export COMMAND_LINE_INSTALL=1&#10;open "/Volumes/Xcode and iOS SDK/Xcode and iOS SDK.mpkg"</pre>
| '''Path'''
# 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
| KJAMS_ROOT
# when you get to the "Installation Type" screen, click "customize"
| kJams Root
# turn OFF "System Tools"
| /Volumes/Developer/depot/kJams/Development
# turn ON "Mac OS X 10.4 SDK"
|-
# Twirl down "Essentials" and turn off "iOS SDK"
| YAAF_ROOT
# start the install
| YAAF Root
# 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!
| /Volumes/Developer/depot/YAAF/Libraries
# empty the trash! QUICK!!
|}
# relax, and wait for the install to finish
# switch "Installer" back to NON-32-bit mode
# you're good!
 
==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!

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