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.6k stars 623 forks source link

[Bug] - The resultant framework under SPM will not be accepted to the App Store #1899

Open jraymonds86 opened 3 years ago

jraymonds86 commented 3 years ago

With Xcode 12.3 using SPM with the master branch (and obviously a Swift project in this case for macOS) the framework created does not conform to the spec: https://developer.apple.com/library/archive/documentation/MacOSX/Conceptual/BPFrameworks/Concepts/FrameworkAnatomy.html

It runs fine when debugging but if you attempt to upload to the App Store it will fail. You can work around the issue by going into the Archived app before uploading it and doing this in the root of the framework:

rm MailCore
rm -r Headers
rm -r Modules
rm -r Resources
ln -s Versions/Current/Resources Resources
ln -s Versions/Current/MailCore MailCore
rm -r ./Versions/Current
cd Versions
ln -s A Current