Bug 7393 - Unable to submit app to App Store due to "invalid signature"
Summary: Unable to submit app to App Store due to "invalid signature"
Status: RESOLVED FIXED
Alias: None
Product: MonoMac
Classification: Desktop
Component: Bindings ()
Version: unspecified
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2012-09-21 14:00 UTC by Frank A. Krueger
Modified: 2015-02-12 21:02 UTC (History)
5 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description Frank A. Krueger 2012-09-21 14:00:04 UTC
I receive the following text from Apple when trying to submit my app:

"""
Invalid Signature - the main app bundle iCircuit at path iCircuit.app is signed but the signature is invalid. Refer to the Code Signing and Application Sandboxing Guide for more information.
"""

The app builds successfully with all my certificates, and entitlements, and provisioning profiles. (See log below.) I have even regenerated all my certificates to make sure they weren't old...

"""
Cleaning Solution: CircuitMac (Distribution)

Cleaning: CircuitMac (Distribution)
Removing output files...
Clean complete

Building Solution: CircuitMac (Distribution)

Building: CircuitMac (Distribution)

Detecting code signing identity...
Provisioning profile: "iCircuit Production" (D908556B-20D7-488D-966F-88E81AE6A742)
Code Signing Identity: "3rd Party Mac Developer Application: Krueger Systems, Inc."
App ID: "WNF26QR38H.com.kruegersystems.circuitmac"
Performing main compilation...
/Library/Frameworks/Mono.framework/Versions/2.10.9/bin/dmcs /noconfig "/out:/Users/fak/Projects/Circuit/CircuitMac/bin/Distribution/iCircuit.exe" ...

Compiling interface definitions
...
Copying content files
...

Build complete -- 0 errors, 0 warnings

Updating application manifest

Processing entitlements file

Preparing resources rules

Merging Mono Runtime into app bundle
/Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/MonoDevelop.MonoMac/mmp -nolink "-minos=10.6" -o "/Users/fak/Projects/Circuit/CircuitMac/bin/Distribution" -n "iCircuit" -a "/Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/4.0/System.dll" -a "/Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/4.0/System.Xml.dll" -a "/Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/4.0/System.Core.dll" -a "/Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/4.0/System.Xml.Linq.dll" -a "/Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/4.0/System.Drawing.dll" -a "/Users/fak/Projects/Circuit/CircuitMac/Lib/MonoMac.dll" "/Users/fak/Projects/Circuit/CircuitMac/bin/Distribution/iCircuit.exe"
bundling complete

Signing application
codesign -v --force --sign "3rd Party Mac Developer Application: Krueger Systems, Inc." "--resource-rules=/Users/fak/Projects/Circuit/CircuitMac/bin/Distribution/iCircuit.app/Contents/ResourceRules.plist" --entitlements "/Users/fak/Projects/Circuit/CircuitMac/bin/Distribution/iCircuit.xcent" "/Users/fak/Projects/Circuit/CircuitMac/bin/Distribution/iCircuit.app"
/Users/fak/Projects/Circuit/CircuitMac/bin/Distribution/iCircuit.app: signed bundle with Mach-O thin (i386) [com.kruegersystems.circuitmac]

Embedding provisioning profile

Creating installer
productbuild --component "/Users/fak/Projects/Circuit/CircuitMac/bin/Distribution/iCircuit.app" /Applications --sign "3rd Party Mac Developer Installer: Krueger Systems, Inc." "/Users/fak/Projects/Circuit/CircuitMac/bin/Distribution/CircuitMac-0.1.pkg"
productbuild: Adding component at /Users/fak/Projects/Circuit/CircuitMac/bin/Distribution/iCircuit.app
productbuild: Signing product with identity "3rd Party Mac Developer Installer: Krueger Systems, Inc." from keychain /Users/fak/Library/Keychains/login.keychain
productbuild: Adding certificate "Apple Worldwide Developer Relations Certification Authority"
productbuild: Adding certificate "Apple Root CA"
productbuild: Wrote product to /Users/fak/Projects/Circuit/CircuitMac/bin/Distribution/CircuitMac-0.1.pkg
productbuild: Supported OS versions: [10.6, )

---------------------- Done ----------------------

Build: 0 errors, 1 warning
"""
Comment 1 Neal 2012-10-17 12:54:59 UTC
I'm getting this too, any suggestions?
Comment 2 Rolf Bjarne Kvinge [MSFT] 2013-10-14 06:17:11 UTC
Can you run this from a terminal:

codesign -v path/to/myapp.app

it might say if/why the signature is invalid..
Comment 3 Frank A. Krueger 2013-10-14 11:59:05 UTC
This was fixed, afaik, with the release of Xamarin.Mac. Honestly, I haven't updated iCircuit since then so I can only assume it will work now.
Comment 4 Timothy Risi 2015-02-12 21:02:09 UTC
Closing per comment 3