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
any version 10.17.0 or higher: Error (Xcode): Undefined symbol #79
Comments
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
My solution has been to downgrade and pin |
This comment was marked as off-topic.
This comment was marked as off-topic.
OK, thank you for your advises. For now it is not urgent for me to build for IOS i just wanted to let you know about the problem. I prefer to wait your solution for version 10.17.0. I'm not closing the issue for now. Thanks! |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
Hey @mikehardy I've spent quite a while looking into this issue. Unfortunately, I have not been able to solve it. I thought I'd report my findings: The framework ships with For instance, this works fine: dependencies:
cloud_firestore: ^4.13.1
firebase_core: ^2.22.0
flutter:
sdk: flutter This produces the error: dependencies:
cloud_firestore: ^4.13.1
firebase_core: ^2.22.0
firebase_database: ^10.3.4
flutter:
sdk: flutter This is because - FirebaseDatabase (10.18.0):
- FirebaseAppCheckInterop (~> 10.17)
- FirebaseCore (~> 10.0)
- FirebaseSharedSwift (~> 10.0)
- leveldb-library (~> 1.22) Here is the first line of the erroneous build log from Xcode: ld: Undefined symbols:
enum case for FirebaseSharedSwift.FirebaseDataDecoder.DataDecodingStrategy.blob(FirebaseSharedSwift.FirebaseDataDecoder.DataDec Full build log of exceptionld: Undefined symbols:
enum case for FirebaseSharedSwift.FirebaseDataDecoder.DataDecodingStrategy.blob(FirebaseSharedSwift.FirebaseDataDecoder.DataDecodingStrategy.Type) -> FirebaseSharedSwift.FirebaseDataDecoder.DataDecodingStrategy, referenced from:
(extension in FirebaseFirestore):__C.FIRFirestore.Decoder.__allocating_init() -> (extension in FirebaseFirestore):__C.FIRFirestore.Decoder in FirebaseFirestore[14](EncoderDecoder.o)
(extension in FirebaseFirestore):__C.FIRFirestore.Decoder.init() -> (extension in FirebaseFirestore):__C.FIRFirestore.Decoder in FirebaseFirestore[14](EncoderDecoder.o)
closure #1 () throws -> A1 in closure #4 (__C.FIRQueryDocumentSnapshot) -> A1? in closure #1 (__C.FIRQuerySnapshot?, Swift.Error?) -> () in FirebaseFirestore.FirestoreQueryObservable.init<A where A == [A1], A1: Swift.Decodable>(configuration: FirebaseFirestore.FirestoreQuery<[A1]>.Configuration) -> FirebaseFirestore.FirestoreQueryObservable<[A1]> in FirebaseFirestore[19](FirestoreQueryObservable.o)
enum case for FirebaseSharedSwift.FirebaseDataDecoder.KeyDecodingStrategy.useDefaultKeys(FirebaseSharedSwift.FirebaseDataDecoder.KeyDecodingStrategy.Type) -> FirebaseSharedSwift.FirebaseDataDecoder.KeyDecodingStrategy, referenced from:
(extension in FirebaseFirestore):__C.FIRFirestore.Decoder.__allocating_init() -> (extension in FirebaseFirestore):__C.FIRFirestore.Decoder in FirebaseFirestore[14](EncoderDecoder.o)
(extension in FirebaseFirestore):__C.FIRFirestore.Decoder.init() -> (extension in FirebaseFirestore):__C.FIRFirestore.Decoder in FirebaseFirestore[14](EncoderDecoder.o)
closure #1 () throws -> A1 in closure #4 (__C.FIRQueryDocumentSnapshot) -> A1? in closure #1 (__C.FIRQuerySnapshot?, Swift.Error?) -> () in FirebaseFirestore.FirestoreQueryObservable.init<A where A == [A1], A1: Swift.Decodable>(configuration: FirebaseFirestore.FirestoreQuery<[A1]>.Configuration) -> FirebaseFirestore.FirestoreQueryObservable<[A1]> in FirebaseFirestore[19](FirestoreQueryObservable.o)
dispatch thunk of FirebaseSharedSwift.FirebaseDataDecoder.keyDecodingStrategy.setter : FirebaseSharedSwift.FirebaseDataDecoder.KeyDecodingStrategy, referenced from:
(extension in FirebaseFirestore):__C.FIRFirestore.Decoder.decode<A where A: Swift.Decodable>(_: A.Type, from: Any) throws -> A in FirebaseFirestore[14](EncoderDecoder.o)
enum case for FirebaseSharedSwift.FirebaseDataDecoder.DateDecodingStrategy.custom(FirebaseSharedSwift.FirebaseDataDecoder.DateDecodingStrategy.Type) -> ((Swift.Decoder) throws -> Foundation.Date) -> FirebaseSharedSwift.FirebaseDataDecoder.DateDecodingStrategy, referenced from:
(extension in FirebaseFirestore):__C.FIRFirestore.Decoder.__allocating_init() -> (extension in FirebaseFirestore):__C.FIRFirestore.Decoder in FirebaseFirestore[14](EncoderDecoder.o)
(extension in FirebaseFirestore):__C.FIRFirestore.Decoder.init() -> (extension in FirebaseFirestore):__C.FIRFirestore.Decoder in FirebaseFirestore[14](EncoderDecoder.o)
closure #1 () throws -> A1 in closure #4 (__C.FIRQueryDocumentSnapshot) -> A1? in closure #1 (__C.FIRQuerySnapshot?, Swift.Error?) -> () in FirebaseFirestore.FirestoreQueryObservable.init<A where A == [A1], A1: Swift.Decodable>(configuration: FirebaseFirestore.FirestoreQuery<[A1]>.Configuration) -> FirebaseFirestore.FirestoreQueryObservable<[A1]> in FirebaseFirestore[19](FirestoreQueryObservable.o)
static (extension in FirebaseFirestore):FirebaseSharedSwift.FirebaseDataDecoder.DateDecodingStrategy.timestamp.getter : FirebaseSharedSwift.FirebaseDataDecoder.DateDecodingStrategy in FirebaseFirestore[25](TimestampDecodingStrategy.o)
dispatch thunk of FirebaseSharedSwift.FirebaseDataDecoder.dataDecodingStrategy.setter : FirebaseSharedSwift.FirebaseDataDecoder.DataDecodingStrategy, referenced from:
(extension in FirebaseFirestore):__C.FIRFirestore.Decoder.decode<A where A: Swift.Decodable>(_: A.Type, from: Any) throws -> A in FirebaseFirestore[14](EncoderDecoder.o)
dispatch thunk of FirebaseSharedSwift.FirebaseDataDecoder.dateDecodingStrategy.setter : FirebaseSharedSwift.FirebaseDataDecoder.DateDecodingStrategy, referenced from:
(extension in FirebaseFirestore):__C.FIRFirestore.Decoder.decode<A where A: Swift.Decodable>(_: A.Type, from: Any) throws -> A in FirebaseFirestore[14](EncoderDecoder.o)
dispatch thunk of FirebaseSharedSwift.FirebaseDataDecoder.passthroughTypeResolver.setter : FirebaseSharedSwift.StructureCodingPassthroughTypeResolver.Type, referenced from:
(extension in FirebaseFirestore):__C.FIRFirestore.Decoder.decode<A where A: Swift.Decodable>(_: A.Type, from: Any) throws -> A in FirebaseFirestore[14](EncoderDecoder.o)
enum case for FirebaseSharedSwift.FirebaseDataDecoder.NonConformingFloatDecodingStrategy.throw(FirebaseSharedSwift.FirebaseDataDecoder.NonConformingFloatDecodingStrategy.Type) -> FirebaseSharedSwift.FirebaseDataDecoder.NonConformingFloatDecodingStrategy, referenced from:
(extension in FirebaseFirestore):__C.FIRFirestore.Decoder.__allocating_init() -> (extension in FirebaseFirestore):__C.FIRFirestore.Decoder in FirebaseFirestore[14](EncoderDecoder.o)
(extension in FirebaseFirestore):__C.FIRFirestore.Decoder.init() -> (extension in FirebaseFirestore):__C.FIRFirestore.Decoder in FirebaseFirestore[14](EncoderDecoder.o)
closure #1 () throws -> A1 in closure #4 (__C.FIRQueryDocumentSnapshot) -> A1? in closure #1 (__C.FIRQuerySnapshot?, Swift.Error?) -> () in FirebaseFirestore.FirestoreQueryObservable.init<A where A == [A1], A1: Swift.Decodable>(configuration: FirebaseFirestore.FirestoreQuery<[A1]>.Configuration) -> FirebaseFirestore.FirestoreQueryObservable<[A1]> in FirebaseFirestore[19](FirestoreQueryObservable.o)
dispatch thunk of FirebaseSharedSwift.FirebaseDataDecoder.nonConformingFloatDecodingStrategy.setter : FirebaseSharedSwift.FirebaseDataDecoder.NonConformingFloatDecodingStrategy, referenced from:
(extension in FirebaseFirestore):__C.FIRFirestore.Decoder.decode<A where A: Swift.Decodable>(_: A.Type, from: Any) throws -> A in FirebaseFirestore[14](EncoderDecoder.o)
dispatch thunk of FirebaseSharedSwift.FirebaseDataDecoder.decode<A where A: Swift.Decodable>(_: A.Type, from: Any) throws -> A, referenced from:
(extension in FirebaseFirestore):__C.FIRFirestore.Decoder.decode<A where A: Swift.Decodable>(_: A.Type, from: Any) throws -> A in FirebaseFirestore[14](EncoderDecoder.o)
dispatch thunk of FirebaseSharedSwift.FirebaseDataDecoder.userInfo.setter : [Swift.CodingUserInfoKey : Any], referenced from:
(extension in FirebaseFirestore):__C.FIRFirestore.Decoder.decode<A where A: Swift.Decodable>(_: A.Type, from: Any) throws -> A in FirebaseFirestore[14](EncoderDecoder.o)
enum case for FirebaseSharedSwift.FirebaseDataEncoder.DataEncodingStrategy.blob(FirebaseSharedSwift.FirebaseDataEncoder.DataEncodingStrategy.Type) -> FirebaseSharedSwift.FirebaseDataEncoder.DataEncodingStrategy, referenced from:
(extension in FirebaseFirestore):__C.FIRFirestore.Encoder.__allocating_init() -> (extension in FirebaseFirestore):__C.FIRFirestore.Encoder in FirebaseFirestore[14](EncoderDecoder.o)
(extension in FirebaseFirestore):__C.FIRFirestore.Encoder.init() -> (extension in FirebaseFirestore):__C.FIRFirestore.Encoder in FirebaseFirestore[14](EncoderDecoder.o)
enum case for FirebaseSharedSwift.FirebaseDataEncoder.KeyEncodingStrategy.useDefaultKeys(FirebaseSharedSwift.FirebaseDataEncoder.KeyEncodingStrategy.Type) -> FirebaseSharedSwift.FirebaseDataEncoder.KeyEncodingStrategy, referenced from:
(extension in FirebaseFirestore):__C.FIRFirestore.Encoder.__allocating_init() -> (extension in FirebaseFirestore):__C.FIRFirestore.Encoder in FirebaseFirestore[14](EncoderDecoder.o)
(extension in FirebaseFirestore):__C.FIRFirestore.Encoder.init() -> (extension in FirebaseFirestore):__C.FIRFirestore.Encoder in FirebaseFirestore[14](EncoderDecoder.o)
dispatch thunk of FirebaseSharedSwift.FirebaseDataEncoder.keyEncodingStrategy.setter : FirebaseSharedSwift.FirebaseDataEncoder.KeyEncodingStrategy, referenced from:
(extension in FirebaseFirestore):__C.FIRFirestore.Encoder.encode<A where A: Swift.Encodable>(A) throws -> [Swift.String : Any] in FirebaseFirestore[14](EncoderDecoder.o)
enum case for FirebaseSharedSwift.FirebaseDataEncoder.DateEncodingStrategy.custom(FirebaseSharedSwift.FirebaseDataEncoder.DateEncodingStrategy.Type) -> ((Foundation.Date, Swift.Encoder) throws -> ()) -> FirebaseSharedSwift.FirebaseDataEncoder.DateEncodingStrategy, referenced from:
(extension in FirebaseFirestore):__C.FIRFirestore.Encoder.__allocating_init() -> (extension in FirebaseFirestore):__C.FIRFirestore.Encoder in FirebaseFirestore[14](EncoderDecoder.o)
(extension in FirebaseFirestore):__C.FIRFirestore.Encoder.init() -> (extension in FirebaseFirestore):__C.FIRFirestore.Encoder in FirebaseFirestore[14](EncoderDecoder.o)
static (extension in FirebaseFirestore):FirebaseSharedSwift.FirebaseDataEncoder.DateEncodingStrategy.timestamp.getter : FirebaseSharedSwift.FirebaseDataEncoder.DateEncodingStrategy in FirebaseFirestore[26](TimestampEncodingStrategy.o)
dispatch thunk of FirebaseSharedSwift.FirebaseDataEncoder.dataEncodingStrategy.setter : FirebaseSharedSwift.FirebaseDataEncoder.DataEncodingStrategy, referenced from:
(extension in FirebaseFirestore):__C.FIRFirestore.Encoder.encode<A where A: Swift.Encodable>(A) throws -> [Swift.String : Any] in FirebaseFirestore[14](EncoderDecoder.o)
dispatch thunk of FirebaseSharedSwift.FirebaseDataEncoder.dateEncodingStrategy.setter : FirebaseSharedSwift.FirebaseDataEncoder.DateEncodingStrategy, referenced from:
(extension in FirebaseFirestore):__C.FIRFirestore.Encoder.encode<A where A: Swift.Encodable>(A) throws -> [Swift.String : Any] in FirebaseFirestore[14](EncoderDecoder.o)
dispatch thunk of FirebaseSharedSwift.FirebaseDataEncoder.passthroughTypeResolver.setter : FirebaseSharedSwift.StructureCodingPassthroughTypeResolver.Type, referenced from:
(extension in FirebaseFirestore):__C.FIRFirestore.Encoder.encode<A where A: Swift.Encodable>(A) throws -> [Swift.String : Any] in FirebaseFirestore[14](EncoderDecoder.o)
enum case for FirebaseSharedSwift.FirebaseDataEncoder.NonConformingFloatEncodingStrategy.throw(FirebaseSharedSwift.FirebaseDataEncoder.NonConformingFloatEncodingStrategy.Type) -> FirebaseSharedSwift.FirebaseDataEncoder.NonConformingFloatEncodingStrategy, referenced from:
(extension in FirebaseFirestore):__C.FIRFirestore.Encoder.__allocating_init() -> (extension in FirebaseFirestore):__C.FIRFirestore.Encoder in FirebaseFirestore[14](EncoderDecoder.o)
(extension in FirebaseFirestore):__C.FIRFirestore.Encoder.init() -> (extension in FirebaseFirestore):__C.FIRFirestore.Encoder in FirebaseFirestore[14](EncoderDecoder.o)
dispatch thunk of FirebaseSharedSwift.FirebaseDataEncoder.nonConformingFloatEncodingStrategy.setter : FirebaseSharedSwift.FirebaseDataEncoder.NonConformingFloatEncodingStrategy, referenced from:
(extension in FirebaseFirestore):__C.FIRFirestore.Encoder.encode<A where A: Swift.Encodable>(A) throws -> [Swift.String : Any] in FirebaseFirestore[14](EncoderDecoder.o)
dispatch thunk of FirebaseSharedSwift.FirebaseDataEncoder.encode<A where A: Swift.Encodable>(A) throws -> Any, referenced from:
(extension in FirebaseFirestore):__C.FIRFirestore.Encoder.encode<A where A: Swift.Encodable>(A) throws -> [Swift.String : Any] in FirebaseFirestore[14](EncoderDecoder.o)
dispatch thunk of FirebaseSharedSwift.FirebaseDataEncoder.userInfo.setter : [Swift.CodingUserInfoKey : Any], referenced from:
(extension in FirebaseFirestore):__C.FIRFirestore.Encoder.encode<A where A: Swift.Encodable>(A) throws -> [Swift.String : Any] in FirebaseFirestore[14](EncoderDecoder.o)
method descriptor for static FirebaseSharedSwift.StructureCodingPassthroughTypeResolver.isPassthroughType<A>(A1) -> Swift.Bool, referenced from:
l_got.$s19FirebaseSharedSwift38StructureCodingPassthroughTypeResolverP02isfG0ySbqd__lFZTq in FirebaseFirestore[6](CodablePassThroughTypes.o)
clang: error: linker command failed with exit code 1 (use -v to see invocation)
The exception points to missing objects as opposed to missing header files.The architecture is correct (I checked the framework binary architecture by running Edits to the
|
I'm not sure if this is helpful or not, but we solved a similar problem with the Swift Package Manager distribution and its binary Firestore target by wrapping Firestore in an "Internal" target and having an outer Firestore target depend on both FirestoreInternal and FirebaseSharedSwift - https://github.com/firebase/firebase-ios-sdk/blob/master/Package.swift#L1503 |
Thanks for the heads up, @paulb777 👍 . We had a try implementing the above and still couldn't get beyond the exception. Do you mind taking a look at these changes to see if there is something we could do to fix it? main...test-fixing10#diff-722406d90405bff17f7e918babfa09df6eb0e10808c09f55b7349f15d1996c99R35 |
I think that FirebaseFirestoreInternal and FirebaseSharedSwift should both be plain dependencies of the Invertase FirebaseFirestore.podspec without the special handling. cc: @ncooke3. |
I don't have an immediate answer, but I'll add some more context to what changes happened in 10.17.0.
Adding on to the above comment, the outer Firestore target is a source target and so is the
This is the reason that Potential solution: Invertase's @russellwheatley, in the issue's description, the undefined symbols were mangled:
In the error logs you included, I noticed they are not:
Was this a result of you adding the
+1 for |
Commenting really briefly since I was tagged and asked a question but I have little to offer in comparison to the big knowledge drop from Nick Cooke!
I have not experienced this on RNFB - yet - because I converted RNFB to use ccache as it speeds up compile of the entire app / all firebase items vs just firestore as this optimization does. I typically only test react-native-firebase with this repo in response to bugs like this and I hadn't had time to do so yet. Hopefully with the info from Paul + Nick things may be rearranged here so it works again. In react-native-firebase there is just a single line I think that is currently commented out and then it uses this podspec as a dep (possibly by git branch ref) vs the Firestore normal source podspec |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as resolved.
This comment was marked as resolved.
@jkgatt and anyone else - this will be an issue on any firebase-ios-sdk >= 10.17.0 - it is not going to self-resolve until there is some fix here - I will update the issue title. |
@paulb777 's approach in #88 (comment) resolves this issue for me. Thank you Paul! |
As I commented in the Pull Request, this also resolved the issue for me. Thank you again Paul. |
@paulb777 - I was able to successfully build once I created a new Flutter project 🎉 . Thanks for the work. To everyone else paying attention to this issue, we should hopefully get this resolved in the near future. It's not quite as simple as merging Paul's PR, but we will endeavour to get this working as soon as possible . I will let you know when it is working 🙏 |
Used to be these frameworks were available within 48 hours (iirc) of a new release. But this one has been broken for me for almost three months. Did something change upstream? It's a very painful developer experience right now. We were able to pin to |
I saw that Paul's PR was closed without any further info? Is there any update on this? |
@matt-hall-zory I believe this is still a very active current work area - I don't have specific info to share but at least I personally am interested in fixing it (I love ccache, yes, but I want this to work too). And I'm pretty sure Mike D and Russell and Paul B are all working on it Usually when Mike D closes stuff it's because he just went and fixed everything, so I have my fingers crossed for that. @lukepighetti these are built by a scheduled job and they come out just a few hours after upstream firebase-ios-sdk releases things. 10.20.0 was released just recently for instance, on schedule. What you're seeing is this artifact where the build itself is failing, as we're working through with 72 comments here, a couple PRs with lots of comments also, and we think a strategy that will fix it. Hold tight and this should be sorted soon |
Yes, was planning to reply after some sleep sorry, but Flutter should be working now on SDK 10.19 and 10.20, same integration as originally; pod 'FirebaseFirestore', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git', :tag => '10.19.0' This was tested by myself and @russellwheatley today and confirmed working for us, please try it out. React Native has not been tested yet but in theory should work. Make sure to run |
@Salakar Exciting news!! I tested it out, however, I am unable to pin version 10.19 or 10.20 because the latest version of flutter cloud_firestore doesn't support those versions. Here is the output I'm seeing:
Installing cloud_firestore directly from main doesn't seem to fix the issue either |
@josiahsrc - hmmm, I thought we'd cut a release with firebase-ios-sdk # Add the below line to your Podfile
$FirebaseSDKVersion = '10.19.0' Just remember to remove it when FlutterFire release goes out today so it doesn't pin the firebase-ios-sdk version 👍 |
@matt-hall-zory We have already updated the codebase with Paul's changes and some other required changes. |
Hey FlutterFire folks, we have released the latest cloud_firestore package (depends on latest firebase_core with the latest firebase-ios-sdk version pod 'FirebaseFirestore', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git', :tag => '10.20.0' It should work as intended. Please let me know how it goes and if you encounter any issues! For any other platforms (i.e. React Native Firebase), could you please test and let me know how it goes? Thanks 🙏 |
It works! Just tested again with 10.20 and everything worked flawlessly. Hello again, 19 second build times 🤩 Soooooo fast. Thanks @russellwheatley @Salakar @paulb777 and all others who helped in fixing this! |
This is confirmed working for react-native-firebase as well now. I believe this is close able, but however if reality contradicts that belief in form of someone with a reproduction where it still doesn't work, obviously we can reopen and keep working away on this one (fantastic work bringing this one home - @russellwheatley @paulb777 @Salakar - seriously) |
Doesn't work for me, FIrebaseFirestoreBinary target is empty, no framework, no files. But I figured a decent workaround: use a compiled FirebaseFirestoreInternal with its dependencies & regular FirebaseFirestore, this still cuts compilation time significantly. Here is a relevant part of Podfile for Flutter (for my workaround) target 'Runner' do
use_frameworks! :linkage => :static # this line is important
use_modular_headers!
pod 'FirebaseFirestoreInternal', :podspec => 'https://gist.githubusercontent.com/szotp-lc/da7c0fe3ed2d0c622fe62348110cb7ef/raw/8e054439082657f9b08e0a0356aa3ef67a90f87b/FirebaseFirestoreInternal.podspec'
flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
end |
oh no - thanks for the report @szotp-lc - sadly but dutifully reopening |
@szotp-lc can you post the podfile contents that do not work? Might help to repro |
Added a project with build error and screenshot. Notice that abseil framework ins included, but FirebaseFirestore and FIrebaseFirestoreBinary are empty. |
@szotp-lc Perhaps it's the static headers and modular headers. This is what I'm using, maybe it will work for you? target 'Runner' do
use_frameworks!
pod 'FirebaseFirestore', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git', :tag => '10.20.0'
flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
end |
On top of this, please show the build output from your terminal 👌 |
working for me! airdrop from heaven!! |
New solution doesn't include https://github.com/search?q=repo%3Ainvertase%2Ffirestore-ios-sdk-frameworks%20vendored&type=code |
This didn't built at first. Same error as before. I had been using 10.18.0.
But I did update all the relevant Firebase packages and upgraded to 10.20.0 and I was able to get it to build. |
Closing out as this issue is resolved. Thank you for the patience 🙏 |
I had forgotten to give my feedback on this. I had been unable to run my application for months due to this issue, and the version bump actually helped me. Thank you so much guys. |
I have had this issue show up today when adding firebase messaging to the flutter application I have tried all fixes and still am met with the same error. The only fix that worked was making a new flutter project and init firebase with flutter fire then bring in lib folder and import pub all new. error produced Error (Xcode): Undefined symbol: enum case for Error (Xcode): Undefined symbol: enum case for Error (Xcode): Undefined symbol: dispatch thunk of FirebaseSharedSwift.FirebaseDataDecoder.keyDecodingStrategy.setter : Error (Xcode): Undefined symbol: enum case for Error (Xcode): Undefined symbol: dispatch thunk of FirebaseSharedSwift.FirebaseDataDecoder.dataDecodingStrategy.setter : Error (Xcode): Undefined symbol: dispatch thunk of FirebaseSharedSwift.FirebaseDataDecoder.dateDecodingStrategy.setter : Error (Xcode): Undefined symbol: dispatch thunk of FirebaseSharedSwift.FirebaseDataDecoder.passthroughTypeResolver.setter : Error (Xcode): Undefined symbol: enum case for Error (Xcode): Undefined symbol: dispatch thunk of Error (Xcode): Undefined symbol: dispatch thunk of FirebaseSharedSwift.FirebaseDataDecoder.decode(_: A.Type, from: Any) throws -> A Error (Xcode): Undefined symbol: dispatch thunk of FirebaseSharedSwift.FirebaseDataDecoder.userInfo.setter : Error (Xcode): Undefined symbol: enum case for Error (Xcode): Undefined symbol: enum case for Error (Xcode): Undefined symbol: dispatch thunk of FirebaseSharedSwift.FirebaseDataEncoder.keyEncodingStrategy.setter : Error (Xcode): Undefined symbol: enum case for Error (Xcode): Undefined symbol: dispatch thunk of FirebaseSharedSwift.FirebaseDataEncoder.dataEncodingStrategy.setter : Error (Xcode): Undefined symbol: dispatch thunk of FirebaseSharedSwift.FirebaseDataEncoder.dateEncodingStrategy.setter : Error (Xcode): Undefined symbol: dispatch thunk of FirebaseSharedSwift.FirebaseDataEncoder.passthroughTypeResolver.setter : Error (Xcode): Undefined symbol: enum case for Error (Xcode): Undefined symbol: dispatch thunk of Error (Xcode): Undefined symbol: dispatch thunk of FirebaseSharedSwift.FirebaseDataEncoder.encode(A) throws -> Any Error (Xcode): Undefined symbol: dispatch thunk of FirebaseSharedSwift.FirebaseDataEncoder.userInfo.setter : Error (Xcode): Undefined symbol: method descriptor for static Error (Xcode): Linker command failed with exit code 1 (use -v to see invocation) Could not build the application for the simulator. dependencies: The following adds the Cupertino Icons font to your application.Use with the CupertinoIcons class for iOS style icons.cupertino_icons: ^1.0.2 cloud_firestore: ^4.14.0 podfile Uncomment this line to define a global platform for your projectplatform :ios, '12.0' CocoaPods analytics sends network stats synchronously affecting flutter build latency.ENV['COCOAPODS_DISABLE_STATS'] = 'true' source 'https://github.com/paulb777/TestFirebaseBinaryStaging.git' project 'Runner', { def flutter_root File.foreach(generated_xcode_build_settings_path) do |line| require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root) flutter_ios_podfile_setup target 'Runner' do post_install do |installer| |
After updating cloud_firestore to 4.13.0 and 10.16.0 to 10.17.0 and error start to show up. Please check below
flutter run -v
flutter_run.txt
i tried flutter clean, removing Pods, podfile.lock PodFile then pod install --repo-update
my Podfile
flutter doctor -v
Long story short, after updating to 10.17.0 it doesnt want to work
The text was updated successfully, but these errors were encountered: