Xcode 4.3 can't sign Mac apps with frameworks for distribution
| Originator: | jacob.gorban | ||
| Number: | rdar://10970759 | Date Originated: | 02 March 2012 |
| Status: | New | Resolved: | |
| Product: | Developer tools | Product Version: | 4.3 |
| Classification: | Serious bug | Reproducible: | Always |
Summary: I want to submit an update to my Mac app on the Mac App Store. The application includes one framework (BGHUDAppKit). The application is archived alright. When trying to submit or even validate it to Mac App Store in Xcode 4.3, after selecting the code signing identity, it fails with: "Codesign operation failed" - "Check that the identity you selected is valid." alert. In Console I see the following: 02/03/2012 13:16:59.874 [0x0-0x2b22b2].com.apple.dt.Xcode: /Users/jacob/Library/Developer/Xcode/Archives/2012-03-02/ImageFramer3 (MAS) 02-03-2012 13.15.xcarchive/Products/Applications/ImageFramer.app/Contents/Frameworks/BGHUDAppKit.framework: Is a directory Sounds like a serious bug in signing process. Couldn't find any workaround. Also saw a thread on dev forums: https://devforums.apple.com/message/621193 No solution there either, except integrating the framework into the app as source, which is quite a lot of work and not always feasible. Steps to Reproduce: Try to validate a Mac application with frameworks. Expected Results: Pass validation and submission to Mac App Store Actual Results: Fails with: "Codesign operation failed" - "Check that the identity you selected is valid." alert Regression: Notes:
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!
Solution
I found that one of my frameworks was simply damaged, due to a overzealous "cleanup" script.
Solution posted here:
http://stackoverflow.com/a/10830989/43615
the same with me. I'm trying to release cordova-based (phonegap) application ad hoc: Apr 23 21:32:46 Aleksandrs-Mac-mini [0x0-0x9009].com.apple.dt.Xcode[147]: /Users/ag/Library/Developer/Xcode/Archives/2012-04-23/KindGrams DarwinApps 4-23-12 9.17 PM.xcarchive/Products/Applications/KindGrams DarwinApps.app/www/sdk/command/src/module/generate/App: Is a directory
There are both App.js and App directory in /Users/ag/Library/Developer/Xcode/Archives/2012-04-23/KindGrams DarwinApps 4-23-12 9.17 PM.xcarchive/Products/Applications/KindGrams DarwinApps.app/www/sdk/command/src/module/generate/ directory
Workaround
I've provided a workaround here
http://stackoverflow.com/a/9693844/171168
let me know it works for you too.
Duped as: #10971980