MailCore / mailcore2

MailCore 2 provide a simple and asynchronous API to work with e-mail protocols IMAP, POP and SMTP. The API has been redesigned from ground up.
Other
2.59k stars 623 forks source link

[Bug] - Cannot distribute archived product on MacOS (Multiple binaries share the same codesign path) #1981

Open mavrakis opened 1 year ago

mavrakis commented 1 year ago

Summary

Archive works on XCode 14.2 (MacOS X M1, Rosetta), but then I cannot distribute the archived product. A message states multiple binaries share the same codedesign path. Run and Debug works fine.

Please note I tried to follow the steps described in the readme: Click + -> New Copy Files Phase, then change Destination to Frameworks in new build phase -> but this step does not specify which files should be copied. MailCore added with SPM cannot be selected there Click + -> New Run Script Phase, then paste the script box: -> If I enter the script, an error occurs at signing, because no MailCore is present in Frameworks. So, for now those steps are not used.

Platform(s) Mac OS X M1 XCode 14.2 (Rosetta)

When trying to distribute the archived product, the below error is displayed:

Products contains invalid products. Multiple binaries share the same codesign path: /Applications/ManageX.app/Contents/Frameworks/MailCore.framework/Versions/Current Binaries: /Applications/ManageX.app/Contents/Frameworks/MailCore.framework/MailCore /Applications/ManageX.app/Contents/Frameworks/MailCore.framework/Versions/ Current/MailCore This can happen if your build process copies frameworks by following symlinks.

Many thanks for your kind help,

aakrandan commented 4 weeks ago

Here is the solution: https://github.com/MailCore/mailcore2/issues/1237

Delete the "/Applications/ManageX.app/Contents/Frameworks/MailCore.framework/Versions/ " folder.

But not sure if this is a correct fix. But will solve the issue for now.