Xcode archive validation fails when HTML files in a bundle are part of a framework that is a target dependency

Recently uploaded to Xcode 9.1. Archive created for uploading to iTunes fails on validation and is now requiring HTML files to be codesigned. Validation step fails with an ITMS-900035 code object not signed error. Anyone else seeing this issue?


The error returned is as follows - "Invalid Signature. Code object is not signed at all. The file at path [Box.app/Frameworks/BoxPreviewSDK.framework/MDWebView.bundle/codemirror/mode/python/index.html] is not properly signed. Make sure you have signed your application with a distribution certificate, not an ad hoc certificate or a development certificate. Verify that the code signing settings in Xcode are correct at the target level (which override any values at the project level). Additionally, make sure the bundle you are uploading was built using a Release target in Xcode, not a Simulator target. If you are certain your code signing settings are correct, choose "Clean All" in Xcode, delete the "build" directory in the Finder, and rebuild your release target. For more information, please consult https://developer.apple.com/library/ios/documentation/Security/Conceptual/CodeSigningGuide/Introduction/Introduction.html"

Should be error 90035, I think...


See:

Technical Q&A QA1510Resolving the Invalid Signature binary rejection


...and...

https://stackoverflow.com/questions/29859996/error-itms-90035 - (might be related to 'copy bundle resources').


Also note there is no 'clean all' in Xcode -- you'll find 'clean', or option-key'd 'clean build folder'. I only use the latter.

Xcode archive validation fails when HTML files in a bundle are part of a framework that is a target dependency
 
 
Q