我怎樣才能準確地找到我的代碼簽名身份是什麼? (How can I find exactly what my codesign identity is?)


問題描述

我怎樣才能準確地找到我的代碼簽名身份是什麼? (How can I find exactly what my codesign identity is?)

I need to know exactly what my codesign identity is.  Where can I find that?  And what is the usual format for a codesign identity?  Thank you!


參考解法

方法 1:

You can run following command in your terminal to get a list of all codesign identities installed on your system:

security find‑identity ‑v ‑p codesigning

The output will contain lines like:

1) 482348ADF834384843884934734 "iPhone Developer: John Smith (YTHGJFKTHG)"
2) 49u343943943943494387348738 ...

where the first part (482348ADF834384843884934734) is your codesign identity, which is passed as an argument to the ‑‑sign flag of codesign tool.

方法 2:

In Xcode, you can access the Code Signing Identity by selecting your target, going to build settings and it's right under "Code Signing Identity". 

For more information, you can access Apple's Documentation. 

方法 3:

On macOS 11 Big Sur, @Taras answer above does not return any identities. However, by removing ‑v for verbose, it does, and while it doesn't make any sense:

λ security find‑identity ‑v ‑p codesigning
     0 valid identities found

λ security find‑identity ‑p codesigning

Policy: Code Signing
  Matching identities
  1) B21272CXXXXXXCDBC562C0E0XXXXXX89 "Apple Development: Haakon Storm Heen (9X9X3XKX5X)"
     1 identities found

  Valid identities only
     0 valid identities found

(by SirRupertIIITaras TsugriiVGruenhagenhaakonstorm)

參考文件

  1. How can I find exactly what my codesign identity is? (CC BY‑SA 3.0/4.0)

#iphone #iOS #code-signing #provisioning






相關問題

iPhone 3.0 MPMoviePlayerController 在屏幕上顯示視頻播放器的等待時間長有問題嗎? (Problem with iPhone 3.0 MPMoviePlayerController long wait time to display the video player on screen?)

將 NavigationBar 背景更改為圖像 (Changing the NavigationBar background to image)

如何將以下行添加到我的 plist 文件中? (How can I add the following lines to my plist file?)

iPhone SDK:檢查 UITableView 中每個對象的 ID 號並相應地更改徽章號 (iPhone SDK: Checking the ID number for each object in a UITableView and change the badge number accordingly)

無法在不崩潰的情況下設置 ABPeoplePickerNavigationController 的 addressBook 屬性 (Can't set the addressBook property of ABPeoplePickerNavigationController without crashing)

嵌套 XML 示例? (Nested XML Example?)

提交應用程序 - 添加本地化,但我的語言未列在組合框中? (Submitting app - Add Localizations, but my language is not listed in the combo box?)

如何從移動瀏覽器直接訪問移動設備的硬件功能 (How to gain direct access to the hardware capabilities of mobile devices from mobile browsers)

Cocos2d 中的粒子碰撞檢測 (Collision detection with particles in Cocos2d)

捕捉返回按鈕導航事件 (Catching back button navigation event)

iphone初學者問題:畫一個矩形。我究竟做錯了什麼? (Beginner iphone question: drawing a rectangle. What am I doing wrong?)

帶有 UITableView 的 UIPopoverController (UIPopoverController with UITableView)







留言討論