I added an appropriate <osxSigningIdentity> property to my XML project file, now my installer gets signed successfully, even though I see following warning/error message during the build process:

$ /path/to/installbuilder.sh build /path/to/project.xml osx
 Building My Installer osx
 0% ______________ 50% ______________ 100%
 ########################################
Warning: Error signing /path/to/MyInstaller.app: Error signing installer: /path/to/MyInstaller.app: replacing existing signature
/path/to/MyInstaller.app: invalid signature (code or signature have been modified)
#


Using codesign to verify the signature afterwards gives:

$ codesign -vv /path/to/MyInstaller.app
/path/to/MyInstaller.app: valid on disk
/path/to/MyInstaller.app: satisfies its Designated Requirement


So, should I be worried? Why does InstallBuilder give this warning/error message?

PS: I'm on Mac OS X 10.7.5 / Xcode 4.3.3

PPS: When running InstallBuilder twice, the warning/error message is shown the first time only (when the folder specified in <outputDirectory> is still empty); the second time, InstallBuilder doesn't complain (when overwriting the existing signed installer with the newly created one).



PPPS: During the signing process, com.apple.security.XPCTimeStampingService writes the information given below to /var/log/system.log; strangely enough, the logging output is the same both for the first installer creation run and for the second installer creation run (besides some timestamp differences, of course):

com.apple.security.XPCTimeStampingService: handle_connection_event 0x110022eb0
com.apple.security.XPCTimeStampingService: Handling TimeStampRequest event
com.apple.security.XPCTimeStampingService: Request Length: 61, URL: http://timestamp.apple.com/ts01
com.apple.security.XPCTimeStampingService: TSA Response: 200, no error, {
    "Content-Length" = 4294;
    "Content-Type" = "application/timestamp-reply";
    Date = "Mon, 17 Jun 2013 14:35:37 GMT";
    Server = "Apache-Coyote/1.1";
    "X-Powered-By" = "Servlet 2.5; JBoss-5.0/JBossWeb-2.1";
}
com.apple.security.XPCTimeStampingService: TSARequestCompletionBlock: Data (4294 bytes)
com.apple.security.XPCTimeStampingService: 2013-06-17 16:35:38.062 XPCTimeStampingService[5187:10b] TSA Response: 200, no error, {
com.apple.security.XPCTimeStampingService:     "Content-Length" = 4294;
com.apple.security.XPCTimeStampingService:     "Content-Type" = "application/timestamp-reply";
com.apple.security.XPCTimeStampingService:     Date = "Mon, 17 Jun 2013 14:35:37 GMT";
com.apple.security.XPCTimeStampingService:     Server = "Apache-Coyote/1.1";
com.apple.security.XPCTimeStampingService:     "X-Powered-By" = "Servlet 2.5; JBoss-5.0/JBossWeb-2.1";
com.apple.security.XPCTimeStampingService: }
com.apple.security.XPCTimeStampingService: TSARequestCompletionBlock: Data (4294 bytes)
com.apple.security.XPCTimeStampingService: 2013-06-17 16:35:38.063 XPCTimeStampingService[5187:10b] TSARequestCompletionBlock: Data (4294 bytes)
com.apple.security.XPCTimeStampingService: handle_request_event: XPC_TYPE_ERROR
com.apple.security.XPCTimeStampingService: listener event error (connection 0x0): Connection invalid
com.apple.security.XPCTimeStampingService: finalize_connection
com.apple.security.XPCTimeStampingService: handle_connection_event 0x7fa9b0e03920
com.apple.security.XPCTimeStampingService: Handling TimeStampRequest event
com.apple.security.XPCTimeStampingService: Request Length: 60, URL: http://timestamp.apple.com/ts01
com.apple.security.XPCTimeStampingService: TSA Response: 200, no error, {
    "Content-Length" = 4293;
    "Content-Type" = "application/timestamp-reply";
    Date = "Mon, 17 Jun 2013 14:35:39 GMT";
    Server = "Apache-Coyote/1.1";
    "X-Powered-By" = "Servlet 2.5; JBoss-5.0/JBossWeb-2.1";
}
com.apple.security.XPCTimeStampingService: TSARequestCompletionBlock: Data (4293 bytes)
com.apple.security.XPCTimeStampingService: TSARequestCompletionBlock: Data (4293 bytes)
com.apple.security.XPCTimeStampingService: 2013-06-17 16:35:39.204 XPCTimeStampingService[5187:2803] TSA Response: 200, no error, {
com.apple.security.XPCTimeStampingService:     "Content-Length" = 4293;
com.apple.security.XPCTimeStampingService:     "Content-Type" = "application/timestamp-reply";
com.apple.security.XPCTimeStampingService:     Date = "Mon, 17 Jun 2013 14:35:39 GMT";
com.apple.security.XPCTimeStampingService:     Server = "Apache-Coyote/1.1";
com.apple.security.XPCTimeStampingService:     "X-Powered-By" = "Servlet 2.5; JBoss-5.0/JBossWeb-2.1";
com.apple.security.XPCTimeStampingService: }
com.apple.security.XPCTimeStampingService: 2013-06-17 16:35:39.204 XPCTimeStampingService[5187:2803] TSARequestCompletionBlock: Data (4293 bytes)
com.apple.security.XPCTimeStampingService: handle_request_event: XPC_TYPE_ERROR
com.apple.security.XPCTimeStampingService: listener event error (connection 0x0): Connection invalid
com.apple.security.XPCTimeStampingService: finalize_connection
com.apple.security.XPCTimeStampingService: handle_connection_event 0x7fa9b0e09b60
com.apple.security.XPCTimeStampingService: Handling TimeStampRequest event
com.apple.security.XPCTimeStampingService: Request Length: 61, URL: http://timestamp.apple.com/ts01
com.apple.security.XPCTimeStampingService: TSA Response: 200, no error, {
    "Content-Length" = 4294;
    "Content-Type" = "application/timestamp-reply";
    Date = "Mon, 17 Jun 2013 14:35:40 GMT";
    Server = "Apache-Coyote/1.1";
    "X-Powered-By" = "Servlet 2.5; JBoss-5.0/JBossWeb-2.1";
}
com.apple.security.XPCTimeStampingService: TSARequestCompletionBlock: Data (4294 bytes)
com.apple.security.XPCTimeStampingService: TSARequestCompletionBlock: Data (4294 bytes)
com.apple.security.XPCTimeStampingService: 2013-06-17 16:35:40.690 XPCTimeStampingService[5187:1e03] TSA Response: 200, no error, {
com.apple.security.XPCTimeStampingService:     "Content-Length" = 4294;
com.apple.security.XPCTimeStampingService:     "Content-Type" = "application/timestamp-reply";
com.apple.security.XPCTimeStampingService:     Date = "Mon, 17 Jun 2013 14:35:40 GMT";
com.apple.security.XPCTimeStampingService:     Server = "Apache-Coyote/1.1";
com.apple.security.XPCTimeStampingService:     "X-Powered-By" = "Servlet 2.5; JBoss-5.0/JBossWeb-2.1";
com.apple.security.XPCTimeStampingService: }
com.apple.security.XPCTimeStampingService: 2013-06-17 16:35:40.690 XPCTimeStampingService[5187:1e03] TSARequestCompletionBlock: Data (4294 bytes)
com.apple.security.XPCTimeStampingService: handle_request_event: XPC_TYPE_ERROR
com.apple.security.XPCTimeStampingService: listener event error (connection 0x0): Connection invalid
com.apple.security.XPCTimeStampingService: finalize_connection

asked 14 Jun '13, 09:41

Dirk%20Stegemann's gravatar image

Dirk Stegemann
681283244
accept rate: 31%

edited 11 Jul '13, 04:11


Just to make sure I understand the issue, it only happens when signing the first time, with no installer in the output directory, but rebuilding when the installer is already present, it does not complain.

Do you find any logged error in the Console.app after InstallBuilder fails?

link

answered 17 Jun '13, 09:56

juanjo's gravatar image

juanjo ♦♦
5.8k413
accept rate: 23%

Indeed there are some error logged to /var/log/system.log!

I updated the question to include these information.

(17 Jun '13, 10:42) Dirk Stegemann
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×92
×44
×20
×7

Asked: 14 Jun '13, 09:41

Seen: 11,218 times

Last updated: 11 Jul '13, 04:11