New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Building for 'visionOS-simulator', but linking in object file FIRAAdExposureReporter.o built for 'iOS-simulator' #12591
Comments
I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight. |
FirebaseAnalytics does not support visionOS. There is an open feature request at #12230. Also, while the CocoaPods workaround may work, we've only tested Firebase via Swift Package Manager for visionOS targets. |
Remove |
@abbana Does removing Analytics from the installation address the build issue? |
Removing Analytics resolved the issue. Now we have a bigger issue that blocks us from proceeding. Any of the below pulls GoogleDataTransport (9.4.1, latest) which won't run in visionOS Simulator "CoreTelephony is not available when building for visionOS Simulator." FirebaseCrashLytics which we all use. They compile perfectly to iOS simulator, and chances to have a physical visionOS are scarse, so we will be blocked till then. Can we have this fixed or workarounded so we can move forward please? v9.4.1 (CocoaPods Only) v9.4.0 v9.3.0 v9.2.5 v9.2.4 (SwiftPM Only) I tried to open a bug in GoogleDataTransport , but it has redirected us here. Do I need to fill a new bug for this or is a quick fix? Thank you. |
@abbana At first glance that looks like a CocoaPods issue: CoreTelephony is specified only for iOS and OSX in the podspec - https://github.com/google/GoogleDataTransport/blob/main/GoogleDataTransport.podspec#L36. There may be a way to extend your Podfile workaround to address it, or you may be able to remove |
Raised CocoaPods/CocoaPods#12316 Let's give this some more time as in short of ideas on how to proceed further. Thanks. |
Ok, so after hours of work, we still have this issue left unfortunately. I have tried multiple thing amongst which the ones you suggested
Which gives us something around the lines below
Of course CocoaPods has just one platform and we have set it ios. We can't distinguish at this stage between the two, so nothing we can do here
In Xcode, under "Frameworks, Libraries and Embedded Content" all are linked to just Pods_.framework , so we can't workaround anything here it either, am I wrong? I was not able to find in the podspec s.visionos.frameworks = 'SystemConfiguration', while all the other platforms have it, so maybe it defaults to the platform specified in the podfile if not sepcified in the .podspect? It will be worth adding the s.visionos.frameworks value to the .podspec and try with an ios-visionos empty project if that fixes the built issue. Let me know if anything I can do from my side. And thank you. |
Thank you @paulb777 , but I haven't found a way to remove that frame either in Xcode or Podfile as after installation task, simply we were not able to. Also supposing you can effectively remove it from the framework list that way, which is not, you will remove it from all the build targets. So the only solution I see is that the maintainer, you, fix the repo so that it won't be included for visionOS and visionOS simulator. |
We haven't yet prioritized CocoaPods support for VisionOS, so we're currently more able to help people using Swift Package Manager for VisionOS builds. |
Thank you Paul, There are some Google Products like MLKit which do not support SPM , see googlesamples/mlkit#180 We use them in Android, iOS, ipadOS, and we should use them on visionOS as well. Can we have a rough ETA on to when a Firebase project will be able to run for both iOS and visionOS using CocoaPods? |
We don't yet have an ETA for visionOS via CocoaPods, partly because CocoaPods support for visionOS is still TBD. I don't think there are any Google products that support visionOS that don't also support Swift Package Manager. |
Understood, thank you. |
Description
Hi,
I need to have support for iPhone, iPad and now for visionOS. I use CocoaPods. I have Xcode 15.2
I have applied rivera-ernesto workaround from CocoaPods/CocoaPods#12094 and my Podfile is per below
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '15.0'
use_frameworks!
target 'XYZ' do
pod 'Firebase', '
> 10.22.0'> 10.22.0'pod 'FirebaseDatabase', '
pod 'FirebaseCore', '
> 10.22.0'> 10.22.0'pod 'FirebaseAuth', '
pod 'FirebaseStorage', '
> 10.22.0'> 10.22.0'pod 'FirebaseAppCheck', '
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
end
end
I do not have a visionpro yet, so I need to use the simulator.
It throws
Building for 'visionOS-simulator', but linking in object file (/Users/aaa/Library/Developer/Xcode/DerivedData15/XYZ-azxtzecwtbuysxhagymjaoytbgqj/Build/Products/Debug-xrsimulator/XCFrameworkIntermediates/FirebaseAnalytics/AdIdSupport/FirebaseAnalytics.framework/FirebaseAnalytics[arm64]3) built for 'iOS-simulator'
I do not use Analytics at all, but I have been told it comes with Core.
How can get this resolved please? Can't integrate the new platform otherwise.
Reproducing the issue
No response
Firebase SDK Version
10.22
Xcode Version
15.2
Installation Method
CocoaPods
Firebase Product(s)
All
Targeted Platforms
iOS, visionOS
Relevant Log Output
If using Swift Package Manager, the project's Package.resolved
Expand
Package.resolved
snippetReplace this line with the contents of your Package.resolved.
If using CocoaPods, the project's Podfile.lock
Expand
Podfile.lock
snippetThe text was updated successfully, but these errors were encountered: