0
我正在嘗試使用Maven + Tycho構建系統對我的Eclipse RCP應用程序進行代碼簽名。在OS X上簽名的Maven和Tycho代碼
我爲了簽署大幹快上的OS X框創建的。應用程序添加這段代碼到我的pom.xml:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.2.1</version>
<executions>
<execution>
<id>exec</id>
<phase>package</phase>
<goals>
<goal>exec</goal>
</goals>
</execution>
</executions>
<configuration>
<executable>codesign</executable>
<workingDirectory>/tmp</workingDirectory>
<arguments>
<argument>-s</argument>
<argument>"My Developer ID"</argument>
<argument>-vvv</argument>
<argument>${project.build.directory}/products/${product-id}/macosx/cocoa/x86/MyApp/MyApp.app"</argument>
</arguments>
</configuration>
</plugin>
但它不斷給我這個錯誤:
「我的開發者ID」:找不到身份證
我讀到了關於解鎖鑰匙串的問題,但它確實對我的構建沒有任何影響。是的,我從擁有該證書的同一帳戶運行構建爲mvn clean install。
有沒有人設法解決這個問題? 謝謝!
嘗試刪除圍繞您的開發人員ID的引號? –
用'-X'參數運行你的構建,你應該看到被執行的確切命令。然後在CLI中運行以查看問題所在。 –
@MartinEllis刪除雙引號做了詭計。 –