Can Firebase Be Used With A Swift Framework Project? - ios

I took the following steps:
Create a brand new swift single view application.
Add a pod file that expresses a dependency on Firebase
Install the pods
Open the resultant workspace and build for simulator
The builds succeeds
I then repeated these steps except that in step 1 I created a brand new swift cocoa touch framework. Now the builds fails.
As you can see below, Firebase is referencing undefined symbols. And those symbols are mostly ones that I recognize and would expect to be present: UIScreen, UIWebView, UIView, etc.
I suspect that this all has something to do with the fact that Firebase is a static library (as is pointed out here by Mike McDonald as a reason why Firebase cannot be used with Carthage).
I am at the limit of my understanding of the differences/consequences of applications, frameworks, and libraries. Can anyone help me to understand what is going on here?
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_UIScreen", referenced from:
objc-class-ref in FirebaseAuth(FIRAuthWebViewController_86c5ea5aedb4d33fd68b8660d74be54c.o)
"_OBJC_CLASS_$_UIWebView", referenced from:
objc-class-ref in FirebaseAuth(FIRAuthWebView_25b1b3be4cd535a13078fd46686b4a67.o)
"_OBJC_CLASS_$_UIActivityIndicatorView", referenced from:
objc-class-ref in FirebaseAuth(FIRAuthWebView_25b1b3be4cd535a13078fd46686b4a67.o)
"_OBJC_METACLASS_$_UIView", referenced from:
_OBJC_METACLASS_$_FIRAuthWebView in FirebaseAuth(FIRAuthWebView_25b1b3be4cd535a13078fd46686b4a67.o)
"_CGRectZero", referenced from:
-[FIRAuthWebView createWebView] in FirebaseAuth(FIRAuthWebView_25b1b3be4cd535a13078fd46686b4a67.o)
"_UIApplicationOpenURLOptionsAnnotationKey", referenced from:
-[FIRAuthAppDelegateProxy initWithApplication:] in FirebaseAuth(FIRAuthAppDelegateProxy_d84ca069394368ea9e8127dbd13cc324.o)
"_UIApplicationDidEnterBackgroundNotification", referenced from:
___23-[FIRAuth initWithApp:]_block_invoke_2 in FirebaseAuth(FIRAuth_cce0d8e8cd5be2b376ebd7862de82f18.o)
-[FIRAuth dealloc] in FirebaseAuth(FIRAuth_cce0d8e8cd5be2b376ebd7862de82f18.o)
-[FIRClearcutLogger init] in FirebaseCoreDiagnostics(FIRClearcutLogger_d1e734d02d610ce1f3d8c66a4d80fa41.o)
"_OBJC_CLASS_$_UIColor", referenced from:
objc-class-ref in FirebaseAuth(FIRAuthWebView_25b1b3be4cd535a13078fd46686b4a67.o)
"_OBJC_CLASS_$_UIViewController", referenced from:
objc-class-ref in FirebaseAnalytics(UIViewController+FIRAScreenClassName_936040e31cd4dddd6f71a52ea1701d0d.o)
l_OBJC_$_CATEGORY_UIViewController_$_FIRAScreenClassName in FirebaseAnalytics(UIViewController+FIRAScreenClassName_936040e31cd4dddd6f71a52ea1701d0d.o)
_OBJC_CLASS_$_FIRAuthWebViewController in FirebaseAuth(FIRAuthWebViewController_86c5ea5aedb4d33fd68b8660d74be54c.o)
"_OBJC_CLASS_$_UIPageViewController", referenced from:
objc-class-ref in FirebaseAnalytics(FIRAScreenViewReporter_ac44c2e1b22c7193e316d64ecdc73845.o)
"_UIApplicationDidFinishLaunchingNotification", referenced from:
+[FIRAMeasurement load] in FirebaseAnalytics(FIRAMeasurement_41f8c6ad6e1fd9e66100bee4ee2fdd35.o)
"_OBJC_METACLASS_$_UIViewController", referenced from:
_OBJC_METACLASS_$_FIRAuthWebViewController in FirebaseAuth(FIRAuthWebViewController_86c5ea5aedb4d33fd68b8660d74be54c.o)
"_OBJC_CLASS_$_UIView", referenced from:
_OBJC_CLASS_$_FIRAuthWebView in FirebaseAuth(FIRAuthWebView_25b1b3be4cd535a13078fd46686b4a67.o)
"_UIApplicationLaunchOptionsURLKey", referenced from:
+[FIRAMeasurement handleAppDidFinishLaunching:] in FirebaseAnalytics(FIRAMeasurement_41f8c6ad6e1fd9e66100bee4ee2fdd35.o)
"_OBJC_CLASS_$_UINavigationController", referenced from:
objc-class-ref in FirebaseAnalytics(FIRAScreenViewReporter_ac44c2e1b22c7193e316d64ecdc73845.o)
objc-class-ref in FirebaseAuth(FIRAuthURLPresenter_f9c1670c7b472e1f12d82d1c6f46940a.o)
objc-class-ref in FirebaseAuth(FIRAuthDefaultUIDelegate_57cb718a1d423e27d0d50a3bf9524d86.o)
"_UIApplicationWillEnterForegroundNotification", referenced from:
___48-[FIRAMeasurement startMeasurementOnWorkerQueue]_block_invoke in FirebaseAnalytics(FIRAMeasurement_41f8c6ad6e1fd9e66100bee4ee2fdd35.o)
"_OBJC_CLASS_$_UITabBarController", referenced from:
objc-class-ref in FirebaseAnalytics(FIRAScreenViewReporter_ac44c2e1b22c7193e316d64ecdc73845.o)
objc-class-ref in FirebaseAuth(FIRAuthDefaultUIDelegate_57cb718a1d423e27d0d50a3bf9524d86.o)
"_OBJC_CLASS_$_UIBarButtonItem", referenced from:
objc-class-ref in FirebaseAuth(FIRAuthWebViewController_86c5ea5aedb4d33fd68b8660d74be54c.o)
"_OBJC_CLASS_$_UIDevice", referenced from:
objc-class-ref in FirebaseAnalytics(FIRAEnvironmentInfo_0da493a96efd1159c2c84454cf5a7f9d.o)
objc-class-ref in FirebaseAnalytics(FIRAMeasurement_41f8c6ad6e1fd9e66100bee4ee2fdd35.o)
objc-class-ref in FirebaseAnalytics(FIRAInAppPurchaseTransactionReporter_51b6624ff1330bf43a3ed7d9ba76e1ba.o)
objc-class-ref in FirebaseAnalytics(FIRAAEU_58e35a32128cb3aedeb97de41a9b356d.o)
objc-class-ref in FirebaseAnalytics(FIRAIdentity_8e9287d1fd6072066ad3b1332bc62373.o)
objc-class-ref in FirebaseAuth(FIRAuthKeychain_ee296104c7d22b9c7b07f84e7067440c.o)
objc-class-ref in FirebaseCore(FIRAppEnvironmentUtil_d91f40fc45222373d7f99c8b2ea3c83a.o)
...
"_UIWindowDidResignKeyNotification", referenced from:
-[FIRAScreenViewReporter init] in FirebaseAnalytics(FIRAScreenViewReporter_ac44c2e1b22c7193e316d64ecdc73845.o)
"_UIApplicationDidBecomeActiveNotification", referenced from:
___48-[FIRAMeasurement startMeasurementOnWorkerQueue]_block_invoke in FirebaseAnalytics(FIRAMeasurement_41f8c6ad6e1fd9e66100bee4ee2fdd35.o)
-[FIRAScreenViewReporter init] in FirebaseAnalytics(FIRAScreenViewReporter_ac44c2e1b22c7193e316d64ecdc73845.o)
___23-[FIRAuth initWithApp:]_block_invoke_2 in FirebaseAuth(FIRAuth_cce0d8e8cd5be2b376ebd7862de82f18.o)
-[FIRAuth dealloc] in FirebaseAuth(FIRAuth_cce0d8e8cd5be2b376ebd7862de82f18.o)
"_OBJC_CLASS_$_UIWindow", referenced from:
l_OBJC_$_CATEGORY_UIWindow_$_FIRAScreenClassName in FirebaseAnalytics(UIWindow+FIRAScreenClassName_93645224f692c290f5d755885ec7f4c8.o)
"_UIApplicationWillResignActiveNotification", referenced from:
___48-[FIRAMeasurement startMeasurementOnWorkerQueue]_block_invoke in FirebaseAnalytics(FIRAMeasurement_41f8c6ad6e1fd9e66100bee4ee2fdd35.o)
-[FIRAScreenViewReporter init] in FirebaseAnalytics(FIRAScreenViewReporter_ac44c2e1b22c7193e316d64ecdc73845.o)
"_UIBackgroundTaskInvalid", referenced from:
-[FIRAMeasurement initWithDatabaseName:persistedConfig:network:scheduler:alarm:options:] in FirebaseAnalytics(FIRAMeasurement_41f8c6ad6e1fd9e66100bee4ee2fdd35.o)
-[FIRAMeasurement swapBackgroundTaskWithNewTaskID:] in FirebaseAnalytics(FIRAMeasurement_41f8c6ad6e1fd9e66100bee4ee2fdd35.o)
-[FIRAMeasurement terminateBackgroundTask] in FirebaseAnalytics(FIRAMeasurement_41f8c6ad6e1fd9e66100bee4ee2fdd35.o)
-[FIRClearcutLogger init] in FirebaseCoreDiagnostics(FIRClearcutLogger_d1e734d02d610ce1f3d8c66a4d80fa41.o)
-[FIRClearcutLogger dealloc] in FirebaseCoreDiagnostics(FIRClearcutLogger_d1e734d02d610ce1f3d8c66a4d80fa41.o)
-[FIRClearcutLogger sendLogsWithCompletionHandler:] in FirebaseCoreDiagnostics(FIRClearcutLogger_d1e734d02d610ce1f3d8c66a4d80fa41.o)
___51-[FIRClearcutLogger sendLogsWithCompletionHandler:]_block_invoke in FirebaseCoreDiagnostics(FIRClearcutLogger_d1e734d02d610ce1f3d8c66a4d80fa41.o)
...
"_OBJC_CLASS_$_UIApplication", referenced from:
objc-class-ref in FirebaseAnalytics(FIRAAppDelegateProxy_2421946053f1c5c031a7dceeaf4d9408.o)
objc-class-ref in FirebaseAuth(FIRAuth_cce0d8e8cd5be2b376ebd7862de82f18.o)
objc-class-ref in FirebaseAuth(FIRAuthAppDelegateProxy_d84ca069394368ea9e8127dbd13cc324.o)
objc-class-ref in FirebaseAuth(FIRAuthDefaultUIDelegate_57cb718a1d423e27d0d50a3bf9524d86.o)
objc-class-ref in FirebaseCoreDiagnostics(FIRClearcutLogger_d1e734d02d610ce1f3d8c66a4d80fa41.o)
objc-class-ref in FirebaseInstanceID(FIRMessagingLog_045f628692bcbe68f0c668c89b92b24f.o)
ld: symbol(s) not found for architecture x86_64

Related

I can't build my flutter app in Xcode 12.5 (Undefined symbols for architecture x86_64)

I can build my app by flutter run, but I can't in Xcode for Archive.
Do anyone know how to fix this?
Error
Undefined symbols for architecture x86_64:
"_pb_encode", referenced from:
_nano_two_pass_encoding in GoogleAppMeasurement(encoder_common.o)
"_pb_encode_tag_for_field", referenced from:
_apmpb_encode_repeated_app_property in GoogleAppMeasurement(apmpb_app_property_encoder.o)
_apmpb_encode_repeated_audience in GoogleAppMeasurement(apmpb_audience_encoder.o)
_apmpb_encode_repeated_audience_leaf_filter_result in GoogleAppMeasurement(apmpb_audience_leaf_filter_result_encoder.o)
_apmpb_encode_repeated_client_property in GoogleAppMeasurement(apmpb_client_property_encoder.o)
_apmpb_encode_repeated_custom_property in GoogleAppMeasurement(apmpb_custom_property_encoder.o)
_apmpb_encode_repeated_dynamic_filter_result_timestamp in GoogleAppMeasurement(apmpb_dynamic_filter_result_timestamp_encoder.o)
_apmpb_encode_repeated_event in GoogleAppMeasurement(apmpb_event_encoder.o)
...
"_pb_read", referenced from:
_apmpb_decode_repeated_app_property in GoogleAppMeasurement(apmpb_app_property_decoder.o)
_apmpb_decode_repeated_audience in GoogleAppMeasurement(apmpb_audience_decoder.o)
_apmpb_decode_repeated_audience_leaf_filter_result in GoogleAppMeasurement(apmpb_audience_leaf_filter_result_decoder.o)
_apmpb_decode_repeated_client_property in GoogleAppMeasurement(apmpb_client_property_decoder.o)
_apmpb_decode_repeated_custom_property in GoogleAppMeasurement(apmpb_custom_property_decoder.o)
_apmpb_decode_repeated_dynamic_filter_result_timestamp in GoogleAppMeasurement(apmpb_dynamic_filter_result_timestamp_decoder.o)
_apmpb_decode_repeated_event in GoogleAppMeasurement(apmpb_event_decoder.o)
...
"_pb_decode", referenced from:
_apmpb_decode_app_property in GoogleAppMeasurement(apmpb_app_property_decoder.o)
_apmpb_decode_audience in GoogleAppMeasurement(apmpb_audience_decoder.o)
_apmpb_decode_audience_leaf_filter_result in GoogleAppMeasurement(apmpb_audience_leaf_filter_result_decoder.o)
_apmpb_decode_client_property in GoogleAppMeasurement(apmpb_client_property_decoder.o)
_apmpb_decode_custom_property in GoogleAppMeasurement(apmpb_custom_property_decoder.o)
_apmpb_decode_dynamic_filter_result_timestamp in GoogleAppMeasurement(apmpb_dynamic_filter_result_timestamp_decoder.o)
_apmpb_decode_event in GoogleAppMeasurement(apmpb_event_decoder.o)
...
"_pb_encode_string", referenced from:
_nano_encode_string in GoogleAppMeasurement(encoder_common.o)
"_OBJC_CLASS_$_FIROptions", referenced from:
objc-class-ref in firebase_core(FLTFirebaseCorePlugin.o)
"_FIRFirestoreErrorDomain", referenced from:
___63-[FLTTransactionStreamHandler onListenWithArguments:eventSink:]_block_invoke in cloud_firestore(FLTTransactionStreamHandler.o)
"_OBJC_CLASS_$_FIRQuerySnapshot", referenced from:
objc-class-ref in cloud_firestore(FLTFirebaseFirestoreWriter.o)
"_OBJC_CLASS_$_FIRDocumentSnapshot", referenced from:
objc-class-ref in cloud_firestore(FLTFirebaseFirestoreWriter.o)
"_OBJC_CLASS_$_FIRFirestoreSettings", referenced from:
objc-class-ref in cloud_firestore(FLTFirebaseFirestoreReader.o)
"_OBJC_CLASS_$_FIRFieldValue", referenced from:
objc-class-ref in cloud_firestore(FLTFirebaseFirestoreReader.o)
"_OBJC_CLASS_$_FIRDocumentChange", referenced from:
objc-class-ref in cloud_firestore(FLTFirebaseFirestoreWriter.o)
"_OBJC_CLASS_$_FIRFirestore", referenced from:
objc-class-ref in cloud_firestore(FLTFirebaseFirestorePlugin.o)
objc-class-ref in cloud_firestore(FLTFirebaseFirestoreReader.o)
"_OBJC_CLASS_$_GULSwizzler", referenced from:
objc-class-ref in GoogleAppMeasurement(UIViewController+APMScreenClassName.o)
"_OBJC_CLASS_$_FIRDocumentReference", referenced from:
objc-class-ref in cloud_firestore(FLTFirebaseFirestoreWriter.o)
"_kFIRFirestoreCacheSizeUnlimited", referenced from:
-[FLTFirebaseFirestoreReader FIRFirestoreSettings] in cloud_firestore(FLTFirebaseFirestoreReader.o)
"_GULLogInfo", referenced from:
___44+[UIViewController(APMScreenClassName) load]_block_invoke in GoogleAppMeasurement(UIViewController+APMScreenClassName.o)
"_OBJC_CLASS_$_FIRSnapshotMetadata", referenced from:
objc-class-ref in cloud_firestore(FLTFirebaseFirestoreWriter.o)
"_OBJC_CLASS_$_FIRGeoPoint", referenced from:
objc-class-ref in cloud_firestore(FLTFirebaseFirestoreReader.o)
objc-class-ref in cloud_firestore(FLTFirebaseFirestoreWriter.o)
"_GULIsLoggableLevel", referenced from:
-[APMMonitor isLoggableLevel:] in GoogleAppMeasurement(APMMonitor.o)
"_pb_encode_varint", referenced from:
_nano_encode_repeated_uint64 in GoogleAppMeasurement(encoder_common.o)
"_OBJC_CLASS_$_FIRLoadBundleTaskProgress", referenced from:
objc-class-ref in cloud_firestore(FLTFirebaseFirestoreWriter.o)
"_GULLogError", referenced from:
+[APMAnalytics startWithAppID:origin:options:] in GoogleAppMeasurement(APMAnalytics.o)
-[APMUserDefaults synchronize] in GoogleAppMeasurement(APMUserDefaults.o)
"_kGULNetworkHTTPStatusCodeNotModified", referenced from:
-[APMMeasurement networkRemoteConfigFetchCompletionHandler:data:error:] in GoogleAppMeasurement(APMMeasurement.o)
___46-[APMMeasurement(URL) requestDeferredDeepLink]_block_invoke in GoogleAppMeasurement(APMMeasurement+URL.o)
"_kGULNetworkHTTPStatusCodeNotFound", referenced from:
-[APMMeasurement networkRemoteConfigFetchCompletionHandler:data:error:] in GoogleAppMeasurement(APMMeasurement.o)
"_pb_ostream_from_buffer", referenced from:
_nano_two_pass_encoding in GoogleAppMeasurement(encoder_common.o)
"_kGULNetworkHTTPStatusCodeCannotAcceptTraffic", referenced from:
-[APMMeasurement networkUploadCompletionHandlerWithResponse:error:] in GoogleAppMeasurement(APMMeasurement.o)
-[APMMeasurement networkRemoteConfigFetchCompletionHandler:data:error:] in GoogleAppMeasurement(APMMeasurement.o)
-[APMETaskManager handleFetchingExperimentsResponse:data:error:] in GoogleAppMeasurement(APMETaskManager.o)
"_GULLogWarning", referenced from:
+[APMMeasurement sharedInstance] in GoogleAppMeasurement(APMMeasurement.o)
-[APMUserDefaults objectForKey:] in GoogleAppMeasurement(APMUserDefaults.o)
-[APMUserDefaults setObject:forKey:] in GoogleAppMeasurement(APMUserDefaults.o)
-[APMUserDefaults synchronize] in GoogleAppMeasurement(APMUserDefaults.o)
___44+[UIViewController(APMScreenClassName) load]_block_invoke in GoogleAppMeasurement(UIViewController+APMScreenClassName.o)
"_kGULNetworkHTTPStatusNoContent", referenced from:
-[APMMeasurement networkUploadCompletionHandlerWithResponse:error:] in GoogleAppMeasurement(APMMeasurement.o)
-[APMMeasurement networkRemoteConfigFetchCompletionHandler:data:error:] in GoogleAppMeasurement(APMMeasurement.o)
-[APMETaskManager handleFetchingExperimentsResponse:data:error:] in GoogleAppMeasurement(APMETaskManager.o)
___46-[APMMeasurement(URL) requestDeferredDeepLink]_block_invoke in GoogleAppMeasurement(APMMeasurement+URL.o)
"_OBJC_CLASS_$_GULNetwork", referenced from:
objc-class-ref in GoogleAppMeasurement(APMAnalytics.o)
objc-class-ref in GoogleAppMeasurement(APMAppDelegateInterceptor.o)
objc-class-ref in GoogleAppMeasurement(APMMeasurement.o)
objc-class-ref in GoogleAppMeasurement(APMETaskManager.o)
"_OBJC_CLASS_$_FIRTimestamp", referenced from:
objc-class-ref in cloud_firestore(FLTFirebaseFirestoreReader.o)
objc-class-ref in cloud_firestore(FLTFirebaseFirestoreWriter.o)
"_pb_decode_varint", referenced from:
_nano_decode_repeated_uint64 in GoogleAppMeasurement(decoder_common.o)
"_kGULNetworkHTTPStatusCodeUnavailable", referenced from:
-[APMMeasurement networkUploadCompletionHandlerWithResponse:error:] in GoogleAppMeasurement(APMMeasurement.o)
-[APMMeasurement networkRemoteConfigFetchCompletionHandler:data:error:] in GoogleAppMeasurement(APMMeasurement.o)
-[APMETaskManager handleFetchingExperimentsResponse:data:error:] in GoogleAppMeasurement(APMETaskManager.o)
"_OBJC_CLASS_$_FIRFieldPath", referenced from:
objc-class-ref in cloud_firestore(FLTFirebaseFirestoreReader.o)
"_OBJC_CLASS_$_GULMutableDictionary", referenced from:
objc-class-ref in GoogleAppMeasurement(APMEExperiment.o)
objc-class-ref in GoogleAppMeasurement(APMEExperimentRequestBuilder.o)
objc-class-ref in GoogleAppMeasurement(APMEManager.o)
objc-class-ref in GoogleAppMeasurement(APMRemoteConfig.o)
objc-class-ref in GoogleAppMeasurement(APMESnapshot.o)
"_OBJC_CLASS_$_GULAppEnvironmentUtil", referenced from:
objc-class-ref in GoogleAppMeasurement(APMEExperimentRequestBuilder.o)
"_GULLogBasic", referenced from:
-[APMASLLogger logMessage:logTag:messageCode:withLogLevel:] in GoogleAppMeasurement(APMASLLogger.o)
"_kGULNetworkHTTPStatusOK", referenced from:
-[APMMeasurement networkUploadCompletionHandlerWithResponse:error:] in GoogleAppMeasurement(APMMeasurement.o)
-[APMMeasurement networkRemoteConfigFetchCompletionHandler:data:error:] in GoogleAppMeasurement(APMMeasurement.o)
-[APMETaskManager handleFetchingExperimentsResponse:data:error:] in GoogleAppMeasurement(APMETaskManager.o)
___46-[APMMeasurement(URL) requestDeferredDeepLink]_block_invoke in GoogleAppMeasurement(APMMeasurement+URL.o)
"_pb_istream_from_buffer", referenced from:
_apmpb_decode_app_property in GoogleAppMeasurement(apmpb_app_property_decoder.o)
_apmpb_decode_audience in GoogleAppMeasurement(apmpb_audience_decoder.o)
_apmpb_decode_audience_leaf_filter_result in GoogleAppMeasurement(apmpb_audience_leaf_filter_result_decoder.o)
_apmpb_decode_client_property in GoogleAppMeasurement(apmpb_client_property_decoder.o)
_apmpb_decode_custom_property in GoogleAppMeasurement(apmpb_custom_property_decoder.o)
_apmpb_decode_dynamic_filter_result_timestamp in GoogleAppMeasurement(apmpb_dynamic_filter_result_timestamp_decoder.o)
_apmpb_decode_event in GoogleAppMeasurement(apmpb_event_decoder.o)
...
"_OBJC_CLASS_$_GULAppDelegateSwizzler", referenced from:
objc-class-ref in GoogleAppMeasurement(APMAnalytics.o)
"_GULSetLoggerLevel", referenced from:
-[APMMonitor setDebugModeEnabled:] in GoogleAppMeasurement(APMMonitor.o)
-[APMMonitor setVerboseLoggingEnabled:] in GoogleAppMeasurement(APMMonitor.o)
"_pb_encode_submessage", referenced from:
_apmpb_encode_repeated_app_property in GoogleAppMeasurement(apmpb_app_property_encoder.o)
_apmpb_encode_repeated_audience in GoogleAppMeasurement(apmpb_audience_encoder.o)
_apmpb_encode_repeated_audience_leaf_filter_result in GoogleAppMeasurement(apmpb_audience_leaf_filter_result_encoder.o)
_apmpb_encode_repeated_client_property in GoogleAppMeasurement(apmpb_client_property_encoder.o)
_apmpb_encode_repeated_custom_property in GoogleAppMeasurement(apmpb_custom_property_encoder.o)
_apmpb_encode_repeated_dynamic_filter_result_timestamp in GoogleAppMeasurement(apmpb_dynamic_filter_result_timestamp_encoder.o)
_apmpb_encode_repeated_event in GoogleAppMeasurement(apmpb_event_encoder.o)
...
"_OBJC_CLASS_$_FIRApp", referenced from:
objc-class-ref in AppDelegate.o
objc-class-ref in cloud_firestore(FLTFirebaseFirestorePlugin.o)
objc-class-ref in firebase_core(FLTFirebaseCorePlugin.o)
objc-class-ref in firebase_core(FLTFirebasePlugin.o)
objc-class-ref in firebase_core(FLTFirebasePluginRegistry.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
What I did
Why linker link static libraries with errors? iOS
Undefined symbols for architecture x86_64 flutter
and more (sorry, I can't remember).
Delete Podfile.lock, Go to ios folder and run these commands,
pod deintegrate
pod install
pod update
Then run the project again and check.

AWS Mobile Hub Issue O Linker error - iOS

I followed the mobile hub instructions for setting it up in my app but i seem to be getting these errors when I am trying to compile:
Undefined symbols for architecture x86_64:
"_AWSSNSErrorDomain", referenced from:
___88-[AWSPushManager interceptApplication:didRegisterForRemoteNotificationsWithDeviceToken:]_block_invoke.239 in AWSMobileHubHelper(AWSPushManager.o)
"_OBJC_CLASS_$_AWSLambdaInvoker", referenced from:
objc-class-ref in AWSMobileHubHelper(AWSCloudLogic.o)
"_OBJC_CLASS_$_AWSS3", referenced from:
objc-class-ref in AWSMobileHubHelper(AWSContentManager.o)
(maybe you meant: _OBJC_CLASS_$_AWSS3ContentProvider)
"_OBJC_CLASS_$_AWSS3GetPreSignedURLRequest", referenced from:
objc-class-ref in AWSMobileHubHelper(AWSContentManager.o)
"_OBJC_CLASS_$_AWSS3ListObjectsOutput", referenced from:
objc-class-ref in AWSMobileHubHelper(AWSContentManager.o)
"_OBJC_CLASS_$_AWSS3ListObjectsRequest", referenced from:
objc-class-ref in AWSMobileHubHelper(AWSContentManager.o)
"_OBJC_CLASS_$_AWSS3PreSignedURLBuilder", referenced from:
objc-class-ref in AWSMobileHubHelper(AWSContentManager.o)
"_OBJC_CLASS_$_AWSSNS", referenced from:
objc-class-ref in AWSMobileHubHelper(AWSPushManager.o)
"_OBJC_CLASS_$_AWSSNSCreatePlatformEndpointInput", referenced from:
objc-class-ref in AWSMobileHubHelper(AWSPushManager.o)
"_OBJC_CLASS_$_AWSSNSGetEndpointAttributesInput", referenced from:
objc-class-ref in AWSMobileHubHelper(AWSPushManager.o)
"_OBJC_CLASS_$_AWSSNSSetEndpointAttributesInput", referenced from:
objc-class-ref in AWSMobileHubHelper(AWSPushManager.o)
"_OBJC_CLASS_$_AWSSNSSubscribeInput", referenced from:
objc-class-ref in AWSMobileHubHelper(AWSPushManager.o)
"_OBJC_CLASS_$_AWSSNSUnsubscribeInput", referenced from:
objc-class-ref in AWSMobileHubHelper(AWSPushManager.o)
"_OBJC_CLASS_$_FBSDKAccessToken", referenced from:
objc-class-ref in AWSMobileHubHelper(AWSFacebookSignInProvider.o)
"_OBJC_CLASS_$_FBSDKApplicationDelegate", referenced from:
objc-class-ref in AWSMobileHubHelper(AWSFacebookSignInProvider.o)
"_OBJC_CLASS_$_FBSDKGraphRequest", referenced from:
objc-class-ref in AWSMobileHubHelper(AWSFacebookSignInProvider.o)
"_OBJC_CLASS_$_FBSDKLoginManager", referenced from:
objc-class-ref in AWSMobileHubHelper(AWSFacebookSignInProvider.o)
"_OBJC_CLASS_$_GIDSignIn", referenced from:
objc-class-ref in AWSMobileHubHelper(AWSGoogleSignInProvider.o)
"_OBJC_CLASS_$_SFSafariViewController", referenced from:
objc-class-ref in AWSMobileHubHelper(AWSQuickbooksAuthorizationManager.o)
objc-class-ref in AWSMobileHubHelper(AWSAuthorizationManager.o)
ld: symbol(s) not found for architecture x86_64
My Current Architecture : arm64,armv7,armv7s
I have probably spent 3 hours playing around with different things and I can't seem to find a solution... if you can lead me in the right direction I would appreciate it alot.

ld: symbol(s) not found for architecture x86_64 in my pod classes

I updated my pods. After the update I am not able to launch my app due to following errors:
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_DownPicker", referenced from:
objc-class-ref in ChooseBookViewController.o
"_OBJC_CLASS_$_FBSDKAppEvents", referenced from:
objc-class-ref in AnalyticsProvider.o
"_OBJC_CLASS_$_FBSDKApplicationDelegate", referenced from:
objc-class-ref in AppDelegate.o
"_OBJC_CLASS_$_Mixpanel", referenced from:
objc-class-ref in AnalyticsProvider.o
"_OBJC_CLASS_$_PHFComposeBarView", referenced from:
objc-class-ref in ForumBaseVC.o
"_OBJC_CLASS_$_RKDynamicMapping", referenced from:
objc-class-ref in WikiArticle.o
"_OBJC_CLASS_$_RKObjectManager", referenced from:
objc-class-ref in MLDataProvider.o
"_OBJC_CLASS_$_RKObjectMapping", referenced from:
objc-class-ref in WikiError.o
objc-class-ref in WikiArticle.o
objc-class-ref in WikiLogin.o
objc-class-ref in WikiQuery.o
objc-class-ref in Model.o
objc-class-ref in WikiThumbnail.o
objc-class-ref in MLError.o
How do I solve this?
Regards

iOS Undefined symbols for architecture x86_64 Xcode

I have installed some third party frameworks in my app. Every thing was working fine and suddenly one day i started to get the following errors. Please note that these linker errors appear only when i try to run my app on iOS Simulator.
Undefined symbols for architecture x86_64:
"_AFNetworkingOperationFailingURLResponseDataErrorKey", referenced from:
___61-[DataManager signupWithEmail:password:name:success:failure:]_block_invoke.127 in DataManager.o
___46-[DataManager favoriteLesson:success:failure:]_block_invoke.311 in DataManager.o
___48-[DataManager unfavoriteLesson:success:failure:]_block_invoke.345 in DataManager.o
"_AFStringFromNetworkReachabilityStatus", referenced from:
___41-[DataManager startObservingReachability]_block_invoke in DataManager.o
"_OBJC_CLASS_$_ADJConfig", referenced from:
objc-class-ref in AppDelegate.o
"_OBJC_CLASS_$_ADJEvent", referenced from:
objc-class-ref in TrackingHelper.o
"_OBJC_CLASS_$_AFCompoundResponseSerializer", referenced from:
objc-class-ref in DataManager.o
"_OBJC_CLASS_$_AFHTTPRequestSerializer", referenced from:
objc-class-ref in DataManager.o
"_OBJC_CLASS_$_AFHTTPResponseSerializer", referenced from:
objc-class-ref in DataManager.o
"_OBJC_CLASS_$_AFHTTPSessionManager", referenced from:
objc-class-ref in DataManager.o
"_OBJC_CLASS_$_AFJSONRequestSerializer", referenced from:
objc-class-ref in DataManager.o
"_OBJC_CLASS_$_AFJSONResponseSerializer", referenced from:
objc-class-ref in DataManager.o
"_OBJC_CLASS_$_AFNetworkReachabilityManager", referenced from:
objc-class-ref in DataManager.o
"_OBJC_CLASS_$_AFURLSessionManager", referenced from:
objc-class-ref in DataManager.o
"_OBJC_CLASS_$_AMTagView", referenced from:
objc-class-ref in CategorySelectionViewController.o
"_OBJC_CLASS_$_Adjust", referenced from:
objc-class-ref in AppDelegate.o
objc-class-ref in TrackingHelper.o
"_OBJC_CLASS_$_CarbonTabSwipeNavigation", referenced from:
objc-class-ref in MyProfileViewController.o
objc-class-ref in SearchResultsContainerViewController.o
"_OBJC_CLASS_$_FBSDKAccessToken", referenced from:
objc-class-ref in SignUpViewController.o
objc-class-ref in MyProfileViewController.o
"_OBJC_CLASS_$_FBSDKAppEvents", referenced from:
objc-class-ref in AppDelegate.o
"_OBJC_CLASS_$_FBSDKApplicationDelegate", referenced from:
objc-class-ref in AppDelegate.o
"_OBJC_CLASS_$_FBSDKLoginManager", referenced from:
objc-class-ref in SignUpViewController.o
objc-class-ref in DataManager.o
objc-class-ref in LoginViewController.o
"_OBJC_CLASS_$_MGSwipeButton", referenced from:
objc-class-ref in LessonsViewController.o
"_OBJC_CLASS_$_MGSwipeTableCell", referenced from:
_OBJC_CLASS_$_LessonTableViewCell in LessonTableViewCell.o
"_OBJC_CLASS_$_Mixpanel", referenced from:
objc-class-ref in AppDelegate.o
objc-class-ref in InitialViewController.o
objc-class-ref in DataManager.o
"_OBJC_CLASS_$_WYPopoverController", referenced from:
objc-class-ref in GuideViewController.o
"_OBJC_METACLASS_$_MGSwipeTableCell", referenced from:
_OBJC_METACLASS_$_LessonTableViewCell in LessonTableViewCell.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Any help will be highly appreciated. I can debug, build and archive my project, if i do it on actual device but not on simulator. I have added all these frameworks via cocapods and i am using Xcode 7.3.
I had faced the same error. Like below
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_AFJSONRequestSerializer", referenced from:
objc-class-ref in CuebiqSDK(BADispatcherHelper.o)
"_OBJC_CLASS_$_AFURLSessionManager", referenced from:
objc-class-ref in CuebiqSDK(BADispatcherHelper.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I haven't added the AFURLSessionManager related classes in my project as mentioned in error. So, I added all the AFNetworking classes solved the problem. Make sure they are added to project target and shown under Build phases->Compile Sources

Unity - using Fabric causes problems with iOS

We're using Fabric with Crashlytics in our Unity Game and after building the iOS project with Unity and starting in Xcode we get about 26 errors:
Undefined symbols for architecture armv7:
"_OBJC_CLASS_$_FABNetworkResponseHandler", referenced from:
objc-class-ref in Crashlytics(CLSNetworkClient.o)
"_OBJC_CLASS_$_CLSURLSession", referenced from:
objc-class-ref in Crashlytics(CLSNetworkClient.o)
"_OBJC_CLASS_$_FABCertificatePinner", referenced from:
objc-class-ref in Crashlytics(CLSNetworkClient.o)
"_FABGenerateUUID", referenced from:
-[CLSAnalyticsIdentifierGenerator generateSessionFragmentIdentifier] in Crashlytics(CLSAnalyticsIdentifierGenerator.o)
-[CLSAnalyticsIdentifierGenerator generateEventIdentifier] in Crashlytics(CLSAnalyticsIdentifierGenerator.o)
"_FABApplicationShouldReportDeviceIdentifiers", referenced from:
+[CLSAnalyticsMetadataController identifierForAdvertising] in Crashlytics(CLSAnalyticsMetadataController.o)
"_FABHostGetOSVersion", referenced from:
_CLSHostGetNormalizedOSVersion in Crashlytics(CLSHost.o)
"_FABApplicationInstallationSource", referenced from:
+[CLSBetaController isBetaSupported] in Crashlytics(CLSBetaController.o)
-[CLSBetaController appInstallationSource] in Crashlytics(CLSBetaController.o)
"_CLSMachOFormatVersion", referenced from:
_CLSBinaryImageRecordMainExecutable in Crashlytics(CLSBinaryImage.o)
"_FABHostGetNormalizedOSVersion", referenced from:
_CLSBetaToken in Crashlytics(CLSBetaToken.o)
"_OBJC_CLASS_$_FABURLBuilder", referenced from:
objc-class-ref in Crashlytics(CLSBetaController.o)
objc-class-ref in Crashlytics(CLSReportsController.o)
"_FABApplicationGetShortBundleVersion", referenced from:
___CLSContextInitialize_block_invoke26 in Crashlytics(CLSContext.o)
-[CLSBetaController appDisplayVersion] in Crashlytics(CLSBetaController.o)
+[CLSAnalyticsMetadataController bundleShortVersion] in Crashlytics(CLSAnalyticsMetadataController.o)
"_OBJC_CLASS_$_FABNetworkClient", referenced from:
objc-class-ref in Crashlytics(CLSBetaController.o)
objc-class-ref in Crashlytics(CLSAnalyticsNetworkingClient.o)
"_OBJC_CLASS_$_FABMultipartMimeStreamEncoder", referenced from:
objc-class-ref in Crashlytics(CLSAnalyticsNetworkingClient.o)
objc-class-ref in Crashlytics(CLSReportsController.o)
objc-class-ref in Crashlytics(CLSPackageReportOperation.o)
"_FABNetworkMaximumRetryCount", referenced from:
___51-[CLSBetaController loadUpdateWithCompletionBlock:]_block_invoke in Crashlytics(CLSBetaController.o)
-[CLSAnalyticsNetworkingClient transmitLogFilesAtURLs:toURL:withAPIKey:completionHandler:] in Crashlytics(CLSAnalyticsNetworkingClient.o)
"_OBJC_CLASS_$_CLSURLSessionConfiguration", referenced from:
objc-class-ref in Crashlytics(CLSNetworkClient.o)
"_OBJC_CLASS_$_CLSUserDefaults", referenced from:
objc-class-ref in Crashlytics(CLSAnalyticsController.o)
"_FABApplicationGetBundleVersion", referenced from:
___CLSContextInitialize_block_invoke26 in Crashlytics(CLSContext.o)
-[CLSBetaController appBuildVersion] in Crashlytics(CLSBetaController.o)
+[CLSAnalyticsMetadataController bundleVersion] in Crashlytics(CLSAnalyticsMetadataController.o)
"_FABEnumerateByteRangesOfNSDataUsingBlock", referenced from:
-[CLSPackageReportOperation compressData:toPath:] in Crashlytics(CLSPackageReportOperation.o)
"_FABApplicationGetName", referenced from:
-[CLSBetaUpdate promptMessage] in Crashlytics(CLSBetaUpdate.o)
"_FABSettingsAvailableNotification", referenced from:
-[CLSAnalyticsController initWithSessionIdentifier:sessionTimestamp:analyticsRootDirectoryWithURL:betaToken:identifierGenerator:timestampGenerator:metadataController:networkingClient:] in Crashlytics(CLSAnalyticsController.o)
-[CLSBetaController start] in Crashlytics(CLSBetaController.o)
"_FABApplicationGetBundleIdentifier", referenced from:
___30-[Answers startWithBetaToken:]_block_invoke in Crashlytics(Answers.o)
___CLSContextInitialize_block_invoke26 in Crashlytics(CLSContext.o)
-[CLSBetaController appBundleIdentifier] in Crashlytics(CLSBetaController.o)
-[CLSCrashReportingController bundleIdentifier] in Crashlytics(CLSCrashReportingController.o)
-[CLSFileManager pathNamespace] in Crashlytics(CLSFileManager.o)
+[CLSAnalyticsMetadataController bundleIdentifier] in Crashlytics(CLSAnalyticsMetadataController.o)
"_FABHostOSBuildVersion", referenced from:
___20-[Crashlytics start]_block_invoke in Crashlytics(Crashlytics.o)
_CLSHostRecord in Crashlytics(CLSHost.o)
+[CLSAnalyticsMetadataController hostOSVersion] in Crashlytics(CLSAnalyticsMetadataController.o)
"_FABHostModelInfo", referenced from:
___20-[Crashlytics start]_block_invoke in Crashlytics(Crashlytics.o)
_CLSHostRecord in Crashlytics(CLSHost.o)
+[CLSAnalyticsMetadataController hostModel] in Crashlytics(CLSAnalyticsMetadataController.o)
+[CLSAnalyticsMetadataController hostMachine] in Crashlytics(CLSAnalyticsMetadataController.o)
"_FABHostOSDisplayVersion", referenced from:
___20-[Crashlytics start]_block_invoke in Crashlytics(Crashlytics.o)
_CLSHostRecord in Crashlytics(CLSHost.o)
+[CLSAnalyticsMetadataController hostOSVersionName] in Crashlytics(CLSAnalyticsMetadataController.o)
"_FABBuiltinCertificates", referenced from:
+[CLSBetaController pinnnedCertificates] in Crashlytics(CLSBetaController.o)
+[CLSNetworkClient pinner] in Crashlytics(CLSNetworkClient.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Any idea how we can fix that issue? I checked the files in Unity and it seems everything is imported fine.
Fixed it somehow through reimporting the whole Fabric SDK in Unity - so deleting all files regarding Fabric and Crashlytics in the project and then importing Fabric again.

Resources