invertase / firestore-ios-sdk-frameworks

⚡ Precompiled Firestore iOS SDKs extracted from the Firebase iOS SDK repository release downloads for faster build times.
Apache License 2.0
433 stars 49 forks source link

Error (Xcode): Undefined symbol with version 10.x #62

Closed Hesamedin closed 1 year ago

Hesamedin commented 1 year ago

Hello, I used 9.6.0 without any problem in my Flutter project. I updated almost all of my dependencies and then I had no choice but to update FirebaseFirestore to 10.0.0. By doing this, I cannot build my project for iOS. This is what I see in the log of Azure CLI for the following command:

flutter build ios --no-codesign --build-number=12899 --target=lib/main_dev.dart
Output Log (Click me) 2022-10-20T16:51:59.3448730Z ##[section]Starting: Build for iOS (Debug) 2022-10-20T16:51:59.3465320Z ============================================================================== 2022-10-20T16:51:59.3465740Z Task : Flutter Build Task 2022-10-20T16:51:59.3466040Z Description : Build a Flutter application project. 2022-10-20T16:51:59.3466320Z Version : 0.3.5 2022-10-20T16:51:59.3466530Z Author : Hey24sheep 2022-10-20T16:51:59.3466900Z Help : [More Information](https://github.com/hey24sheep/azure-flutter-tasks) 2022-10-20T16:51:59.3467340Z ============================================================================== 2022-10-20T16:51:59.5789140Z [command]/Users/runner/work/1/s/flutter/bin/flutter build ios --no-codesign --build-number=12899 --target=lib/main_dev.dart 2022-10-20T16:52:29.2558220Z Running "flutter pub get" in s... 28.4s 2022-10-20T16:52:30.6795910Z Warning: Building for device with codesigning disabled. You will have to manually codesign before deploying to device. 2022-10-20T16:52:49.0210410Z Building com.ATCO.CustomerOutageNotification for device (ios-release)... 2022-10-20T16:59:11.8309070Z Running pod install... 374.0s 2022-10-20T17:05:19.0617120Z Running Xcode build... 2022-10-20T17:05:19.0620560Z Xcode build done. 367.2s 2022-10-20T17:05:20.5896710Z Failed to build iOS app 2022-10-20T17:05:20.5915480Z Error output from Xcode build: 2022-10-20T17:05:20.5916530Z ↳ 2022-10-20T17:05:20.5918620Z ** BUILD FAILED ** 2022-10-20T17:05:20.5919480Z 2022-10-20T17:05:20.5919820Z 2022-10-20T17:05:20.5920390Z Xcode's output: 2022-10-20T17:05:20.5920800Z ↳ 2022-10-20T17:05:20.5940100Z Writing result bundle at path: 2022-10-20T17:05:20.5940800Z /var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/flutter_tools.CuwB9v/flutter_ios_build_temp_diryBTe5y/temporary_xcresult_bundle 2022-10-20T17:05:20.5941270Z 2022-10-20T17:05:20.5941680Z 1 warning generated. 2022-10-20T17:05:20.5943120Z /Users/runner/work/1/s/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_local_notifications-9.9.1/ios/Classes/FlutterLocalNotificationsPlugin.m:13:3: warning: 'UILocalNotification' is deprecated: first deprecated in iOS 10.0 - Use UserNotifications Framework's UNNotificationRequest [-Wdeprecated-declarations] 2022-10-20T17:05:20.5944210Z UILocalNotification *_launchNotification; 2022-10-20T17:05:20.5944550Z ^ 2022-10-20T17:05:20.5945340Z In module 'UIKit' imported from /Users/runner/work/1/s/ios/Pods/Target Support Files/flutter_local_notifications/flutter_local_notifications-prefix.pch:2: 2022-10-20T17:05:20.5946770Z /Applications/Xcode_14.0.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UILocalNotification.h:18:12: note: 'UILocalNotification' has been explicitly marked deprecated here 2022-10-20T17:05:20.5947740Z @interface UILocalNotification : NSObject 2022-10-20T17:05:20.5948140Z ^ 2022-10-20T17:05:20.5949360Z /Users/runner/work/1/s/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_local_notifications-9.9.1/ios/Classes/FlutterLocalNotificationsPlugin.m:335:4: warning: 'UILocalNotification' is deprecated: first deprecated in iOS 10.0 - Use UserNotifications Framework's UNNotificationRequest [-Wdeprecated-declarations] 2022-10-20T17:05:20.5950540Z - (UILocalNotification *)buildStandardUILocalNotification: 2022-10-20T17:05:20.5950940Z ^ 2022-10-20T17:05:20.5951720Z In module 'UIKit' imported from /Users/runner/work/1/s/ios/Pods/Target Support Files/flutter_local_notifications/flutter_local_notifications-prefix.pch:2: 2022-10-20T17:05:20.5953140Z /Applications/Xcode_14.0.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UILocalNotification.h:18:12: note: 'UILocalNotification' has been explicitly marked deprecated here 2022-10-20T17:05:20.5955090Z @interface UILocalNotification : NSObject 2022-10-20T17:05:20.5955470Z ^ 2022-10-20T17:05:20.5956750Z /Users/runner/work/1/s/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_local_notifications-9.9.1/ios/Classes/FlutterLocalNotificationsPlugin.m:935:34: warning: 'UILocalNotification' is deprecated: first deprecated in iOS 10.0 - Use UserNotifications Framework's UNNotificationRequest [-Wdeprecated-declarations] 2022-10-20T17:05:20.5957860Z didReceiveLocalNotification:(UILocalNotification *)notification { 2022-10-20T17:05:20.5958300Z ^ 2022-10-20T17:05:20.5959080Z In module 'UIKit' imported from /Users/runner/work/1/s/ios/Pods/Target Support Files/flutter_local_notifications/flutter_local_notifications-prefix.pch:2: 2022-10-20T17:05:20.5960510Z /Applications/Xcode_14.0.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UILocalNotification.h:18:12: note: 'UILocalNotification' has been explicitly marked deprecated here 2022-10-20T17:05:20.5961890Z @interface UILocalNotification : NSObject 2022-10-20T17:05:20.5962280Z ^ . . . . . 2022-10-20T17:05:20.6344860Z 2022-10-20T17:05:20.6344980Z 2022-10-20T17:05:20.6345610Z Error (Xcode): Undefined symbol: _$s19FirebaseSharedSwift0A11DataDecoderC0D16DecodingStrategyO6base64yA2EmFWC 2022-10-20T17:05:20.6345960Z 2022-10-20T17:05:20.6346470Z Error (Xcode): Undefined symbol: _$s19FirebaseSharedSwift0A11DataDecoderC19KeyDecodingStrategyO14useDefaultKeysyA2EmFWC 2022-10-20T17:05:20.6346840Z 2022-10-20T17:05:20.6347320Z Error (Xcode): Undefined symbol: _$s19FirebaseSharedSwift0A11DataDecoderC19keyDecodingStrategyAC03KeygH0OvsTj 2022-10-20T17:05:20.6347670Z 2022-10-20T17:05:20.6348220Z Error (Xcode): Undefined symbol: _$s19FirebaseSharedSwift0A11DataDecoderC20DateDecodingStrategyO6customyAE10Foundation0F0Vs0E0_pKccAEmFWC 2022-10-20T17:05:20.6348640Z 2022-10-20T17:05:20.6349130Z Error (Xcode): Undefined symbol: _$s19FirebaseSharedSwift0A11DataDecoderC20dataDecodingStrategyAC0dgH0OvsTj 2022-10-20T17:05:20.6349470Z 2022-10-20T17:05:20.6349970Z Error (Xcode): Undefined symbol: _$s19FirebaseSharedSwift0A11DataDecoderC20dateDecodingStrategyAC04DategH0OvsTj 2022-10-20T17:05:20.6350320Z 2022-10-20T17:05:20.6350870Z Error (Xcode): Undefined symbol: _$s19FirebaseSharedSwift0A11DataDecoderC23passthroughTypeResolverAA026StructureCodingPassthroughgH0_pXpvsTj 2022-10-20T17:05:20.6351290Z 2022-10-20T17:05:20.6351810Z Error (Xcode): Undefined symbol: _$s19FirebaseSharedSwift0A11DataDecoderC34NonConformingFloatDecodingStrategyO5throwyA2EmFWC 2022-10-20T17:05:20.6352190Z 2022-10-20T17:05:20.6352710Z Error (Xcode): Undefined symbol: _$s19FirebaseSharedSwift0A11DataDecoderC34nonConformingFloatDecodingStrategyAC03NonghiJ0OvsTj 2022-10-20T17:05:20.6353090Z 2022-10-20T17:05:20.6353570Z Error (Xcode): Undefined symbol: _$s19FirebaseSharedSwift0A11DataDecoderC6decode_4fromxxm_yptKSeRzlFTj 2022-10-20T17:05:20.6354320Z 2022-10-20T17:05:20.6354840Z Error (Xcode): Undefined symbol: _$s19FirebaseSharedSwift0A11DataDecoderC8userInfoSDys010CodingUserG3KeyVypGvsTj 2022-10-20T17:05:20.6355200Z 2022-10-20T17:05:20.6355680Z Error (Xcode): Undefined symbol: _$s19FirebaseSharedSwift0A11DataEncoderC0D16EncodingStrategyO6base64yA2EmFWC 2022-10-20T17:05:20.6356030Z 2022-10-20T17:05:20.6356530Z Error (Xcode): Undefined symbol: _$s19FirebaseSharedSwift0A11DataEncoderC19KeyEncodingStrategyO14useDefaultKeysyA2EmFWC 2022-10-20T17:05:20.6356910Z 2022-10-20T17:05:20.6357380Z Error (Xcode): Undefined symbol: _$s19FirebaseSharedSwift0A11DataEncoderC19keyEncodingStrategyAC03KeygH0OvsTj 2022-10-20T17:05:20.6357730Z 2022-10-20T17:05:20.6358350Z Error (Xcode): Undefined symbol: _$s19FirebaseSharedSwift0A11DataEncoderC20DateEncodingStrategyO6customyAEy10Foundation0F0V_s0E0_ptKccAEmFWC 2022-10-20T17:05:20.6358800Z 2022-10-20T17:05:20.6359390Z Error (Xcode): Undefined symbol: _$s19FirebaseSharedSwift0A11DataEncoderC20dataEncodingStrategyAC0dgH0OvsTj 2022-10-20T17:05:20.6360100Z 2022-10-20T17:05:20.6360650Z Error (Xcode): Undefined symbol: _$s19FirebaseSharedSwift0A11DataEncoderC20dateEncodingStrategyAC04DategH0OvsTj 2022-10-20T17:05:20.6361000Z 2022-10-20T17:05:20.6361550Z Error (Xcode): Undefined symbol: _$s19FirebaseSharedSwift0A11DataEncoderC23passthroughTypeResolverAA026StructureCodingPassthroughgH0_pXpvsTj 2022-10-20T17:05:20.6361970Z 2022-10-20T17:05:20.6362490Z Error (Xcode): Undefined symbol: _$s19FirebaseSharedSwift0A11DataEncoderC34NonConformingFloatEncodingStrategyO5throwyA2EmFWC 2022-10-20T17:05:20.6362870Z 2022-10-20T17:05:20.6363490Z Error (Xcode): Undefined symbol: _$s19FirebaseSharedSwift0A11DataEncoderC34nonConformingFloatEncodingStrategyAC03NonghiJ0OvsTj 2022-10-20T17:05:20.6363880Z 2022-10-20T17:05:20.6364350Z Error (Xcode): Undefined symbol: _$s19FirebaseSharedSwift0A11DataEncoderC6encodeyypxKSERzlFTj 2022-10-20T17:05:20.6364660Z 2022-10-20T17:05:20.6365170Z Error (Xcode): Undefined symbol: _$s19FirebaseSharedSwift0A11DataEncoderC8userInfoSDys010CodingUserG3KeyVypGvsTj 2022-10-20T17:05:20.6365520Z 2022-10-20T17:05:20.6366030Z Error (Xcode): Undefined symbol: _$s19FirebaseSharedSwift38StructureCodingPassthroughTypeResolverP02isfG0ySbqd__lFZTq 2022-10-20T17:05:20.6366390Z 2022-10-20T17:05:20.6366730Z Encountered error while building for device. 2022-10-20T17:05:20.6878110Z ##[error]Error: The process '/Users/runner/work/1/s/flutter/bin/flutter' failed with exit code 1 2022-10-20T17:05:20.6896480Z ##[section]Finishing: Build for iOS (Debug)
Hesamedin commented 1 year ago

I am able to pass the build process by commenting FirebaseFirestore out however the build time increases to 40 minutes (previously 15 min).

2022-10-20_13-06-52

mikehardy commented 1 year ago

Indeed, and this is the correct location for the issue.

There are notes here: https://github.com/firebase/firebase-ios-sdk/issues/10383 Where it was repointed at the FlutterFire repo: https://github.com/firebase/flutterfire/issues/9761 (and there is some triage there)

But this is likely to be the location of the root cause I think.

Myself and @russellwheatley have reproduced this, so we do see the issue.

temporary workaround is to remove this pre-compiled version of Firestore and compile during build

That seems painful, but it is not that bad combined with use of https://ccache.dev/ (via https://github.com/hendrikmuhs/ccache-action perhaps, and an integration like the one described for react-native but that will work for Flutter as well with a Podfile change https://reactnative.dev/docs/0.69/build-speed#xcode-specific-setup).

You can see something similar in action in a publicly available repo here:

https://github.com/invertase/react-native-firebase/blob/f2d1363b89fb046388f8336b08852c1ea0c285f2/.github/workflows/tests_e2e_ios.yml#L140-L154

...and we set Xcode up to use relative paths directly on command line instead of as Podfile post install but theory is same: https://github.com/invertase/react-native-firebase/blob/f2d1363b89fb046388f8336b08852c1ea0c285f2/tests/package.json#L62


Okay, so things I have tried that have not worked yet:

Thoughts I have had that I have not had time to try:

Any thoughts, experiments + results welcome

russellwheatley commented 1 year ago

The most interesting lead I currently have:

FirebaseFunctions is the only other product that will include FirebaseSharedSwift dependency (FirebaseDatabase and FirebaseRemoteConfig also have it in their Swift implementation/podspecs, but they aren't pulled in as dependencies when you include them in a Flutter project. It's the obj-c implementation/podspec that does not have FirebaseSharedSwift as a dependency).

Here is the FirebaseRemoteConfig + Firestore pods for example. Note it does not include FirebaseSharedSwift as a pod:

remote config with no FirebaseSharedSwift as dependency

Now, when I have the dependencies Firestore + FirebaseFunctions in my flutter project, I see FirebaseSharedSwift hoisted into the pods:

cloud functions with FirebaseSharedSwift

If we look in the build directory. We can see the FirebaseSharedSwift framework has a different structure & different files to the one that are inside XCFrameworkIntermediates/FirebaseFirestore directory:

FirebaseSharedSwift pod build:

As its own Pod in build

XCFrameworkIntermediates/FirebaseFirestore/Base/FirebaseSharedSwift build:

Version inside XCodeVersionIntermediates

My theory is that it is looking on the wrong path for FirebaseSharedSwift, and something like adding this XCFrameworkIntermediates/FirebaseFirestore/Base/FirebaseSharedSwift as a search path on the FirebaseFirestore target is a likely solution. Or something along those lines 🤷‍♂️. That's about as far as I've got.

Hesamedin commented 1 year ago

@russellwheatley interesting point. You are right about Firebaes AppConfig. I had a task to integrate this lib and functionality into my project. I added the latest version of this lib then the iOS build asked me to update FirebaseFirestore to 10.0.0. Then I have no choice but to upgrade all other Firebase dependencies, too. I even use Firebasebase cloud functions in my projects. This is the list of my project's dependencies:

pubspec.yaml file (Click me) name: mae_flutter description: Outage Notification publish_to: 'none' # Remove this line if you wish to publish to pub.dev version: 4.1.0+1 environment: sdk: ">=2.18.2 <3.0.0" dependencies: flutter: sdk: flutter cloud_firestore: ^4.0.1 cloud_functions: ^4.0.1 collection: ^1.16.0 dotted_border: ^2.0.0+2 equatable: ^2.0.5 file_picker: ^5.2.1 firebase_analytics: ^10.0.1 firebase_auth: ^4.0.1 firebase_core: ^2.0.0 firebase_crashlytics: ^3.0.1 firebase_remote_config: ^3.0.1 firebase_storage: ^11.0.1 firebase_messaging: ^14.0.1 flutter_html: 3.0.0-alpha.5 flutter_local_notifications: ^9.9.1 flutter_multi_formatter: ^2.8.0 flutter_secure_storage: ^6.0.0 flutter_staggered_grid_view: ^0.6.2 flutter_svg: ^1.1.5 form_field_validator: ^1.1.0 get_it: ^7.2.0 geolocator: ^9.0.2 google_fonts: ^3.0.1 google_maps_cluster_manager: ^3.0.0+1 google_maps_flutter: ^2.2.1 google_maps_flutter_web: ^0.4.0+3 go_router: ^4.4.1 http: ^0.13.5 image_picker: ^0.8.6 intl: ^0.17.0 json_annotation: ^4.7.0 logger: ^1.1.0 lottie: ^1.4.3 maps_toolkit: ^2.0.1 open_store: ^0.3.1 package_info_plus: ^3.0.0 provider: ^6.0.4 recase: ^4.1.0 sliding_up_panel: ^2.0.0+1 textfield_search: ^0.10.0 url_launcher: ^6.1.6 cached_network_image: ^3.2.2 image_network: ^2.5.1 atco_ui: git: url: https://xxxxxxxxxx@dev.azure.com/my-company/COMPANY_UI/_git/COMPANY_UI dev_dependencies: flutter_test: sdk: flutter build_runner: ^2.3.2 flutter_lints: ^2.0.1 flutter_launcher_icons: ^0.10.0 flutter_native_splash: ^2.2.11 import_sorter: ^4.6.0 json_serializable: ^6.5.2 mockito: ^5.3.2 flutter_icons: android: true ios: true image_path_android: "assets/icon/appicon.png" image_path_ios: "assets/icon/appicon.png" remove_alpha_ios: true adaptive_icon_background: "assets/icon/adaptive_background.png" adaptive_icon_foreground: "assets/icon/adaptive_foreground.png" flutter: uses-material-design: true assets: - assets/icon/ - assets/images/ - assets/images/weather_icons/ - assets/json/ - assets/styles/ - assets/google_fonts/
mikehardy commented 1 year ago

I wonder if the FirebaseSharedSwift part should be purged from the repack here and "replaced" with a podspec level dependency? Or if the compilation of the zip distribution somehow encodes things in such a way that won't work for some reason (possibly related to inability to interop in that way between zip distribution and cocoapods distribution).

For obj-c stuff zip + pods interop between shared sub-modules was possible as we would include leveldb sometimes (when realtime database was not also included) but we would not include leveldb other times (when realtime database was included, since it brings in leveldb itself).

For swift stuff (like this new FirebaseSharedSwift submodule) is zip+pods interop still possible? Do we need to programmatically include it or exclude it depending on what other packages are here (like leveldb) or would that "never include it + depend on it via cocoapods" style be better, or does none of that work either 😆

russellwheatley commented 1 year ago

I wonder if the FirebaseSharedSwift part should be purged from the repack here and "replaced" with a podspec level dependency? Or if the compilation of the zip distribution somehow encodes things in such a way that won't work for some reason (possibly related to inability to interop in that way between zip distribution and cocoapods distribution).

I've tried adding it to the podspec and it didn't work although I didn't remove the FirebaseSharedSwift framework from the FirebaseFirestore directory 🤔.

It does work fine when FirebaseFunctions isn't also a dependency which makes me think it is looking in the wrong place. The logs below are more detailed than the ones logged in the issue description. It shows the undefined symbols are coming entirely from FirebaseFirestoreSwift. Maybe the linker is looking in the Pods/FirebaseSharedSwift. My reading of the error is that it knows the functions are declared but not defined. The linker cannot find them.

Output Log (Click me) Undefined symbols for architecture x86_64: "_$s19FirebaseSharedSwift0A11DataDecoderC0D16DecodingStrategyO6base64yA2EmFWC", referenced from: _$sSo12FIRFirestoreC22FirebaseFirestoreSwiftE7DecoderCAEycfC in FirebaseFirestoreSwift(EncoderDecoder.o) _$sSo12FIRFirestoreC22FirebaseFirestoreSwiftE7DecoderCAEycfc in FirebaseFirestoreSwift(EncoderDecoder.o) _$s22FirebaseFirestoreSwift0B15QueryObservableC13configurationACySayqd__GGAA0bD0V13ConfigurationVyAE_G_tcAERszSeRd__lufcySo16FIRQuerySnapshotCSg_s5Error_pSgtcfU_qd__SgSo0h8DocumentI0CXEfU_qd__yKXEfU_ in FirebaseFirestoreSwift(FirestoreQueryObservable.o) "_$s19FirebaseSharedSwift0A11DataDecoderC19KeyDecodingStrategyO14useDefaultKeysyA2EmFWC", referenced from: _$sSo12FIRFirestoreC22FirebaseFirestoreSwiftE7DecoderCAEycfC in FirebaseFirestoreSwift(EncoderDecoder.o) _$sSo12FIRFirestoreC22FirebaseFirestoreSwiftE7DecoderCAEycfc in FirebaseFirestoreSwift(EncoderDecoder.o) _$s22FirebaseFirestoreSwift0B15QueryObservableC13configurationACySayqd__GGAA0bD0V13ConfigurationVyAE_G_tcAERszSeRd__lufcySo16FIRQuerySnapshotCSg_s5Error_pSgtcfU_qd__SgSo0h8DocumentI0CXEfU_qd__yKXEfU_ in FirebaseFirestoreSwift(FirestoreQueryObservable.o) "_$s19FirebaseSharedSwift0A11DataDecoderC19keyDecodingStrategyAC03KeygH0OvsTj", referenced from: _$sSo12FIRFirestoreC22FirebaseFirestoreSwiftE7DecoderC6decode_4fromxxm_yptKSeRzlF in FirebaseFirestoreSwift(EncoderDecoder.o) "_$s19FirebaseSharedSwift0A11DataDecoderC20DateDecodingStrategyO6customyAE10Foundation0F0Vs0E0_pKccAEmFWC", referenced from: _$sSo12FIRFirestoreC22FirebaseFirestoreSwiftE7DecoderCAEycfC in FirebaseFirestoreSwift(EncoderDecoder.o) _$sSo12FIRFirestoreC22FirebaseFirestoreSwiftE7DecoderCAEycfc in FirebaseFirestoreSwift(EncoderDecoder.o) _$s22FirebaseFirestoreSwift0B15QueryObservableC13configurationACySayqd__GGAA0bD0V13ConfigurationVyAE_G_tcAERszSeRd__lufcySo16FIRQuerySnapshotCSg_s5Error_pSgtcfU_qd__SgSo0h8DocumentI0CXEfU_qd__yKXEfU_ in FirebaseFirestoreSwift(FirestoreQueryObservable.o) _$s19FirebaseSharedSwift0A11DataDecoderC20DateDecodingStrategyO0a9FirestoreC0E9timestampAEvgZ in FirebaseFirestoreSwift(TimestampDecodingStrategy.o) "_$s19FirebaseSharedSwift0A11DataDecoderC20dataDecodingStrategyAC0dgH0OvsTj", referenced from: _$sSo12FIRFirestoreC22FirebaseFirestoreSwiftE7DecoderC6decode_4fromxxm_yptKSeRzlF in FirebaseFirestoreSwift(EncoderDecoder.o) "_$s19FirebaseSharedSwift0A11DataDecoderC20dateDecodingStrategyAC04DategH0OvsTj", referenced from: _$sSo12FIRFirestoreC22FirebaseFirestoreSwiftE7DecoderC6decode_4fromxxm_yptKSeRzlF in FirebaseFirestoreSwift(EncoderDecoder.o) "_$s19FirebaseSharedSwift0A11DataDecoderC23passthroughTypeResolverAA026StructureCodingPassthroughgH0_pXpvsTj", referenced from: _$sSo12FIRFirestoreC22FirebaseFirestoreSwiftE7DecoderC6decode_4fromxxm_yptKSeRzlF in FirebaseFirestoreSwift(EncoderDecoder.o) "_$s19FirebaseSharedSwift0A11DataDecoderC34NonConformingFloatDecodingStrategyO5throwyA2EmFWC", referenced from: _$sSo12FIRFirestoreC22FirebaseFirestoreSwiftE7DecoderCAEycfC in FirebaseFirestoreSwift(EncoderDecoder.o) _$sSo12FIRFirestoreC22FirebaseFirestoreSwiftE7DecoderCAEycfc in FirebaseFirestoreSwift(EncoderDecoder.o) _$s22FirebaseFirestoreSwift0B15QueryObservableC13configurationACySayqd__GGAA0bD0V13ConfigurationVyAE_G_tcAERszSeRd__lufcySo16FIRQuerySnapshotCSg_s5Error_pSgtcfU_qd__SgSo0h8DocumentI0CXEfU_qd__yKXEfU_ in FirebaseFirestoreSwift(FirestoreQueryObservable.o) "_$s19FirebaseSharedSwift0A11DataDecoderC34nonConformingFloatDecodingStrategyAC03NonghiJ0OvsTj", referenced from: _$sSo12FIRFirestoreC22FirebaseFirestoreSwiftE7DecoderC6decode_4fromxxm_yptKSeRzlF in FirebaseFirestoreSwift(EncoderDecoder.o) "_$s19FirebaseSharedSwift0A11DataDecoderC6decode_4fromxxm_yptKSeRzlFTj", referenced from: _$sSo12FIRFirestoreC22FirebaseFirestoreSwiftE7DecoderC6decode_4fromxxm_yptKSeRzlF in FirebaseFirestoreSwift(EncoderDecoder.o) "_$s19FirebaseSharedSwift0A11DataDecoderC8userInfoSDys010CodingUserG3KeyVypGvsTj", referenced from: _$sSo12FIRFirestoreC22FirebaseFirestoreSwiftE7DecoderC6decode_4fromxxm_yptKSeRzlF in FirebaseFirestoreSwift(EncoderDecoder.o) "_$s19FirebaseSharedSwift0A11DataEncoderC0D16EncodingStrategyO6base64yA2EmFWC", referenced from: _$sSo12FIRFirestoreC22FirebaseFirestoreSwiftE7EncoderCAEycfC in FirebaseFirestoreSwift(EncoderDecoder.o) _$sSo12FIRFirestoreC22FirebaseFirestoreSwiftE7EncoderCAEycfc in FirebaseFirestoreSwift(EncoderDecoder.o) "_$s19FirebaseSharedSwift0A11DataEncoderC19KeyEncodingStrategyO14useDefaultKeysyA2EmFWC", referenced from: _$sSo12FIRFirestoreC22FirebaseFirestoreSwiftE7EncoderCAEycfC in FirebaseFirestoreSwift(EncoderDecoder.o) _$sSo12FIRFirestoreC22FirebaseFirestoreSwiftE7EncoderCAEycfc in FirebaseFirestoreSwift(EncoderDecoder.o) "_$s19FirebaseSharedSwift0A11DataEncoderC19keyEncodingStrategyAC03KeygH0OvsTj", referenced from: _$sSo12FIRFirestoreC22FirebaseFirestoreSwiftE7EncoderC6encodeySDySSypGxKSERzlF in FirebaseFirestoreSwift(EncoderDecoder.o) "_$s19FirebaseSharedSwift0A11DataEncoderC20DateEncodingStrategyO6customyAEy10Foundation0F0V_s0E0_ptKccAEmFWC", referenced from: _$sSo12FIRFirestoreC22FirebaseFirestoreSwiftE7EncoderCAEycfC in FirebaseFirestoreSwift(EncoderDecoder.o) _$sSo12FIRFirestoreC22FirebaseFirestoreSwiftE7EncoderCAEycfc in FirebaseFirestoreSwift(EncoderDecoder.o) _$s19FirebaseSharedSwift0A11DataEncoderC20DateEncodingStrategyO0a9FirestoreC0E9timestampAEvgZ in FirebaseFirestoreSwift(TimestampEncodingStrategy.o) "_$s19FirebaseSharedSwift0A11DataEncoderC20dataEncodingStrategyAC0dgH0OvsTj", referenced from: _$sSo12FIRFirestoreC22FirebaseFirestoreSwiftE7EncoderC6encodeySDySSypGxKSERzlF in FirebaseFirestoreSwift(EncoderDecoder.o) "_$s19FirebaseSharedSwift0A11DataEncoderC20dateEncodingStrategyAC04DategH0OvsTj", referenced from: _$sSo12FIRFirestoreC22FirebaseFirestoreSwiftE7EncoderC6encodeySDySSypGxKSERzlF in FirebaseFirestoreSwift(EncoderDecoder.o) "_$s19FirebaseSharedSwift0A11DataEncoderC23passthroughTypeResolverAA026StructureCodingPassthroughgH0_pXpvsTj", referenced from: _$sSo12FIRFirestoreC22FirebaseFirestoreSwiftE7EncoderC6encodeySDySSypGxKSERzlF in FirebaseFirestoreSwift(EncoderDecoder.o) "_$s19FirebaseSharedSwift0A11DataEncoderC34NonConformingFloatEncodingStrategyO5throwyA2EmFWC", referenced from: _$sSo12FIRFirestoreC22FirebaseFirestoreSwiftE7EncoderCAEycfC in FirebaseFirestoreSwift(EncoderDecoder.o) _$sSo12FIRFirestoreC22FirebaseFirestoreSwiftE7EncoderCAEycfc in FirebaseFirestoreSwift(EncoderDecoder.o) "_$s19FirebaseSharedSwift0A11DataEncoderC34nonConformingFloatEncodingStrategyAC03NonghiJ0OvsTj", referenced from: _$sSo12FIRFirestoreC22FirebaseFirestoreSwiftE7EncoderC6encodeySDySSypGxKSERzlF in FirebaseFirestoreSwift(EncoderDecoder.o) "_$s19FirebaseSharedSwift0A11DataEncoderC6encodeyypxKSERzlFTj", referenced from: _$sSo12FIRFirestoreC22FirebaseFirestoreSwiftE7EncoderC6encodeySDySSypGxKSERzlF in FirebaseFirestoreSwift(EncoderDecoder.o) "_$s19FirebaseSharedSwift0A11DataEncoderC8userInfoSDys010CodingUserG3KeyVypGvsTj", referenced from: _$sSo12FIRFirestoreC22FirebaseFirestoreSwiftE7EncoderC6encodeySDySSypGxKSERzlF in FirebaseFirestoreSwift(EncoderDecoder.o) "_$s19FirebaseSharedSwift38StructureCodingPassthroughTypeResolverP02isfG0ySbqd__lFZTq", referenced from: _$s22FirebaseFirestoreSwift0B16PassthroughTypesV0a6SharedC0015StructureCodingD12TypeResolverAAMc in FirebaseFirestoreSwift(CodablePassThroughTypes.o) ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

For obj-c stuff zip + pods interop between shared sub-modules was possible as we would include leveldb sometimes (when realtime database was not also included) but we would not include leveldb other times (when realtime database was included, since it brings in leveldb itself).

The other problem we have is that FirebaseSharedSwift is only a dependency of FirebaseFunctions & FirebaseFirestore for now, but it's probable it'll be used in other Firebase products. So we ought make it future proof if it does become a dependency on other products. (Having said that, I'd take a solution for just FirebaseFunctions for now 😄 ).

I'll continue looking into it with fresh eyes this morning and see if I can get any further.

russellwheatley commented 1 year ago
Screenshot 2022-10-24 at 11 39 45

If I add FirebaseSharedSwift.xcframework to "Linked binary with libraries" it actually builds but immediately crashes with:

Output Log '/Users/russellwheatley/Library/Developer/CoreSimulator/Devices/1F496AD1-5859-4947-8238-DD426BE7E227/data/Containers/Bundle/Application/148E573C-7D31-4332-8CA5-AF8468B7E66A/Runner.app/Frameworks/FirebaseSharedSwift.framework/FirebaseSharedSwift' (file does not start with MH_MAGIC[_64], file does not start with MH_MAGIC[_64], fat file, but missing compatible architecture (have 'x86_64,arm64', need 'x86_64')) ```

but this time, it is coming from FirebaseFunctions:

Output Log Referenced from: <9AFE298F-5283-3437-97F7-7B4DAE4DE6EA> /Users/russellwheatley/Library/Developer/CoreSimulator/Devices/1F496AD1-5859-4947-8238-DD426BE7E227/data/Containers/Bundle/Application/148E573C-7D31-4332-8CA5-AF8468B7E66A/Runner.app/Frameworks/FirebaseFunctions.framework/FirebaseFunctions

This makes me assume that once FirebaseFunctions is included, it is the Pod/FirebaseSharedSwift that takes precedence over the XCFrameworkIntermediates/FirebaseFirestore/Base/FirebaseSharedSwift.xcframework which FirebaseFirestore appears to be incompatible with. But when you explicitly link FirebaseSharedSwift.framework, then the XCFrameworkIntermediates/FirebaseFirestore/Base/FirebaseSharedSwift.xcframework takes precedence which FirebaseFunctions is incompatible with. Maybe.

mikehardy commented 1 year ago

So...are Swift-based shared modules not compatible across zip + Pod distribution styles? :thinking: I wonder if the premise of this module should be altered and instead of pulling the zip and re-packing it, it should have a cocoapod-based app (with dependency on FirebaseSharedSwift...), do a compile Pod-style and pack that, then have a podspec that depends on FirebaseSharedSwift That would be a big restructure and I've never attempted anything that style, so it could be a complete non-starter / fail at even a proof-of-concept stage

Just trying to brainstorm through it :)

russellwheatley commented 1 year ago

So...are Swift-based shared modules not compatible across zip + Pod distribution styles? 🤔 I wonder if the premise of this module should be altered and instead of pulling the zip and re-packing it, it should have a cocoapod-based app (with dependency on FirebaseSharedSwift...), do a compile Pod-style and pack that, then have a podspec that depends on FirebaseSharedSwift That would be a big restructure and I've never attempted anything that style, so it could be a complete non-starter / fail at even a proof-of-concept stage

Just trying to brainstorm through it :)

I'll try this method. I was trying to keep FirebaseSharedSwift private to FirebaseFunctions(not sure if this is even possible), but your way would be future proof and thus preferable 😄

mikehardy commented 1 year ago

This may be the moment - at the "brainstorming a proof of concept" stage - to gently inquire with @paulb777 and see if they are aware of limitations around zip (repacked into Pod) distribution interop with Swift all pod compile/link, or if they have any other brainstorms that could be useful

russellwheatley commented 1 year ago

aware of limitations around zip (repacked into Pod) distribution interop with Swift all pod compile/link

This is the kicker. It's a long road to walk only to find they are not compatible 😓

russellwheatley commented 1 year ago

I think I have a solution for FlutterFire and RNFB at least, and maybe completely, but I'm not sure what else relies on this framework and how they use it. (I did try and precompile the Pod and include as part of this umbrella framework locally but I got a ton of errors that exacerbated the problem).

~My tentative solution is here.~

I have a PR here.

I noticed that the errors were actually coming from FirebaseFirestoreSwift and realised that we didn't need it as we already have the FirebaseFirestore framework shipped. So I removed FirebaseFirestoreSwift from the Base subspec.

Reading more about FirebaseFirestoreSwift in the README.md it says:

The FirebaseFirestoreSwift module does not provide any additional utility to Objective-C projects, and therefore is not recommended for non-Swift projects.

Which is why I think we don't need it. My app now builds successfully with FirebaseFunctions & FirebaseFirestore. Not gonna lie, that was tough. But I have learnt a lot 💪

I think the next step is to detect if the FirebaseFirestore Pod is part of a FF or RNFB project and remove FirebaseFirestoreSwift for them, just to be safe.

QuentinFarizon commented 1 year ago

Hello @russellwheatley and @mikehardy , I'm getting this error on my Ionic/cordova project, using https://github.com/dpa99c/cordova-plugin-firebasex and precompiled FirebaseFirestore pod

The issue on cordova-plugin-firebasex repo : https://github.com/dpa99c/cordova-plugin-firebasex/issues/782

Podfile ``` # DO NOT MODIFY -- auto-generated by Apache Cordova source 'https://cdn.cocoapods.org/' platform :ios, '11.0' use_frameworks! target 'Boks dev' do project 'Boks dev.xcodeproj' pod 'iOSDFULibrary', '4.11.1' pod 'Firebase/Core', '10.2.0' pod 'Firebase/Auth', '10.2.0' pod 'Firebase/Messaging', '10.2.0' pod 'Firebase/Performance', '10.2.0' pod 'Firebase/RemoteConfig', '10.2.0' pod 'FirebaseFirestore', :tag => '10.2.0', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git' pod 'Firebase/Crashlytics', '10.2.0' pod 'Firebase/Functions', '10.2.0' pod 'Firebase/Installations', '10.2.0' pod 'GoogleSignIn', '6.2.4' pod 'ESPProvision', '2.0.16' end ENV['SWIFT_VERSION'] = '5' post_install do |installer| installer.pods_project.targets.each do |target| target.build_configurations.each do |config| config.build_settings['DEBUG_INFORMATION_FORMAT'] = 'dwarf' config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '11.0' if target.respond_to?(:product_type) and target.product_type == "com.apple.product-type.bundle" config.build_settings['CODE_SIGNING_ALLOWED'] = 'NO' end end end end ```
Podfile.lock ``` PODS: - AppAuth (1.6.0): - AppAuth/Core (= 1.6.0) - AppAuth/ExternalUserAgent (= 1.6.0) - AppAuth/Core (1.6.0) - AppAuth/ExternalUserAgent (1.6.0): - AppAuth/Core - Curve25519 (1.1) - ESPProvision (2.0.16): - ESPProvision/Core (= 2.0.16) - ESPProvision/Core (2.0.16): - Curve25519 (~> 1.1.0) - SwiftProtobuf (~> 1.5.0) - Firebase/Auth (10.2.0): - Firebase/CoreOnly - FirebaseAuth (~> 10.2.0) - Firebase/Core (10.2.0): - Firebase/CoreOnly - FirebaseAnalytics (~> 10.2.0) - Firebase/CoreOnly (10.2.0): - FirebaseCore (= 10.2.0) - Firebase/Crashlytics (10.2.0): - Firebase/CoreOnly - FirebaseCrashlytics (~> 10.2.0) - Firebase/Functions (10.2.0): - Firebase/CoreOnly - FirebaseFunctions (~> 10.2.0) - Firebase/Installations (10.2.0): - Firebase/CoreOnly - FirebaseInstallations (~> 10.2.0) - Firebase/Messaging (10.2.0): - Firebase/CoreOnly - FirebaseMessaging (~> 10.2.0) - Firebase/Performance (10.2.0): - Firebase/CoreOnly - FirebasePerformance (~> 10.2.0) - Firebase/RemoteConfig (10.2.0): - Firebase/CoreOnly - FirebaseRemoteConfig (~> 10.2.0) - FirebaseABTesting (10.2.0): - FirebaseCore (~> 10.0) - FirebaseAnalytics (10.2.0): - FirebaseAnalytics/AdIdSupport (= 10.2.0) - FirebaseCore (~> 10.0) - FirebaseInstallations (~> 10.0) - GoogleUtilities/AppDelegateSwizzler (~> 7.8) - GoogleUtilities/MethodSwizzler (~> 7.8) - GoogleUtilities/Network (~> 7.8) - "GoogleUtilities/NSData+zlib (~> 7.8)" - nanopb (< 2.30910.0, >= 2.30908.0) - FirebaseAnalytics/AdIdSupport (10.2.0): - FirebaseCore (~> 10.0) - FirebaseInstallations (~> 10.0) - GoogleAppMeasurement (= 10.2.0) - GoogleUtilities/AppDelegateSwizzler (~> 7.8) - GoogleUtilities/MethodSwizzler (~> 7.8) - GoogleUtilities/Network (~> 7.8) - "GoogleUtilities/NSData+zlib (~> 7.8)" - nanopb (< 2.30910.0, >= 2.30908.0) - FirebaseAppCheckInterop (10.2.0) - FirebaseAuth (10.2.0): - FirebaseCore (~> 10.0) - GoogleUtilities/AppDelegateSwizzler (~> 7.8) - GoogleUtilities/Environment (~> 7.8) - GTMSessionFetcher/Core (< 4.0, >= 2.1) - FirebaseAuthInterop (10.2.0) - FirebaseCore (10.2.0): - FirebaseCoreInternal (~> 10.0) - GoogleUtilities/Environment (~> 7.8) - GoogleUtilities/Logger (~> 7.8) - FirebaseCoreExtension (10.2.0): - FirebaseCore (~> 10.0) - FirebaseCoreInternal (10.2.0): - "GoogleUtilities/NSData+zlib (~> 7.8)" - FirebaseCrashlytics (10.2.0): - FirebaseCore (~> 10.0) - FirebaseInstallations (~> 10.0) - GoogleDataTransport (~> 9.2) - GoogleUtilities/Environment (~> 7.8) - nanopb (< 2.30910.0, >= 2.30908.0) - PromisesObjC (~> 2.1) - FirebaseFirestore (10.2.0): - FirebaseFirestore/AutodetectLeveldb (= 10.2.0) - FirebaseFirestore/AutodetectLeveldb (10.2.0): - FirebaseFirestore/Base - FirebaseFirestore/WithLeveldb - FirebaseFirestore/Base (10.2.0) - FirebaseFirestore/WithLeveldb (10.2.0): - FirebaseFirestore/Base - FirebaseFunctions (10.2.0): - FirebaseAppCheckInterop (~> 10.0) - FirebaseAuthInterop (~> 10.0) - FirebaseCore (~> 10.0) - FirebaseCoreExtension (~> 10.0) - FirebaseMessagingInterop (~> 10.0) - FirebaseSharedSwift (~> 10.0) - GTMSessionFetcher/Core (< 4.0, >= 2.1) - FirebaseInstallations (10.2.0): - FirebaseCore (~> 10.0) - GoogleUtilities/Environment (~> 7.8) - GoogleUtilities/UserDefaults (~> 7.8) - PromisesObjC (~> 2.1) - FirebaseMessaging (10.2.0): - FirebaseCore (~> 10.0) - FirebaseInstallations (~> 10.0) - GoogleDataTransport (~> 9.2) - GoogleUtilities/AppDelegateSwizzler (~> 7.8) - GoogleUtilities/Environment (~> 7.8) - GoogleUtilities/Reachability (~> 7.8) - GoogleUtilities/UserDefaults (~> 7.8) - nanopb (< 2.30910.0, >= 2.30908.0) - FirebaseMessagingInterop (10.2.0) - FirebasePerformance (10.2.0): - FirebaseCore (~> 10.0) - FirebaseInstallations (~> 10.0) - FirebaseRemoteConfig (~> 10.0) - GoogleDataTransport (~> 9.2) - GoogleUtilities/Environment (~> 7.8) - GoogleUtilities/ISASwizzler (~> 7.8) - GoogleUtilities/MethodSwizzler (~> 7.8) - nanopb (< 2.30910.0, >= 2.30908.0) - FirebaseRemoteConfig (10.2.0): - FirebaseABTesting (~> 10.0) - FirebaseCore (~> 10.0) - FirebaseInstallations (~> 10.0) - GoogleUtilities/Environment (~> 7.8) - "GoogleUtilities/NSData+zlib (~> 7.8)" - FirebaseSharedSwift (10.2.0) - GoogleAppMeasurement (10.2.0): - GoogleAppMeasurement/AdIdSupport (= 10.2.0) - GoogleUtilities/AppDelegateSwizzler (~> 7.8) - GoogleUtilities/MethodSwizzler (~> 7.8) - GoogleUtilities/Network (~> 7.8) - "GoogleUtilities/NSData+zlib (~> 7.8)" - nanopb (< 2.30910.0, >= 2.30908.0) - GoogleAppMeasurement/AdIdSupport (10.2.0): - GoogleAppMeasurement/WithoutAdIdSupport (= 10.2.0) - GoogleUtilities/AppDelegateSwizzler (~> 7.8) - GoogleUtilities/MethodSwizzler (~> 7.8) - GoogleUtilities/Network (~> 7.8) - "GoogleUtilities/NSData+zlib (~> 7.8)" - nanopb (< 2.30910.0, >= 2.30908.0) - GoogleAppMeasurement/WithoutAdIdSupport (10.2.0): - GoogleUtilities/AppDelegateSwizzler (~> 7.8) - GoogleUtilities/MethodSwizzler (~> 7.8) - GoogleUtilities/Network (~> 7.8) - "GoogleUtilities/NSData+zlib (~> 7.8)" - nanopb (< 2.30910.0, >= 2.30908.0) - GoogleDataTransport (9.2.0): - GoogleUtilities/Environment (~> 7.7) - nanopb (< 2.30910.0, >= 2.30908.0) - PromisesObjC (< 3.0, >= 1.2) - GoogleSignIn (6.2.4): - AppAuth (~> 1.5) - GTMAppAuth (~> 1.3) - GTMSessionFetcher/Core (< 3.0, >= 1.1) - GoogleUtilities/AppDelegateSwizzler (7.10.0): - GoogleUtilities/Environment - GoogleUtilities/Logger - GoogleUtilities/Network - GoogleUtilities/Environment (7.10.0): - PromisesObjC (< 3.0, >= 1.2) - GoogleUtilities/ISASwizzler (7.10.0) - GoogleUtilities/Logger (7.10.0): - GoogleUtilities/Environment - GoogleUtilities/MethodSwizzler (7.10.0): - GoogleUtilities/Logger - GoogleUtilities/Network (7.10.0): - GoogleUtilities/Logger - "GoogleUtilities/NSData+zlib" - GoogleUtilities/Reachability - "GoogleUtilities/NSData+zlib (7.10.0)" - GoogleUtilities/Reachability (7.10.0): - GoogleUtilities/Logger - GoogleUtilities/UserDefaults (7.10.0): - GoogleUtilities/Logger - GTMAppAuth (1.3.1): - AppAuth/Core (~> 1.6) - GTMSessionFetcher/Core (< 3.0, >= 1.5) - GTMSessionFetcher/Core (2.3.0) - iOSDFULibrary (4.11.1): - ZIPFoundation (= 0.9.11) - nanopb (2.30909.0): - nanopb/decode (= 2.30909.0) - nanopb/encode (= 2.30909.0) - nanopb/decode (2.30909.0) - nanopb/encode (2.30909.0) - PromisesObjC (2.1.1) - SwiftProtobuf (1.5.0) - ZIPFoundation (0.9.11) DEPENDENCIES: - ESPProvision (= 2.0.16) - Firebase/Auth (= 10.2.0) - Firebase/Core (= 10.2.0) - Firebase/Crashlytics (= 10.2.0) - Firebase/Functions (= 10.2.0) - Firebase/Installations (= 10.2.0) - Firebase/Messaging (= 10.2.0) - Firebase/Performance (= 10.2.0) - Firebase/RemoteConfig (= 10.2.0) - FirebaseFirestore (from `https://github.com/invertase/firestore-ios-sdk-frameworks.git`, tag `10.2.0`) - GoogleSignIn (= 6.2.4) - iOSDFULibrary (= 4.11.1) SPEC REPOS: trunk: - AppAuth - Curve25519 - ESPProvision - Firebase - FirebaseABTesting - FirebaseAnalytics - FirebaseAppCheckInterop - FirebaseAuth - FirebaseAuthInterop - FirebaseCore - FirebaseCoreExtension - FirebaseCoreInternal - FirebaseCrashlytics - FirebaseFunctions - FirebaseInstallations - FirebaseMessaging - FirebaseMessagingInterop - FirebasePerformance - FirebaseRemoteConfig - FirebaseSharedSwift - GoogleAppMeasurement - GoogleDataTransport - GoogleSignIn - GoogleUtilities - GTMAppAuth - GTMSessionFetcher - iOSDFULibrary - nanopb - PromisesObjC - SwiftProtobuf - ZIPFoundation EXTERNAL SOURCES: FirebaseFirestore: :git: https://github.com/invertase/firestore-ios-sdk-frameworks.git :tag: 10.2.0 CHECKOUT OPTIONS: FirebaseFirestore: :git: https://github.com/invertase/firestore-ios-sdk-frameworks.git :tag: 10.2.0 SPEC CHECKSUMS: AppAuth: 8fca6b5563a5baef2c04bee27538025e4ceb2add Curve25519: 5f595e906bd962248665978e2992a1fe96e2d831 ESPProvision: 2e9b4b72d8bb880051882836b17f28f6537a7b77 Firebase: a3ea7eba4382afd83808376edb99acdaff078dcf FirebaseABTesting: 22840e1573ea2fbb519f5a2f1c93be7232508358 FirebaseAnalytics: 24a15e58e505abcedc3017b6f7c206fbfa964580 FirebaseAppCheckInterop: af164d9c623f82174e3ffa54394dee189587c601 FirebaseAuth: 08e7739244eeae5216d0a3f8d9f16a76be9c252e FirebaseAuthInterop: 027d42ca8fec84dc6151566479af05095a0bd5c0 FirebaseCore: 813838072b797b64f529f3c2ee35e696e5641dd1 FirebaseCoreExtension: d08b424832917cf13612021574399afbbedffeef FirebaseCoreInternal: 091bde13e47bb1c5e9fe397634f3593dc390430f FirebaseCrashlytics: df7406152189d48346deafb716806d7bd9ebb573 FirebaseFirestore: 726c680ad7eba65001884d1e7fcb45964c8c883d FirebaseFunctions: eaa208f64f2f179f0ab9b775fecdec07fdd74d90 FirebaseInstallations: 004915af170935e3a583faefd5f8bc851afc220f FirebaseMessaging: cc9f40f5b7494680f3844d08e517e92aa4e8d9f7 FirebaseMessagingInterop: b46e7fcf39c0e9b16841e258645a320a154af240 FirebasePerformance: 4bf9f8cba078b4a699b40062100fd717e034568d FirebaseRemoteConfig: 5bdeadd64a042dad0f6a38fee7e017818240c3d2 FirebaseSharedSwift: a160b39d4ce77be922b3d6ff009099c7294e36e5 GoogleAppMeasurement: 3bc3a6484b7bb20dd8489242c4dd3c92a3e5107b GoogleDataTransport: 1c8145da7117bd68bbbed00cf304edb6a24de00f GoogleSignIn: 5651ce3a61e56ca864160e79b484cd9ed3f49b7a GoogleUtilities: bad72cb363809015b1f7f19beb1f1cd23c589f95 GTMAppAuth: 0ff230db599948a9ad7470ca667337803b3fc4dd GTMSessionFetcher: 3a63d75eecd6aa32c2fc79f578064e1214dfdec2 iOSDFULibrary: 3500ac00451aa7d8ec48a752e91099669a2c1d27 nanopb: b552cce312b6c8484180ef47159bc0f65a1f0431 PromisesObjC: ab77feca74fa2823e7af4249b8326368e61014cb SwiftProtobuf: 241400280f912735c1e1b9fe675fdd2c6c4d42e2 ZIPFoundation: b1f0de4eed33e74a676f76e12559ab6b75990197 PODFILE CHECKSUM: 25a50b49a94b07bd52918c45e838d97340bc20d1 COCOAPODS: 1.11.3 ```

The error is :

Undefined symbols for architecture arm64:
  "_$s19FirebaseSharedSwift0A11DataDecoderC0D16DecodingStrategyO6base64yA2EmFWC", referenced from:
      _$sSo12FIRFirestoreC22FirebaseFirestoreSwiftE7DecoderCAEycfC in FirebaseFirestoreSwift(EncoderDecoder.o)
      _$sSo12FIRFirestoreC22FirebaseFirestoreSwiftE7DecoderCAEycfc in FirebaseFirestoreSwift(EncoderDecoder.o)
Full error log ``` CompileC /Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/IntermediateBuildFilesPath/Boks\ preprod.build/Release-iphoneos/Boks\ preprod.build/Objects-normal/arm64/APPBadge.o /Users/vagrant/git/platforms/ios/Boks\ preprod/Plugins/cordova-plugin-badge/APPBadge.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'Boks preprod' from project 'Boks preprod') cd /Users/vagrant/git/platforms/ios /Applications/Xcode-14.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -target arm64-apple-ios11.0 -fmessage-length\=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit\=0 -std\=c99 -fobjc-arc -fmodules -gmodules -fmodules-cache-path\=/Users/vagrant/Library/Developer/Xcode/DerivedData/ModuleCache.noindex -fmodules-prune-interval\=86400 -fmodules-prune-after\=345600 -fbuild-session-file\=/Users/vagrant/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Session.modulevalidation -fmodules-validate-once-per-build-session -Wno-trigraphs -fpascal-strings -Os -fno-common -Wno-missing-field-initializers -Wno-missing-prototypes -Wunreachable-code -Wno-implicit-atomic-properties -Wno-objc-interface-ivars -Wno-arc-repeated-use-of-weak -Wimplicit-retain-self -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wno-float-conversion -Wnon-literal-null-conversion -Wobjc-literal-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wdeprecated-implementations -Wno-implicit-fallthrough -DWK_WEB_VIEW_ONLY\=1 -DWK_WEB_VIEW_ONLY\=1 -DCOCOAPODS\=1 -DWK_WEB_VIEW_ONLY\=1 -DWK_WEB_VIEW_ONLY\=1 -DPB_FIELD_32BIT\=1 -DPB_NO_PACKED_STRUCTS\=1 -DPB_ENABLE_MALLOC\=1 -DOBJC_OLD_DISPATCH_PROTOTYPES\=0 -isysroot /Applications/Xcode-14.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -g -fvisibility\=hidden -Wno-sign-conversion -Winfinite-recursion -Wcomma -Wblock-capture-autoreleasing -Wstrict-prototypes -Wno-semicolon-before-method-body -iquote /Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/IntermediateBuildFilesPath/Boks\ preprod.build/Release-iphoneos/Boks\ preprod.build/Boks\ preprod-generated-files.hmap -I/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/IntermediateBuildFilesPath/Boks\ preprod.build/Release-iphoneos/Boks\ preprod.build/Boks\ preprod-own-target-headers.hmap -I/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/IntermediateBuildFilesPath/Boks\ preprod.build/Release-iphoneos/Boks\ preprod.build/Boks\ preprod-all-non-framework-target-headers.hmap -ivfsoverlay /Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/IntermediateBuildFilesPath/Boks\ preprod.build/Release-iphoneos/Boks\ preprod.build/all-product-headers.yaml -iquote /Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/IntermediateBuildFilesPath/Boks\ preprod.build/Release-iphoneos/Boks\ preprod.build/Boks\ preprod-project-headers.hmap -I/Users/vagrant/git/platforms/ios/build/device/include -I/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/InstallationBuildProductsLocation/Applications/usr/local/lib/include -I/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/IntermediateBuildFilesPath/UninstalledProducts/include -I/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/include -I/Users/vagrant/git/platforms/ios/build/device -I/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/BuildProductsPath/Release-iphoneos/AppAuth/AppAuth.framework/Headers -I/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/BuildProductsPath/Release-iphoneos/Curve25519/Curve25519.framework/Headers -I/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/BuildProductsPath/Release-iphoneos/ESPProvision/ESPProvision.framework/Headers -I/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/BuildProductsPath/Release-iphoneos/FirebaseABTesting/FirebaseABTesting.framework/Headers -I/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/BuildProductsPath/Release-iphoneos/FirebaseAppCheckInterop/FirebaseAppCheckInterop.framework/Headers -I/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/BuildProductsPath/Release-iphoneos/FirebaseAuth/FirebaseAuth.framework/Headers -I/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/BuildProductsPath/Release-iphoneos/FirebaseAuthInterop/FirebaseAuthInterop.framework/Headers -I/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/BuildProductsPath/Release-iphoneos/FirebaseCore/FirebaseCore.framework/Headers -I/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/BuildProductsPath/Release-iphoneos/FirebaseCoreExtension/FirebaseCoreExtension.framework/Headers -I/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/BuildProductsPath/Release-iphoneos/FirebaseCoreInternal/FirebaseCoreInternal.framework/Headers -I/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/BuildProductsPath/Release-iphoneos/FirebaseCrashlytics/FirebaseCrashlytics.framework/Headers -I/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/BuildProductsPath/Release-iphoneos/FirebaseFunctions/FirebaseFunctions.framework/Headers -I/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/BuildProductsPath/Release-iphoneos/FirebaseInstallations/FirebaseInstallations.framework/Headers -I/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/BuildProductsPath/Release-iphoneos/FirebaseMessaging/FirebaseMessaging.framework/Headers -I/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/BuildProductsPath/Release-iphoneos/FirebaseMessagingInterop/FirebaseMessagingInterop.framework/Headers -I/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/BuildProductsPath/Release-iphoneos/FirebasePerformance/FirebasePerformance.framework/Headers -I/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/BuildProductsPath/Release-iphoneos/FirebaseRemoteConfig/FirebaseRemoteConfig.framework/Headers -I/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/BuildProductsPath/Release-iphoneos/FirebaseSharedSwift/FirebaseSharedSwift.framework/Headers -I/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/BuildProductsPath/Release-iphoneos/GTMAppAuth/GTMAppAuth.framework/Headers -I/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/BuildProductsPath/Release-iphoneos/GTMSessionFetcher/GTMSessionFetcher.framework/Headers -I/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/BuildProductsPath/Release-iphoneos/GoogleDataTransport/GoogleDataTransport.framework/Headers -I/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/BuildProductsPath/Release-iphoneos/GoogleSignIn/GoogleSignIn.framework/Headers -I/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/BuildProductsPath/Release-iphoneos/GoogleUtilities/GoogleUtilities.framework/Headers -I/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/BuildProductsPath/Release-iphoneos/PromisesObjC/FBLPromises.framework/Headers -I/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/BuildProductsPath/Release-iphoneos/SwiftProtobuf/SwiftProtobuf.framework/Headers -I/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/BuildProductsPath/Release-iphoneos/ZIPFoundation/ZIPFoundation.framework/Headers -I/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/BuildProductsPath/Release-iphoneos/iOSDFULibrary/iOSDFULibrary.framework/Headers -I/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/BuildProductsPath/Release-iphoneos/nanopb/nanopb.framework/Headers -I/Users/vagrant/git/platforms/ios/Pods/Headers/Public -I/Users/vagrant/git/platforms/ios/Pods/Headers/Public/Firebase -I/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/InstallationBuildProductsLocation/Applications/usr/local/lib/include -I/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/IntermediateBuildFilesPath/UninstalledProducts/include -I/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/include -I/Users/vagrant/git/platforms/ios/build/device -I/Users/vagrant/git/platforms/ios/Pods/Firebase/CoreOnly/Sources -I/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/IntermediateBuildFilesPath/Boks\ preprod.build/Release-iphoneos/Boks\ preprod.build/DerivedSources-normal/arm64 -I/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/IntermediateBuildFilesPath/Boks\ preprod.build/Release-iphoneos/Boks\ preprod.build/DerivedSources/arm64 -I/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/IntermediateBuildFilesPath/Boks\ preprod.build/Release-iphoneos/Boks\ preprod.build/DerivedSources -F/Users/vagrant/git/platforms/ios/build/device -F/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/BuildProductsPath/Release-iphoneos/AppAuth -F/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/BuildProductsPath/Release-iphoneos/Curve25519 -F/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/BuildProductsPath/Release-iphoneos/ESPProvision -F/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/BuildProductsPath/Release-iphoneos/FirebaseABTesting -F/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/BuildProductsPath/Release-iphoneos/FirebaseAppCheckInterop -F/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/BuildProductsPath/Release-iphoneos/FirebaseAuth -F/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/BuildProductsPath/Release-iphoneos/FirebaseAuthInterop -F/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/BuildProductsPath/Release-iphoneos/FirebaseCore -F/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/BuildProductsPath/Release-iphoneos/FirebaseCoreExtension -F/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/BuildProductsPath/Release-iphoneos/FirebaseCoreInternal -F/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/BuildProductsPath/Release-iphoneos/FirebaseCrashlytics -F/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/BuildProductsPath/Release-iphoneos/FirebaseFunctions -F/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/BuildProductsPath/Release-iphoneos/FirebaseInstallations -F/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/BuildProductsPath/Release-iphoneos/FirebaseMessaging -F/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/BuildProductsPath/Release-iphoneos/FirebaseMessagingInterop -F/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/BuildProductsPath/Release-iphoneos/FirebasePerformance -F/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/BuildProductsPath/Release-iphoneos/FirebaseRemoteConfig -F/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/BuildProductsPath/Release-iphoneos/FirebaseSharedSwift -F/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/BuildProductsPath/Release-iphoneos/GTMAppAuth -F/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/BuildProductsPath/Release-iphoneos/GTMSessionFetcher -F/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/BuildProductsPath/Release-iphoneos/GoogleDataTransport -F/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/BuildProductsPath/Release-iphoneos/GoogleSignIn -F/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/BuildProductsPath/Release-iphoneos/GoogleUtilities -F/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/BuildProductsPath/Release-iphoneos/PromisesObjC -F/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/BuildProductsPath/Release-iphoneos/SwiftProtobuf -F/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/BuildProductsPath/Release-iphoneos/ZIPFoundation -F/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/BuildProductsPath/Release-iphoneos/iOSDFULibrary -F/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/BuildProductsPath/Release-iphoneos/nanopb -F/Users/vagrant/git/platforms/ios/Pods/FirebaseAnalytics/Frameworks -F/Users/vagrant/git/platforms/ios/Pods/FirebaseFirestore/FirebaseFirestore -F/Users/vagrant/git/platforms/ios/Pods/GoogleAppMeasurement/Frameworks -F/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/BuildProductsPath/Release-iphoneos/XCFrameworkIntermediates/FirebaseAnalytics/AdIdSupport -F/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/BuildProductsPath/Release-iphoneos/XCFrameworkIntermediates/FirebaseFirestore/Base -F/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/BuildProductsPath/Release-iphoneos/XCFrameworkIntermediates/FirebaseFirestore/WithLeveldb -F/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/BuildProductsPath/Release-iphoneos/XCFrameworkIntermediates/GoogleAppMeasurement/AdIdSupport -F/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/BuildProductsPath/Release-iphoneos/XCFrameworkIntermediates/GoogleAppMeasurement/WithoutAdIdSupport -FBoks\ preprod/Plugins/cordova-plugin-background-fetch -include /Users/vagrant/git/platforms/ios/build/sharedpch/SharedPrecompiledHeaders/3579095316959286347/Boks\ preprod-Prefix.pch -MMD -MT dependencies -MF /Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/IntermediateBuildFilesPath/Boks\ preprod.build/Release-iphoneos/Boks\ preprod.build/Objects-normal/arm64/APPBadge.d --serialize-diagnostics /Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/IntermediateBuildFilesPath/Boks\ preprod.build/Release-iphoneos/Boks\ preprod.build/Objects-normal/arm64/APPBadge.dia -c /Users/vagrant/git/platforms/ios/Boks\ preprod/Plugins/cordova-plugin-badge/APPBadge.m -o /Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/IntermediateBuildFilesPath/Boks\ preprod.build/Release-iphoneos/Boks\ preprod.build/Objects-normal/arm64/APPBadge.o Ld /Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/InstallationBuildProductsLocation/Applications/Boks\ preprod.app/Boks\ preprod normal (in target 'Boks preprod' from project 'Boks preprod') cd /Users/vagrant/git/platforms/ios /Applications/Xcode-14.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -target arm64-apple-ios11.0 -isysroot /Applications/Xcode-14.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk -L/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/IntermediateBuildFilesPath/EagerLinkingTBDs -L/Users/vagrant/git/platforms/ios/build/device -L/Applications/Xcode-14.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos -L/Applications/Xcode-14.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.1.sdk/usr/lib/swift -F/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/IntermediateBuildFilesPath/EagerLinkingTBDs -F/Users/vagrant/git/platforms/ios/build/device -F/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/BuildProductsPath/Release-iphoneos/AppAuth -F/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/BuildProductsPath/Release-iphoneos/Curve25519 -F/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/BuildProductsPath/Release-iphoneos/ESPProvision -F/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/BuildProductsPath/Release-iphoneos/FirebaseABTesting -F/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/BuildProductsPath/Release-iphoneos/FirebaseAppCheckInterop -F/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/BuildProductsPath/Release-iphoneos/FirebaseAuth -F/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/BuildProductsPath/Release-iphoneos/FirebaseAuthInterop -F/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/BuildProductsPath/Release-iphoneos/FirebaseCore -F/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/BuildProductsPath/Release-iphoneos/FirebaseCoreExtension -F/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/BuildProductsPath/Release-iphoneos/FirebaseCoreInternal -F/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/BuildProductsPath/Release-iphoneos/FirebaseCrashlytics -F/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/BuildProductsPath/Release-iphoneos/FirebaseFunctions -F/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/BuildProductsPath/Release-iphoneos/FirebaseInstallations -F/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/BuildProductsPath/Release-iphoneos/FirebaseMessaging -F/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/BuildProductsPath/Release-iphoneos/FirebaseMessagingInterop -F/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/BuildProductsPath/Release-iphoneos/FirebasePerformance -F/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/BuildProductsPath/Release-iphoneos/FirebaseRemoteConfig -F/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/BuildProductsPath/Release-iphoneos/FirebaseSharedSwift -F/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/BuildProductsPath/Release-iphoneos/GTMAppAuth -F/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/BuildProductsPath/Release-iphoneos/GTMSessionFetcher -F/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/BuildProductsPath/Release-iphoneos/GoogleDataTransport -F/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/BuildProductsPath/Release-iphoneos/GoogleSignIn -F/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/BuildProductsPath/Release-iphoneos/GoogleUtilities -F/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/BuildProductsPath/Release-iphoneos/PromisesObjC -F/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/BuildProductsPath/Release-iphoneos/SwiftProtobuf -F/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/BuildProductsPath/Release-iphoneos/ZIPFoundation -F/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/BuildProductsPath/Release-iphoneos/iOSDFULibrary -F/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/BuildProductsPath/Release-iphoneos/nanopb -F/Users/vagrant/git/platforms/ios/Pods/FirebaseAnalytics/Frameworks -F/Users/vagrant/git/platforms/ios/Pods/FirebaseFirestore/FirebaseFirestore -F/Users/vagrant/git/platforms/ios/Pods/GoogleAppMeasurement/Frameworks -F/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/BuildProductsPath/Release-iphoneos/XCFrameworkIntermediates/FirebaseAnalytics/AdIdSupport -F/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/BuildProductsPath/Release-iphoneos/XCFrameworkIntermediates/FirebaseFirestore/Base -F/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/BuildProductsPath/Release-iphoneos/XCFrameworkIntermediates/FirebaseFirestore/WithLeveldb -F/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/BuildProductsPath/Release-iphoneos/XCFrameworkIntermediates/GoogleAppMeasurement/AdIdSupport -F/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/BuildProductsPath/Release-iphoneos/XCFrameworkIntermediates/GoogleAppMeasurement/WithoutAdIdSupport -FBoks\ preprod/Plugins/cordova-plugin-background-fetch -filelist /Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/IntermediateBuildFilesPath/Boks\ preprod.build/Release-iphoneos/Boks\ preprod.build/Objects-normal/arm64/Boks\ preprod.LinkFileList -Xlinker -rpath -Xlinker /usr/lib/swift -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker /usr/lib/swift -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -dead_strip -Xlinker -object_path_lto -Xlinker /Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/IntermediateBuildFilesPath/Boks\ preprod.build/Release-iphoneos/Boks\ preprod.build/Objects-normal/arm64/Boks\ preprod_lto.o -Xlinker -final_output -Xlinker /Applications/Boks\ preprod.app/Boks\ preprod -fobjc-arc -fobjc-link-runtime -L/Applications/Xcode-14.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos -L/usr/lib/swift -Xlinker -add_ast_path -Xlinker /Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/IntermediateBuildFilesPath/Boks\ preprod.build/Release-iphoneos/Boks\ preprod.build/Objects-normal/arm64/Boks_preprod.swiftmodule -ObjC -ObjC -lc++ -lsqlite3 -lz -framework AppAuth -framework BoringSSL-GRPC -framework CoreGraphics -framework CoreTelephony -framework CoreText -framework Curve25519 -framework ESPProvision -framework FBLPromises -framework FirebaseABTesting -framework FirebaseAnalytics -framework FirebaseAppCheckInterop -framework FirebaseAuth -framework FirebaseAuthInterop -framework FirebaseCore -framework FirebaseCoreExtension -framework FirebaseCoreInternal -framework FirebaseCrashlytics -framework FirebaseFirestore -framework FirebaseFirestoreSwift -framework FirebaseFunctions -framework FirebaseInstallations -framework FirebaseMessaging -framework FirebaseMessagingInterop -framework FirebasePerformance -framework FirebaseRemoteConfig -framework FirebaseSharedSwift -framework Foundation -framework GTMAppAuth -framework GTMSessionFetcher -framework GoogleAppMeasurement -framework GoogleAppMeasurementIdentitySupport -framework GoogleDataTransport -framework GoogleSignIn -framework GoogleUtilities -framework Libuv-gRPC -framework LocalAuthentication -framework SafariServices -framework Security -framework StoreKit -framework SwiftProtobuf -framework SystemConfiguration -framework UIKit -framework ZIPFoundation -framework abseil -framework gRPC-C++ -framework gRPC-Core -framework iOSDFULibrary -framework leveldb-library -framework nanopb -weak_framework AuthenticationServices -weak_framework UserNotifications /Users/vagrant/git/platforms/ios/build/device/libCordova.a -weak_framework SafariServices -framework QuartzCore -framework CoreBluetooth -framework Pods_Boks_preprod -weak_framework AudioToolbox -weak_framework WebKit -framework CoreLocation -framework AuthenticationServices -framework TSBackgroundFetch -weak_framework ImageIO -framework AVFoundation -Xlinker -no_adhoc_codesign -Xlinker -dependency_info -Xlinker /Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/IntermediateBuildFilesPath/Boks\ preprod.build/Release-iphoneos/Boks\ preprod.build/Objects-normal/arm64/Boks\ preprod_dependency_info.dat -o /Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/InstallationBuildProductsLocation/Applications/Boks\ preprod.app/Boks\ preprod ld: warning: directory not found for option '-F/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks preprod/BuildProductsPath/Release-iphoneos/AppAuth' ld: warning: directory not found for option '-F/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks preprod/BuildProductsPath/Release-iphoneos/Curve25519' ld: warning: directory not found for option '-F/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks preprod/BuildProductsPath/Release-iphoneos/ESPProvision' ld: warning: directory not found for option '-F/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks preprod/BuildProductsPath/Release-iphoneos/FirebaseABTesting' ld: warning: directory not found for option '-F/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks preprod/BuildProductsPath/Release-iphoneos/FirebaseAppCheckInterop' ld: warning: directory not found for option '-F/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks preprod/BuildProductsPath/Release-iphoneos/FirebaseAuth' ld: warning: directory not found for option '-F/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks preprod/BuildProductsPath/Release-iphoneos/FirebaseAuthInterop' ld: warning: directory not found for option '-F/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks preprod/BuildProductsPath/Release-iphoneos/FirebaseCore' ld: warning: directory not found for option '-F/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks preprod/BuildProductsPath/Release-iphoneos/FirebaseCoreExtension' ld: warning: directory not found for option '-F/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks preprod/BuildProductsPath/Release-iphoneos/FirebaseCoreInternal' ld: warning: directory not found for option '-F/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks preprod/BuildProductsPath/Release-iphoneos/FirebaseCrashlytics' ld: warning: directory not found for option '-F/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks preprod/BuildProductsPath/Release-iphoneos/FirebaseFunctions' ld: warning: directory not found for option '-F/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks preprod/BuildProductsPath/Release-iphoneos/FirebaseInstallations' ld: warning: directory not found for option '-F/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks preprod/BuildProductsPath/Release-iphoneos/FirebaseMessaging' ld: warning: directory not found for option '-F/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks preprod/BuildProductsPath/Release-iphoneos/FirebaseMessagingInterop' ld: warning: directory not found for option '-F/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks preprod/BuildProductsPath/Release-iphoneos/FirebasePerformance' ld: warning: directory not found for option '-F/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks preprod/BuildProductsPath/Release-iphoneos/FirebaseRemoteConfig' ld: warning: directory not found for option '-F/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks preprod/BuildProductsPath/Release-iphoneos/FirebaseSharedSwift' ld: warning: directory not found for option '-F/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks preprod/BuildProductsPath/Release-iphoneos/GTMAppAuth' ld: warning: directory not found for option '-F/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks preprod/BuildProductsPath/Release-iphoneos/GTMSessionFetcher' ld: warning: directory not found for option '-F/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks preprod/BuildProductsPath/Release-iphoneos/GoogleDataTransport' ld: warning: directory not found for option '-F/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks preprod/BuildProductsPath/Release-iphoneos/GoogleSignIn' ld: warning: directory not found for option '-F/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks preprod/BuildProductsPath/Release-iphoneos/GoogleUtilities' ld: warning: directory not found for option '-F/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks preprod/BuildProductsPath/Release-iphoneos/PromisesObjC' ld: warning: directory not found for option '-F/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks preprod/BuildProductsPath/Release-iphoneos/SwiftProtobuf' ld: warning: directory not found for option '-F/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks preprod/BuildProductsPath/Release-iphoneos/ZIPFoundation' ld: warning: directory not found for option '-F/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks preprod/BuildProductsPath/Release-iphoneos/iOSDFULibrary' ld: warning: directory not found for option '-F/Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks preprod/BuildProductsPath/Release-iphoneos/nanopb' Undefined symbols for architecture arm64: "_$s19FirebaseSharedSwift0A11DataDecoderC0D16DecodingStrategyO6base64yA2EmFWC", referenced from: _$sSo12FIRFirestoreC22FirebaseFirestoreSwiftE7DecoderCAEycfC in FirebaseFirestoreSwift(EncoderDecoder.o) _$sSo12FIRFirestoreC22FirebaseFirestoreSwiftE7DecoderCAEycfc in FirebaseFirestoreSwift(EncoderDecoder.o) _$s22FirebaseFirestoreSwift0B15QueryObservableC13configurationACySayqd__GGAA0bD0V13ConfigurationVyAE_G_tcAERszSeRd__lufcySo16FIRQuerySnapshotCSg_s5Error_pSgtcfU_qd__SgSo0h8DocumentI0CXEfU_qd__yKXEfU_ in FirebaseFirestoreSwift(FirestoreQueryObservable.o) "_$s19FirebaseSharedSwift0A11DataDecoderC19KeyDecodingStrategyO14useDefaultKeysyA2EmFWC", referenced from: _$sSo12FIRFirestoreC22FirebaseFirestoreSwiftE7DecoderCAEycfC in FirebaseFirestoreSwift(EncoderDecoder.o) _$sSo12FIRFirestoreC22FirebaseFirestoreSwiftE7DecoderCAEycfc in FirebaseFirestoreSwift(EncoderDecoder.o) _$s22FirebaseFirestoreSwift0B15QueryObservableC13configurationACySayqd__GGAA0bD0V13ConfigurationVyAE_G_tcAERszSeRd__lufcySo16FIRQuerySnapshotCSg_s5Error_pSgtcfU_qd__SgSo0h8DocumentI0CXEfU_qd__yKXEfU_ in FirebaseFirestoreSwift(FirestoreQueryObservable.o) "_$s19FirebaseSharedSwift0A11DataDecoderC19keyDecodingStrategyAC03KeygH0OvsTj", referenced from: _$sSo12FIRFirestoreC22FirebaseFirestoreSwiftE7DecoderC6decode_4fromxxm_yptKSeRzlF in FirebaseFirestoreSwift(EncoderDecoder.o) "_$s19FirebaseSharedSwift0A11DataDecoderC20DateDecodingStrategyO6customyAE10Foundation0F0Vs0E0_pKccAEmFWC", referenced from: _$sSo12FIRFirestoreC22FirebaseFirestoreSwiftE7DecoderCAEycfC in FirebaseFirestoreSwift(EncoderDecoder.o) _$sSo12FIRFirestoreC22FirebaseFirestoreSwiftE7DecoderCAEycfc in FirebaseFirestoreSwift(EncoderDecoder.o) _$s22FirebaseFirestoreSwift0B15QueryObservableC13configurationACySayqd__GGAA0bD0V13ConfigurationVyAE_G_tcAERszSeRd__lufcySo16FIRQuerySnapshotCSg_s5Error_pSgtcfU_qd__SgSo0h8DocumentI0CXEfU_qd__yKXEfU_ in FirebaseFirestoreSwift(FirestoreQueryObservable.o) _$s19FirebaseSharedSwift0A11DataDecoderC20DateDecodingStrategyO0a9FirestoreC0E9timestampAEvgZ in FirebaseFirestoreSwift(TimestampDecodingStrategy.o) "_$s19FirebaseSharedSwift0A11DataDecoderC20dataDecodingStrategyAC0dgH0OvsTj", referenced from: _$sSo12FIRFirestoreC22FirebaseFirestoreSwiftE7DecoderC6decode_4fromxxm_yptKSeRzlF in FirebaseFirestoreSwift(EncoderDecoder.o) "_$s19FirebaseSharedSwift0A11DataDecoderC20dateDecodingStrategyAC04DategH0OvsTj", referenced from: _$sSo12FIRFirestoreC22FirebaseFirestoreSwiftE7DecoderC6decode_4fromxxm_yptKSeRzlF in FirebaseFirestoreSwift(EncoderDecoder.o) "_$s19FirebaseSharedSwift0A11DataDecoderC23passthroughTypeResolverAA026StructureCodingPassthroughgH0_pXpvsTj", referenced from: _$sSo12FIRFirestoreC22FirebaseFirestoreSwiftE7DecoderC6decode_4fromxxm_yptKSeRzlF in FirebaseFirestoreSwift(EncoderDecoder.o) "_$s19FirebaseSharedSwift0A11DataDecoderC34NonConformingFloatDecodingStrategyO5throwyA2EmFWC", referenced from: _$sSo12FIRFirestoreC22FirebaseFirestoreSwiftE7DecoderCAEycfC in FirebaseFirestoreSwift(EncoderDecoder.o) _$sSo12FIRFirestoreC22FirebaseFirestoreSwiftE7DecoderCAEycfc in FirebaseFirestoreSwift(EncoderDecoder.o) _$s22FirebaseFirestoreSwift0B15QueryObservableC13configurationACySayqd__GGAA0bD0V13ConfigurationVyAE_G_tcAERszSeRd__lufcySo16FIRQuerySnapshotCSg_s5Error_pSgtcfU_qd__SgSo0h8DocumentI0CXEfU_qd__yKXEfU_ in FirebaseFirestoreSwift(FirestoreQueryObservable.o) "_$s19FirebaseSharedSwift0A11DataDecoderC34nonConformingFloatDecodingStrategyAC03NonghiJ0OvsTj", referenced from: _$sSo12FIRFirestoreC22FirebaseFirestoreSwiftE7DecoderC6decode_4fromxxm_yptKSeRzlF in FirebaseFirestoreSwift(EncoderDecoder.o) "_$s19FirebaseSharedSwift0A11DataDecoderC6decode_4fromxxm_yptKSeRzlFTj", referenced from: _$sSo12FIRFirestoreC22FirebaseFirestoreSwiftE7DecoderC6decode_4fromxxm_yptKSeRzlF in FirebaseFirestoreSwift(EncoderDecoder.o) "_$s19FirebaseSharedSwift0A11DataDecoderC8userInfoSDys010CodingUserG3KeyVypGvsTj", referenced from: _$sSo12FIRFirestoreC22FirebaseFirestoreSwiftE7DecoderC6decode_4fromxxm_yptKSeRzlF in FirebaseFirestoreSwift(EncoderDecoder.o) "_$s19FirebaseSharedSwift0A11DataEncoderC0D16EncodingStrategyO6base64yA2EmFWC", referenced from: _$sSo12FIRFirestoreC22FirebaseFirestoreSwiftE7EncoderCAEycfC in FirebaseFirestoreSwift(EncoderDecoder.o) _$sSo12FIRFirestoreC22FirebaseFirestoreSwiftE7EncoderCAEycfc in FirebaseFirestoreSwift(EncoderDecoder.o) "_$s19FirebaseSharedSwift0A11DataEncoderC19KeyEncodingStrategyO14useDefaultKeysyA2EmFWC", referenced from: _$sSo12FIRFirestoreC22FirebaseFirestoreSwiftE7EncoderCAEycfC in FirebaseFirestoreSwift(EncoderDecoder.o) _$sSo12FIRFirestoreC22FirebaseFirestoreSwiftE7EncoderCAEycfc in FirebaseFirestoreSwift(EncoderDecoder.o) "_$s19FirebaseSharedSwift0A11DataEncoderC19keyEncodingStrategyAC03KeygH0OvsTj", referenced from: _$sSo12FIRFirestoreC22FirebaseFirestoreSwiftE7EncoderC6encodeySDySSypGxKSERzlF in FirebaseFirestoreSwift(EncoderDecoder.o) "_$s19FirebaseSharedSwift0A11DataEncoderC20DateEncodingStrategyO6customyAEy10Foundation0F0V_s0E0_ptKccAEmFWC", referenced from: _$sSo12FIRFirestoreC22FirebaseFirestoreSwiftE7EncoderCAEycfC in FirebaseFirestoreSwift(EncoderDecoder.o) _$sSo12FIRFirestoreC22FirebaseFirestoreSwiftE7EncoderCAEycfc in FirebaseFirestoreSwift(EncoderDecoder.o) _$s19FirebaseSharedSwift0A11DataEncoderC20DateEncodingStrategyO0a9FirestoreC0E9timestampAEvgZ in FirebaseFirestoreSwift(TimestampEncodingStrategy.o) "_$s19FirebaseSharedSwift0A11DataEncoderC20dataEncodingStrategyAC0dgH0OvsTj", referenced from: _$sSo12FIRFirestoreC22FirebaseFirestoreSwiftE7EncoderC6encodeySDySSypGxKSERzlF in FirebaseFirestoreSwift(EncoderDecoder.o) "_$s19FirebaseSharedSwift0A11DataEncoderC20dateEncodingStrategyAC04DategH0OvsTj", referenced from: _$sSo12FIRFirestoreC22FirebaseFirestoreSwiftE7EncoderC6encodeySDySSypGxKSERzlF in FirebaseFirestoreSwift(EncoderDecoder.o) "_$s19FirebaseSharedSwift0A11DataEncoderC23passthroughTypeResolverAA026StructureCodingPassthroughgH0_pXpvsTj", referenced from: _$sSo12FIRFirestoreC22FirebaseFirestoreSwiftE7EncoderC6encodeySDySSypGxKSERzlF in FirebaseFirestoreSwift(EncoderDecoder.o) "_$s19FirebaseSharedSwift0A11DataEncoderC34NonConformingFloatEncodingStrategyO5throwyA2EmFWC", referenced from: _$sSo12FIRFirestoreC22FirebaseFirestoreSwiftE7EncoderCAEycfC in FirebaseFirestoreSwift(EncoderDecoder.o) _$sSo12FIRFirestoreC22FirebaseFirestoreSwiftE7EncoderCAEycfc in FirebaseFirestoreSwift(EncoderDecoder.o) "_$s19FirebaseSharedSwift0A11DataEncoderC34nonConformingFloatEncodingStrategyAC03NonghiJ0OvsTj", referenced from: _$sSo12FIRFirestoreC22FirebaseFirestoreSwiftE7EncoderC6encodeySDySSypGxKSERzlF in FirebaseFirestoreSwift(EncoderDecoder.o) "_$s19FirebaseSharedSwift0A11DataEncoderC6encodeyypxKSERzlFTj", referenced from: _$sSo12FIRFirestoreC22FirebaseFirestoreSwiftE7EncoderC6encodeySDySSypGxKSERzlF in FirebaseFirestoreSwift(EncoderDecoder.o) "_$s19FirebaseSharedSwift0A11DataEncoderC8userInfoSDys010CodingUserG3KeyVypGvsTj", referenced from: _$sSo12FIRFirestoreC22FirebaseFirestoreSwiftE7EncoderC6encodeySDySSypGxKSERzlF in FirebaseFirestoreSwift(EncoderDecoder.o) "_$s19FirebaseSharedSwift38StructureCodingPassthroughTypeResolverP02isfG0ySbqd__lFZTq", referenced from: l_got.$s19FirebaseSharedSwift38StructureCodingPassthroughTypeResolverP02isfG0ySbqd__lFZTq in FirebaseFirestoreSwift(CodablePassThroughTypes.o) ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation) ** ARCHIVE FAILED ** The following build commands failed: Ld /Users/vagrant/Library/Developer/Xcode/DerivedData/Boks_preprod-axpubthxykkfxvhflqqrgrpvwivc/Build/Intermediates.noindex/ArchiveIntermediates/Boks\ preprod/InstallationBuildProductsLocation/Applications/Boks\ preprod.app/Boks\ preprod normal (in target 'Boks preprod' from project 'Boks preprod') (1 failure) xcodebuild: Command failed with exit code 65 [ERROR] An error occurred while running subprocess cordova. ```

Thanks for your input, I'm open to try some solutions locally, but as is I'm not sure what to configure in Podfile to make it work

mikehardy commented 1 year ago

@QuentinFarizon I'm not familiar with the targets defined by cordova that would allow detection of firestore already included there. You'll need to propose a PR that alters the podspec and detects something about your Cordova build that indicates if it already has firestore included or not, then you can key off that to remove the FirebaseFirestoreSwift pod for it as well

QuentinFarizon commented 1 year ago

@mikehardy do you know where I can check these targets ?

QuentinFarizon commented 1 year ago

@mikehardy Apart from fixing it on your side, do you know of any file I could manually modify to avoid this error ?

mikehardy commented 1 year ago

@mikehardy do you know where I can check these targets ?

No, sorry. I have no experience with Cordova

@mikehardy Apart from fixing it on your side, do you know of any file I could manually modify to avoid this error ?

You might be able to PR something in the podspec where you check for an environment variable or something as well as the react-native / flutter items, as an manual override. And if you define that variable then you can also exclude the problematic Pod framework

It appears you already have an environment variable available?

IOS_USE_PRECOMPILED_FIRESTORE_POD=true

from https://github.com/dpa99c/cordova-plugin-firebasex/issues/782#issuecomment-1331908415

QuentinFarizon commented 1 year ago

@mikehardy Yes, my build is OK when not using your precompiled Firestore Pod, but it takes 20 additional minutes

No, sorry. I have no experience with Cordova

I mean, where can I look to give you this information ?

mikehardy commented 1 year ago

@QuentinFarizon your comment does not seem to take into account my comment - I've provided an outline of a feasible solution, even including pertinent cordova details. The approach I outline should work, but you'll have to do the work to make it work

russellwheatley commented 1 year ago

@QuentinFarizon Update this part of the podspec. You're trying to detect the Firestore framework for Cordova. For example, the Flutter Firestore framework is called, cloud_firestore. If it exists, you need to exclude FirebaseFirestoreSwift framework from the build.

QuentinFarizon commented 1 year ago

@mikehardy @russellwheatley I did get that !

What I don't get is how to find how is called the Cordova Firestore framework. In which file should I look into ? Sorry, I'm not very familiar with the iOS/Pod system and namings

mikehardy commented 1 year ago

I suggest given unfamiliarity with the targets to rely on detection if an environment variable instead, as mentioned above. You already have one you can detect, also as mentioned

QuentinFarizon commented 1 year ago

Oh ok I see, but IOS_USE_PRECOMPILED_FIRESTORE_POD is not an environment variable

QuentinFarizon commented 1 year ago

I figured out it could be any environment variable, so a generic one could cover other uses cases than Cordova's : https://github.com/invertase/firestore-ios-sdk-frameworks/pull/68/files