googlecast / CastVideos-ios

Reference iOS Sender w/ Framework API: CastVideos-ios application shows how to cast videos from an iOS device that is fully compliant with the Cast Design Checklist.
Apache License 2.0
193 stars 62 forks source link

Google cast doesn't support `arm64` architecture on simulators #132

Open Ariandr opened 1 year ago

Ariandr commented 1 year ago

Now, in order to build the project, I need to exclude arm64 architecture in Build Settings because of using google cast pod.

Starting from Xcode 14.3, it messes with displaying live issues and displaying the build warnings and errors after the successful build. The issue and solution is described here: https://developer.apple.com/forums/thread/715103?answerId=749818022#749818022

But unfortunately, if I remove arm64 from excluded architectures, the project doesn't compile because I get this error: In /Users/***/Documents/Work/iOS/***/Pods/google-cast-sdk-no-bluetooth/GoogleCastSDK-ios-4.7.0_static/GoogleCast.framework/GoogleCast(GCKCastContext+UI.o), building for iOS Simulator, but linking in object file built for iOS, file '/Users/***/Documents/Work/iOS/**/Pods/google-cast-sdk-no-bluetooth/GoogleCastSDK-ios-4.7.0_static/GoogleCast.framework/GoogleCast' for architecture arm64

HarisHare commented 1 year ago

I was having the same issue while building a flutter app. Found this in docs https://developers.google.com/cast/docs/ios_sender There is a section near the end on how to manually update to version 4.7.1 which supports arm64 for simulators. Hope it helps

Ariandr commented 1 year ago

Hi @HarisHare Thanks!

Ariandr commented 1 year ago

Hi. Does anyone know when 4.7.1 is going to be available via Cocoapods?