DevMate / DevMateKit

Development and Distribution Assistance Platform for Mac Developers
https://devmate.com
21 stars 3 forks source link

Invalid Signature - The nested app bundle DevMateKit at path... #21

Open Anatoliy-Kondrik opened 8 years ago

Anatoliy-Kondrik commented 8 years ago

Hello

DeveMate for MAS 1.7.1 integrated to project by instruction https://docs.devmate.com/v1.0/docs/integrate-devmate-kit

Application Loader successfully load pkg to iTunes Connect. But iTunes Connect show this error:

Invalid Signature - The nested app bundle DevMateKit at path MyApp.app/Contents/Frameworks/DevMateKit.framework has following signing error(s): --prepared:/Volumes/data01/app_data/dstr/mz_720655521135197211dir/mz_837020098124201335dir/com.myapp.myapp.pkg/Payload/MyApp.app/Contents/Frameworks/DevMateKit.framework/Versions/A/Frameworks/DevMateIssuesReporter.framework/Versions/Current/. --validated:/Volumes/data01/app_data/dstr/mz_720655521135197211dir/mz_837020098124201335dir/com.myapp.myapp.pkg/Payload/MyApp.app/Contents/Frameworks/DevMateKit.framework/Versions/A/Frameworks/DevMateIssuesReporter.framework/Versions/Current/. /Volumes/data01/app_data/dstr/mz_720655521135197211dir/mz_837020098124201335dir/com.myapp.myapp.pkg/Payload/MyApp.app/Contents/Frameworks/DevMateKit.framework/Versions/A: a sealed resource is missing or invalid . Refer to the Code Signing and Application Sandboxing Guide at..

dimaty commented 8 years ago

a sealed resource is missing or invalid - What exactly is missing? You can find it out by opening built archive that you were trying to upload. Just open it with "Show Package Contents", find your application and check it in Terminal.app with codesign utililty.

Anatoliy-Kondrik commented 8 years ago

It seems, all in their places

1

codesign --verify --deep --verbose=2 "../build/MyApp.xcarchive/Products/Applications/MyApp.app"

[14:43:02][Step 5/5] --prepared:/Users/administrator/Documents/buildAgent/work/6f02086ea02b954e/build/MyApp.xcarchive/Products/Applications/MyApp.app/Contents/Frameworks/AFNetworking.framework/Versions/Current/. [14:43:02][Step 5/5] --validated:/Users/administrator/Documents/buildAgent/work/6f02086ea02b954e/build/MyApp.xcarchive/Products/Applications/MyApp.app/Contents/Frameworks/AFNetworking.framework/Versions/Current/. [14:43:02][Step 5/5] --prepared:/Users/administrator/Documents/buildAgent/work/6f02086ea02b954e/build/MyApp.xcarchive/Products/Applications/MyApp.app/Contents/Frameworks/DevMateKit.framework/Versions/Current/. [14:43:02][Step 5/5] --prepared:/Users/administrator/Documents/buildAgent/work/6f02086ea02b954e/build/MyApp.xcarchive/Products/Applications/MyApp.app/Contents/Frameworks/DevMateKit.framework/Versions/Current/Frameworks/DevMateIssuesReporter.framework/Versions/Current/. [14:43:02][Step 5/5] --prepared:/Users/administrator/Documents/buildAgent/work/6f02086ea02b954e/build/MyApp.xcarchive/Products/Applications/MyApp.app/Contents/Frameworks/DevMateKit.framework/Versions/Current/Frameworks/DevMateIssuesReporter.framework/Versions/Current/Frameworks/CrashReporter.framework/Versions/Current/. [14:43:02][Step 5/5] --validated:/Users/administrator/Documents/buildAgent/work/6f02086ea02b954e/build/MyApp.xcarchive/Products/Applications/MyApp.app/Contents/Frameworks/DevMateKit.framework/Versions/Current/Frameworks/DevMateIssuesReporter.framework/Versions/Current/Frameworks/CrashReporter.framework/Versions/Current/. [14:43:02][Step 5/5] --validated:/Users/administrator/Documents/buildAgent/work/6f02086ea02b954e/build/MyApp.xcarchive/Products/Applications/MyApp.app/Contents/Frameworks/DevMateKit.framework/Versions/Current/Frameworks/DevMateIssuesReporter.framework/Versions/Current/. [14:43:02][Step 5/5] --validated:/Users/administrator/Documents/buildAgent/work/6f02086ea02b954e/build/MyApp.xcarchive/Products/Applications/MyApp.app/Contents/Frameworks/DevMateKit.framework/Versions/Current/. [14:43:02][Step 5/5] --prepared:/Users/administrator/Documents/buildAgent/work/6f02086ea02b954e/build/MyApp.xcarchive/Products/Applications/MyApp.app/Contents/Frameworks/GTMOAuth2.framework/Versions/Current/. [14:43:02][Step 5/5] --validated:/Users/administrator/Documents/buildAgent/work/6f02086ea02b954e/build/MyApp.xcarchive/Products/Applications/MyApp.app/Contents/Frameworks/GTMOAuth2.framework/Versions/Current/. [14:43:02][Step 5/5] --prepared:/Users/administrator/Documents/buildAgent/work/6f02086ea02b954e/build/MyApp.xcarchive/Products/Applications/MyApp.app/Contents/Frameworks/Masonry.framework/Versions/Current/. [14:43:02][Step 5/5] --validated:/Users/administrator/Documents/buildAgent/work/6f02086ea02b954e/build/MyApp.xcarchive/Products/Applications/MyApp.app/Contents/Frameworks/Masonry.framework/Versions/Current/. [14:43:02][Step 5/5] --prepared:/Users/administrator/Documents/buildAgent/work/6f02086ea02b954e/build/MyApp.xcarchive/Products/Applications/MyApp.app/Contents/Frameworks/SSKeychain.framework/Versions/Current/. [14:43:02][Step 5/5] --validated:/Users/administrator/Documents/buildAgent/work/6f02086ea02b954e/build/MyApp.xcarchive/Products/Applications/MyApp.app/Contents/Frameworks/SSKeychain.framework/Versions/Current/. [14:43:02][Step 5/5] --prepared:/Users/administrator/Documents/buildAgent/work/6f02086ea02b954e/build/MyApp.xcarchive/Products/Applications/MyApp.app/Contents/Frameworks/TCCommon.framework/Versions/Current/. [14:43:02][Step 5/5] --validated:/Users/administrator/Documents/buildAgent/work/6f02086ea02b954e/build/MyApp.xcarchive/Products/Applications/MyApp.app/Contents/Frameworks/TCCommon.framework/Versions/Current/. [14:43:02][Step 5/5] --prepared:/Users/administrator/Documents/buildAgent/work/6f02086ea02b954e/build/MyApp.xcarchive/Products/Applications/MyApp.app/Contents/Frameworks/TCNetwork.framework/Versions/Current/. [14:43:02][Step 5/5] --validated:/Users/administrator/Documents/buildAgent/work/6f02086ea02b954e/build/MyApp.xcarchive/Products/Applications/MyApp.app/Contents/Frameworks/TCNetwork.framework/Versions/Current/. [14:43:02][Step 5/5] --prepared:/Users/administrator/Documents/buildAgent/work/6f02086ea02b954e/build/MyApp.xcarchive/Products/Applications/MyApp.app/Contents/Frameworks/VMOSXControls.framework/Versions/Current/. [14:43:02][Step 5/5] --validated:/Users/administrator/Documents/buildAgent/work/6f02086ea02b954e/build/MyApp.xcarchive/Products/Applications/MyApp.app/Contents/Frameworks/VMOSXControls.framework/Versions/Current/. [14:43:02][Step 5/5] ../build/MyApp.xcarchive/Products/Applications/MyApp.app: valid on disk [14:43:02][Step 5/5] ../build/MyApp.xcarchive/Products/Applications/MyApp.app: satisfies its Designated Requirement

dimaty commented 8 years ago

Refer to the Code Signing and Application Sandboxing Guide at.. - is this string cutted off? Maybe full error string could give me a clue to further research of your problem.

Anatoliy-Kondrik commented 8 years ago

The final part of the message

Refer to the Code Signing and Application Sandboxing Guide at http://developer.apple.com/library/mac/#documentation/Security/Conceptual/CodeSigningGuide/AboutCS/AboutCS.html and Technical Note 2206 at https://developer.apple.com/library/mac/technotes/tn2206/_index.html for more information.

Once these issues have been corrected, you can then redeliver the corrected binary.

Regards,

The App Store team
dimaty commented 8 years ago

Have you changed the bundle identifier of Problem Reporter Sandboxed.app to have your main app bundle id as prefix? You could do it using shell script update_reporter_id.sh (https://docs.devmate.com/v1.0/docs/integrate-devmate-kit#section-devmatekit-for-mac-app-store).

Anatoliy-Kondrik commented 8 years ago

Yes, it's done. Without calling the script assembly is not loaded into iTunes.

update_reporter_id script begin
[17:52:50][Step 5/5] Will check path "/Users/administrator/Library/Developer/Xcode/DerivedData/MyApp-crzotizenxyjrbfhplvvtudqphnl/Build/Intermediates/ArchiveIntermediates/MyApp/InstallationBuildProductsLocation/Applications/MyApp.app/Contents/Frameworks/DevMateKit.framework/Versions/A/Resources/Problem Reporter Sandboxed.app"
[17:52:50][Step 5/5] /Users/administrator/Library/Developer/Xcode/DerivedData/MyApp-crzotizenxyjrbfhplvvtudqphnl/Build/Intermediates/ArchiveIntermediates/MyApp/InstallationBuildProductsLocation/Applications/MyApp.app/Contents/Frameworks/DevMateKit.framework/Versions/A/Resources/Problem Reporter Sandboxed.app: replacing existing signature
[17:52:50][Step 5/5] /Users/administrator/Library/Developer/Xcode/DerivedData/MyApp-crzotizenxyjrbfhplvvtudqphnl/Build/Intermediates/ArchiveIntermediates/MyApp/InstallationBuildProductsLocation/Applications/MyApp.app/Contents/Frameworks/DevMateKit.framework/Versions/A/Resources/Problem Reporter Sandboxed.app: signed app bundle with Mach-O thin (x86_64) [myteam.myapp.com.devmate.Problem-Reporter-Sandboxed]
[17:52:50][Step 5/5] /Users/administrator/Library/Developer/Xcode/DerivedData/MyApp-crzotizenxyjrbfhplvvtudqphnl/Build/Intermediates/ArchiveIntermediates/MyApp/InstallationBuildProductsLocation/Applications/MyApp.app/Contents/Frameworks/DevMateKit.framework/Versions/A: replacing existing signature
[17:52:50][Step 5/5] /Users/administrator/Library/Developer/Xcode/DerivedData/MyApp-crzotizenxyjrbfhplvvtudqphnl/Build/Intermediates/ArchiveIntermediates/MyApp/InstallationBuildProductsLocation/Applications/MyApp.app/Contents/Frameworks/DevMateKit.framework/Versions/A: signed bundle with Mach-O thin (x86_64) [com.devmate.DevMateKit]
update_reporter_id script end
Anatoliy-Kondrik commented 8 years ago

codesign -dvv "../build/MyApp.xcarchive/Products/Applications/MyApp .app"

Executable=/Users/administrator/Documents/buildAgent/work/6f02086ea02b954e/build/MyApp.xcarchive/Products/Applications/MyApp.app/Contents/MacOS/MyApp
Identifier=myteam.myapp
Format=app bundle with Mach-O thin (x86_64)
CodeDirectory v=20200 size=2136 flags=0x0(none) hashes=59+5 location=embedded
Signature size=4692
Authority=Mac Developer: AAAAAAAA BBBBBBBB (XXXXXXXXXX)
Authority=Apple Worldwide Developer Relations Certification Authority
Authority=Apple Root CA
Signed Time=Aug 11, 2016, 4:26:49 PM
Info.plist entries=25
TeamIdentifier=YYYYYYYYY
Sealed Resources version=2 rules=12 files=27
Internal requirements count=1 size=184
storyer commented 8 years ago

Hi Anatoliy, may I ask you to write us at support@devmate.com so we can troubleshoot the issue in more details?

Thanks.

sdevore commented 7 years ago

I am seeing something similar but only with builds from Xcode 8.1 not from Xcode 8.0

codesign --verify --strict --deep --verbose=4 DFS\ SpeedUP.app
--prepared:/Users/sdevore/Desktop/DFS SpeedUP.app/Contents/PlugIns/DFS SpeedUp - Upload.appex
--validated:/Users/sdevore/Desktop/DFS SpeedUP.app/Contents/PlugIns/DFS SpeedUp - Upload.appex
--prepared:/Users/sdevore/Desktop/DFS SpeedUP.app/Contents/Frameworks/DevMateKit.framework/Versions/Current/.
--prepared:/Users/sdevore/Desktop/DFS SpeedUP.app/Contents/Frameworks/DevMateKit.framework/Versions/Current/Frameworks/DevMateIssuesReporter.framework/Versions/Current/.
--prepared:/Users/sdevore/Desktop/DFS SpeedUP.app/Contents/Frameworks/DevMateKit.framework/Versions/Current/XPCServices/com.devmate.UpdateInstaller.xpc
--validated:/Users/sdevore/Desktop/DFS SpeedUP.app/Contents/Frameworks/DevMateKit.framework/Versions/Current/XPCServices/com.devmate.UpdateInstaller.xpc
--prepared:/Users/sdevore/Desktop/DFS SpeedUP.app/Contents/Frameworks/DevMateKit.framework/Versions/Current/Frameworks/DevMateIssuesReporter.framework/Versions/Current/Frameworks/CrashReporter.framework/Versions/Current/.
--validated:/Users/sdevore/Desktop/DFS SpeedUP.app/Contents/Frameworks/DevMateKit.framework/Versions/Current/Frameworks/DevMateIssuesReporter.framework/Versions/Current/Frameworks/CrashReporter.framework/Versions/Current/.
--validated:/Users/sdevore/Desktop/DFS SpeedUP.app/Contents/Frameworks/DevMateKit.framework/Versions/Current/Frameworks/DevMateIssuesReporter.framework/Versions/Current/.
DFS SpeedUP.app: a sealed resource is missing or invalid
In subcomponent: /Users/sdevore/Desktop/DFS SpeedUP.app/Contents/Frameworks/DevMateKit.framework
file modified: /Users/sdevore/Desktop/DFS SpeedUP.app/Contents/Frameworks/DevMateKit.framework/Versions/Current/Headers/DMIssuesController.h
sdevore commented 7 years ago

In a quick test this afternoon, I did not see this anymore in the released version of Xcode 8.2. Still have some testing to do later tonight