phrase / ios-sdk

Phrase Over the Air iOS SDK
https://phrase.com
Other
14 stars 3 forks source link

[Binary upload error] Multiple binaries with same code sign path #40

Closed leonardo-ferreira07 closed 2 years ago

leonardo-ferreira07 commented 2 years ago

Hello Phrase team,

We have been using Phrase on our main iOS app and recently we included Phrase into our macOS Catalyst project as well - the Phrase sdk was added into the macOS project via SPM. In our internal tests, no issues have been raised, all works perfectly.

But today when trying to upload a new build to App Store, we caught a new issue due to multiple binaries being signed using the same sign path. We really appreciate if you have any ideas on a workaround or a fix for this error. We tried also adding the sdk manually as per your documentation, but it says that we need to use a XCFramework instead of simple .framework library type.

Below is a screenshot of the error, after integration with SPM and tried to upload a build for macOS (Catalyst):

photo_2021-11-09_21-06-14

winkelsdorf commented 2 years ago

Hello @leonardo-ferreira07,

sorry for the late reply, as we are currently preparing a new release.

The error you get is like related to Xcode including the framework for the different targets twice. In such a situation I would suggest checking the Build Phases if there are any duplicates. If not currently the only way is to manually remove the duplicate using a build script phase (or something similar).

But: we are looking into supporting mac Catalyst natively with the next release. That might solve your problem soon.

hth! Frederik

winkelsdorf commented 2 years ago

Feel free to test again with our latest RC: https://github.com/phrase/ios-sdk/releases/tag/4.0.1-rc.1

winkelsdorf commented 2 years ago

I am pleased to announce that v4.0.1 has just been released, which provides the correct xcframeworks. I'm closing this issue for now, if there are any questions let me know - just reopen or create a new ticket.