blob: 4610a092e92709157eb4f33b9b94d789974764aa [file] [log] [blame]
Chris Lattner24943d22010-06-08 16:52:24 +00001On MacOSX lldb needs to be code signed. The Debug and Release builds
2are set to code sign using a code signing certificate named
3lldb_codesign.
4
5If you don't have one yet you will need to:
6- Launch /Applications/Utilities/Keychain Access.app
7
8- In Keychain Access select the "login" keychain in the "Keychains"
9 list in the upper left hand corner of the window.
10
11- Select the following menu item:
12
13 Keychain Access->Certificate Assistant->Create a Certificate...
14
15- Set the following settings
16
17 Name = lldb_codesign
18 Identity Type = Self Signed Root
19 Certificate Type = Code Signing
20
21- Click Continue
22- Click Continue
23- Click Done
24- Click on the "My Certificates"
25- Double click on your new lldb_codesign certificate
26- Turn down the "Trust" disclosure triangle
27
28 Change:
29 When using this certificate: Always Trust
30
31- Enter your login password to confirm and make it trusted
32
33The next steps are necessary on SnowLeopard, but are probably because of a bug
Jim Ingham360725b2010-06-25 00:34:35 +000034how Keychain Access makes certificates.
Chris Lattner24943d22010-06-08 16:52:24 +000035
36- Option-drag the new lldb_codesign certificate from the login keychain to
37 the System keychain in the Keychains pane of the main Keychain Access window
38 to make a copy of this certificate in the System keychain. You'll have to
39 authorize a few more times, set it to be "Always trusted" when asked.
40- Switch to the System keychain, and drag the copy of lldb_codesign you just
41 made there onto the desktop.
42- Switch to Terminal, and run the following:
43
44sudo security add-trust -d -r trustRoot -p basic -p codeSign -k /Library/Keychains/System.keychain ~/Desktop/lldb_codesign.cer
45
46That should do it.