Appboy / appboy-ios-sdk

Public repo for the Braze iOS SDK
https://www.braze.com
Other
165 stars 142 forks source link

Mac won't build unless iOS is built first using latest release with Cocoapods + Catalyst support #284

Closed smawpaw closed 3 years ago

smawpaw commented 3 years ago

Report

Describe your environment.

Info Value
Platform Name iOS / Catalyst
Platform Version 13+ iOS, 14+ Catalust
SDK Version 4.0.0
Integration Method Cocoapods
Xcode Version Xcode 12.2
Repro rate 100%

What did you do?

What did you expect to happen?

What happened instead?

image

Steps to reproduce

Workaround

hokstuff commented 3 years ago

Hi @smawpaw,

Thanks for filing this issue and linking it to the open Cocoapods issue + workaround. It looks like this is a general issue with Pods that have a setup similar to ours. In addition to the workaround linked, you can also explicitly sign each bundle under the Pods project to allow you to run on Mac Catalyst.

In the past, we haven't code signed our SDK because it wasn't necessary on iOS, and Cocoapods/etc would handle it automatically. However, it appears code signing is handled differently for Mac Catalyst and this issue stems from the same place as the one here. We are currently investigating in regards to signing our SDK for distribution. Let us know if you have any further thoughts.

Thank you!

hokstuff commented 3 years ago

Updating this thread here - The Mac Catalyst signing issues in this Cocoapods thread are separate from the ones in the related SPM thread (which has been fixed in Xcode 12.5).

Right now the best thing to do if you experience this issue is to follow the workaround provided in the original post above. This should be sufficient until Cocoapods can handle the generic root cause that this issue stems from.

Since there are no action items on our end, I am closing out this thread. If there are any concerns or if the workaround above isn't sufficient, feel free to comment on / reopen. Thank you!