Libraries required to resolve firebase-crash linker issues when added manually - ios

Have added libs mentioned in Linking error on Firebase 3.7.0 for iOS Application but still I get below linker errors for adding firebase crash.
"_FIRLogError", referenced from:
-[FCRBreakpadController enableDebugger] in FirebaseCrash(FCRBreakpadController_bc3acad0fa3a54a5c7c331f54af621b0.o)
-[FCRBreakpadController startWithConfiguration:] in FirebaseCrash(FCRBreakpadController_bc3acad0fa3a54a5c7c331f54af621b0.o)
-[FCRBreakpadController createDirectory:] in FirebaseCrash(FCRBreakpadController_bc3acad0fa3a54a5c7c331f54af621b0.o)
+[FCRAnalytics messageDictionaryFromMessage:] in FirebaseCrash(FCRAnalytics_281d4dbe093b1d2a74ef0873d1ac6263.o)
-[FCRClient startWithConfiguration:error:] in FirebaseCrash(FCRClient_482ceec6b5943edbfb1d1dff6beb18f6.o)
-[FCRCrashDump crashInfoFromSystemMetadata:] in FirebaseCrash(FCRCrashDump_ee5f791af340383d1b426338c1150e39.o)
-[FCRUploadQueue initWithDirectory:maxSize:] in FirebaseCrash(FCRUploadQueue_2ce78e78dbb8f27676bd42e0302357a3.o)
... "_FIRLogInfo", referenced from:
-[FCRClient startWithConfiguration:error:] in FirebaseCrash(FCRClient_482ceec6b5943edbfb1d1dff6beb18f6.o)
___49-[FCRBulkUploader uploadFileFromQueue:onSuccess:]_block_invoke in
FirebaseCrash(FCRBulkUploader_af76d0815dcb863205f4ed96c30df68e.o)
"_GSDK_objc_getClass", referenced from:
_____GetFIRAnalyticsClass_block_invoke in FirebaseCrash(FCRAnalytics_281d4dbe093b1d2a74ef0873d1ac6263.o)
"_OBJC_CLASS_$_FIRApp", referenced from:
objc-class-ref in NFAppDelegate.o
objc-class-ref in FirebaseCrash(FCRClient_482ceec6b5943edbfb1d1dff6beb18f6.o)
"_OBJC_CLASS_$_FIRInstanceID", referenced from:
objc-class-ref in FirebaseCrash(FCRCrashUploader_810ae32cc5e6c7f23936333033b9ebd7.o)
"_OBJC_CLASS_$_GSDK_PBDescriptor", referenced from:
objc-class-ref in FirebaseCrash(Sdk.pb_8328b2bef1af4d0941a97cc98e810c6c.o)
"_OBJC_CLASS_$_GSDK_PBGeneratedMessage", referenced from:
_OBJC_CLASS_$_FCRMSGTimestamp in FirebaseCrash(Sdk.pb_8328b2bef1af4d0941a97cc98e810c6c.o)
_OBJC_CLASS_$_FCRMSGCrashReport in FirebaseCrash(Sdk.pb_8328b2bef1af4d0941a97cc98e810c6c.o)
_OBJC_CLASS_$_FCRMSGDevice in FirebaseCrash(Sdk.pb_8328b2bef1af4d0941a97cc98e810c6c.o)
_OBJC_CLASS_$_FCRMSGAndroidDevice in FirebaseCrash(Sdk.pb_8328b2bef1af4d0941a97cc98e810c6c.o)
_OBJC_CLASS_$_FCRMSGIOSDevice in FirebaseCrash(Sdk.pb_8328b2bef1af4d0941a97cc98e810c6c.o)
_OBJC_CLASS_$_FCRMSGApplication in FirebaseCrash(Sdk.pb_8328b2bef1af4d0941a97cc98e810c6c.o)
_OBJC_CLASS_$_FCRMSGAndroidApplication in FirebaseCrash(Sdk.pb_8328b2bef1af4d0941a97cc98e810c6c.o)
... "_OBJC_CLASS_$_GSDK_PBMutableArray", referenced from:
objc-class-ref in FirebaseCrash(FCRCrashDump_ee5f791af340383d1b426338c1150e39.o)
"_OBJC_CLASS_$_GSDK_PBRootObject", referenced from:
_OBJC_CLASS_$_FCRMSGSdkRoot in FirebaseCrash(Sdk.pb_8328b2bef1af4d0941a97cc98e810c6c.o)
"_OBJC_CLASS_$_GTMLogBasicFormatter", referenced from:
objc-class-ref in FirebaseCrash(FCRSystemLogger_6532fb37dc095ffa73463b57baf5fca7.o)
"_OBJC_CLASS_$_GTMLogNoFilter", referenced from:
objc-class-ref in FirebaseCrash(FCRSystemLogger_6532fb37dc095ffa73463b57baf5fca7.o)
"_OBJC_CLASS_$_GTMLogger", referenced from:
objc-class-ref in FirebaseCrash(FCRSystemLogger_6532fb37dc095ffa73463b57baf5fca7.o)
objc-class-ref in FirebaseCrash(uploader_089041b840f448492d858d7daf481e47.o)
"_OBJC_METACLASS_$_GSDK_PBGeneratedMessage", referenced from:
_OBJC_METACLASS_$_FCRMSGTimestamp in FirebaseCrash(Sdk.pb_8328b2bef1af4d0941a97cc98e810c6c.o)
_OBJC_METACLASS_$_FCRMSGCrashReport in FirebaseCrash(Sdk.pb_8328b2bef1af4d0941a97cc98e810c6c.o)
_OBJC_METACLASS_$_FCRMSGDevice in FirebaseCrash(Sdk.pb_8328b2bef1af4d0941a97cc98e810c6c.o)
_OBJC_METACLASS_$_FCRMSGAndroidDevice in FirebaseCrash(Sdk.pb_8328b2bef1af4d0941a97cc98e810c6c.o)
_OBJC_METACLASS_$_FCRMSGIOSDevice in FirebaseCrash(Sdk.pb_8328b2bef1af4d0941a97cc98e810c6c.o)
_OBJC_METACLASS_$_FCRMSGApplication in FirebaseCrash(Sdk.pb_8328b2bef1af4d0941a97cc98e810c6c.o)
_OBJC_METACLASS_$_FCRMSGAndroidApplication in FirebaseCrash(Sdk.pb_8328b2bef1af4d0941a97cc98e810c6c.o)
... "_OBJC_METACLASS_$_GSDK_PBRootObject", referenced from:
_OBJC_METACLASS_$_FCRMSGSdkRoot in FirebaseCrash(Sdk.pb_8328b2bef1af4d0941a97cc98e810c6c.o)
"_kFIRAppNameKey", referenced from:
___17+[FCRClient load]_block_invoke in FirebaseCrash(FCRClient_482ceec6b5943edbfb1d1dff6beb18f6.o)
"_kFIRAppReadyToConfigureSDKNotification", referenced from:
+[FCRClient load] in FirebaseCrash(FCRClient_482ceec6b5943edbfb1d1dff6beb18f6.o)
"_kFIRLoggerCrash", referenced from:
-[FCRBreakpadController enableDebugger] in FirebaseCrash(FCRBreakpadController_bc3acad0fa3a54a5c7c331f54af621b0.o)
-[FCRBreakpadController startWithConfiguration:] in FirebaseCrash(FCRBreakpadController_bc3acad0fa3a54a5c7c331f54af621b0.o)
-[FCRBreakpadController createDirectory:] in FirebaseCrash(FCRBreakpadController_bc3acad0fa3a54a5c7c331f54af621b0.o)
+[FCRAnalytics messageDictionaryFromMessage:] in FirebaseCrash(FCRAnalytics_281d4dbe093b1d2a74ef0873d1ac6263.o)
-[FCRClient startWithConfiguration:error:] in FirebaseCrash(FCRClient_482ceec6b5943edbfb1d1dff6beb18f6.o)
-[FCRCrashDump crashInfoFromSystemMetadata:] in FirebaseCrash(FCRCrashDump_ee5f791af340383d1b426338c1150e39.o)
___49-[FCRBulkUploader uploadFileFromQueue:onSuccess:]_block_invoke in
FirebaseCrash(FCRBulkUploader_af76d0815dcb863205f4ed96c30df68e.o)
... ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see
invocation)
Have set framework search path and library search path as below

try cocoapods manager:
pod 'Firebase', '~> 3.9'
it could simply fix all of your wrong dependcies.
https://cocoapods.org/pods/Firebase
or check readme.md file:
you have to add all these libs:
"(~> X)" below means that the SDK requires all of the frameworks from
X. You should make sure to include all of the frameworks from X when
including the SDK.
Analytics
FirebaseAnalytics.framework
FirebaseCore.framework
FirebaseInstanceID.framework
GoogleInterchangeUtilities.framework
GoogleSymbolUtilities.framework
GoogleToolboxForMac.framework
Crash (~> Analytics)
FirebaseCrash.framework

Related

vision-camera-code-scanner Undefined symbols for architecture x86_64 react native

I am getting a build error when using the vision-camera-code-scanner package for my react native project.
The short hand error is:
Undefined symbols for architecture x86_64
The full error is the following:
ld: warning: ignoring file /XXXXXXXXXXXXXXXXXXX/Build/Products/Debug-iphonesimulator/vision-camera-code-scanner/libvision-camera-code-scanner.a, building for iOS Simulator-x86_64 but attempting to link with file built for iOS Simulator-arm64
Undefined symbols for architecture x86_64:
Undefined symbols for architecture x86_64:
"_GPBClearOneof", referenced from:
_MLKITx_EPTFlagValue_ClearValueOneOfCase in MLKitCommon(FlagValues.pbobjc.o)
_MLKITx_PHENORegistrationInfo_ClearPackageVersionOneOfCase in MLKitCommon(RegistrationInfo.pbobjc.o)
_MLKITx_PHENORegistrationInfo_ClearApplicationInfoOneOfCase in MLKitCommon(RegistrationInfo.pbobjc.o)
_MLKITx_CLCCCounter_ClearCounterIdOneOfCase in MLKitCommon(Counters.pbobjc.o)
"_GULLogBasic", referenced from:
_MLKLog in MLKitCommon(MLKLogger.o)
"_OBJC_CLASS_$_GDTCORTransport", referenced from:
objc-class-ref in MLKitCommon(MLKFirelogTransport.o)
"_OBJC_CLASS_$_GPBCodedOutputStream", referenced from:
objc-class-ref in MLKitCommon(CCTLogOutputStream.o)
"_OBJC_CLASS_$_GPBDescriptor", referenced from:
objc-class-ref in MLKitCommon(Experiments.pbobjc.o)
objc-class-ref in MLKitCommon(Metalog.pbobjc.o)
objc-class-ref in MLKitCommon(FlatFile.pbobjc.o)
objc-class-ref in MLKitCommon(Clientanalytics.pbobjc.o)
objc-class-ref in MLKitCommon(FirebaseMlSdk.pbobjc.o)
objc-class-ref in MLKitCommon(UploaderState.pbobjc.o)
objc-class-ref in MLKitCommon(DeviceExperimentIds.pbobjc.o)
...
"_OBJC_CLASS_$_GPBEnumArray", referenced from:
objc-class-ref in MLKitBarcodeScanning
objc-class-ref in MLKitVision(GMVLogger.o)
"_OBJC_CLASS_$_GPBEnumDescriptor", referenced from:
objc-class-ref in MLKitCommon(Experiments.pbobjc.o)
objc-class-ref in MLKitCommon(FlatFile.pbobjc.o)
objc-class-ref in MLKitCommon(Clientanalytics.pbobjc.o)
objc-class-ref in MLKitCommon(FirebaseMlSdk.pbobjc.o)
objc-class-ref in MLKitCommon(Barhopper.pbobjc.o)
objc-class-ref in MLKitCommon(IosAccessibilityState.pbobjc.o)
objc-class-ref in MLKitCommon(PhenotypeLog.pbobjc.o)
...
"_OBJC_CLASS_$_GPBFileDescriptor", referenced from:
objc-class-ref in MLKitCommon(Experiments.pbobjc.o)
objc-class-ref in MLKitCommon(Metalog.pbobjc.o)
objc-class-ref in MLKitCommon(FlatFile.pbobjc.o)
objc-class-ref in MLKitCommon(Clientanalytics.pbobjc.o)
objc-class-ref in MLKitCommon(FirebaseMlSdk.pbobjc.o)
objc-class-ref in MLKitCommon(UploaderState.pbobjc.o)
objc-class-ref in MLKitCommon(DeviceExperimentIds.pbobjc.o)
...
"_OBJC_CLASS_$_GPBInt32Array", referenced from:
objc-class-ref in MLKitCommon(CCTClearcutLogEvent.o)
"_OBJC_CLASS_$_GPBMessage", referenced from:
_OBJC_CLASS_$_MLKITx_EXHParam in MLKitCommon(Experiments.pbobjc.o)
_OBJC_CLASS_$_MLKITx_EXHParam_ExtensionValue in MLKitCommon(Experiments.pbobjc.o)
_OBJC_CLASS_$_MLKITx_EXHDeviceAccount in MLKitCommon(Experiments.pbobjc.o)
_OBJC_CLASS_$_MLKITx_EXHScope in MLKitCommon(Experiments.pbobjc.o)
_OBJC_CLASS_$_MLKITx_EXHParamPartition in MLKitCommon(Experiments.pbobjc.o)
_OBJC_CLASS_$_MLKITx_EXHCrossAppDescriptor in MLKitCommon(Experiments.pbobjc.o)
_OBJC_CLASS_$_MLKITx_EXHConfigurationTier in MLKitCommon(Experiments.pbobjc.o)
...
"_OBJC_CLASS_$_GPBRootObject", referenced from:
_OBJC_CLASS_$_MLKITx_EXHExperimentsRoot in MLKitCommon(Experiments.pbobjc.o)
_OBJC_CLASS_$_MLKITx_CADPMetalogRoot in MLKitCommon(Metalog.pbobjc.o)
_OBJC_CLASS_$_MLKITx_EPIFlatFileRoot in MLKitCommon(FlatFile.pbobjc.o)
_OBJC_CLASS_$_MLKITx_CADPClientanalyticsRoot in MLKitCommon(Clientanalytics.pbobjc.o)
_OBJC_CLASS_$_MLKITx_FBMLFirebaseMlSdkRoot in MLKitCommon(FirebaseMlSdk.pbobjc.o)
_OBJC_CLASS_$_MLKITx_CCTUploaderStateRoot in MLKitCommon(UploaderState.pbobjc.o)
_OBJC_CLASS_$_MLKITx_EXHDeviceExperimentIdsRoot in MLKitCommon(DeviceExperimentIds.pbobjc.o)
...
"_OBJC_CLASS_$_GTMLogMininumLevelFilter", referenced from:
objc-class-ref in MLKitCommon(GIPLoggingReroutingGTMLogger.o)
"_OBJC_CLASS_$_GTMLogger", referenced from:
objc-class-ref in MLKitCommon(PHTInternalHeterodyneSyncer.o)
objc-class-ref in MLKitCommon(PHTHeterodyneSyncer.o)
objc-class-ref in MLKitCommon(GIPPseudonymousIDStore.o)
objc-class-ref in MLKitCommon(CCTLogOutputStream.o)
objc-class-ref in MLKitCommon(CCTClearcutUploader.o)
objc-class-ref in MLKitCommon(CCTClearcutMetaLogger.o)
objc-class-ref in MLKitCommon(CCTClearcutFileUtility.o)
...
"_OBJC_CLASS_$_GTMSessionCookieStorage", referenced from:
objc-class-ref in MLKitCommon(CCTClearcutUploader.o)
"_OBJC_CLASS_$_GTMSessionFetcher", referenced from:
objc-class-ref in MLKitCommon(CCTClearcutUploader.o)
"_OBJC_CLASS_$_GTMSessionFetcherService", referenced from:
objc-class-ref in MLKitCommon(PHTFlatFilePhenotype.o)
objc-class-ref in MLKitCommon(MLKModelDownloader.o)
objc-class-ref in MLKitVision(GMVCloudVisionClient.o)
"_OBJC_CLASS_$_GULCCComponent", referenced from:
objc-class-ref in MLKitCommon(MLKCustomModelManager.o)
"_OBJC_CLASS_$_GULCCComponentContainer", referenced from:
objc-class-ref in MLKitCommon(MLKContext.o)
objc-class-ref in MLKitCommon(MLKCustomModelManager.o)
"_OBJC_CLASS_$_GULCCComponentType", referenced from:
objc-class-ref in MLKitCommon(MLKModelManager.o)
objc-class-ref in MLKitCommon(MLKContext.o)
objc-class-ref in MLKitCommon(MLKCustomModelManager.o)
"_OBJC_CLASS_$_GULUserDefaults", referenced from:
objc-class-ref in MLKitCommon(MLKModelPreferencesManager.o)
objc-class-ref in MLKitCommon(MLKAnalyticsLogger.o)
objc-class-ref in MLKitCommon(MLKModelDownloader.o)
"_OBJC_CLASS_$_RCTBridge", referenced from:
objc-class-ref in AppDelegate.o
"_OBJC_CLASS_$_RCTBundleURLProvider", referenced from:
objc-class-ref in AppDelegate.o
"_OBJC_METACLASS_$_GPBMessage", referenced from:
_OBJC_METACLASS_$_MLKITx_EXHParam in MLKitCommon(Experiments.pbobjc.o)
_OBJC_METACLASS_$_MLKITx_EXHParam_ExtensionValue in MLKitCommon(Experiments.pbobjc.o)
_OBJC_METACLASS_$_MLKITx_EXHDeviceAccount in MLKitCommon(Experiments.pbobjc.o)
_OBJC_METACLASS_$_MLKITx_EXHScope in MLKitCommon(Experiments.pbobjc.o)
_OBJC_METACLASS_$_MLKITx_EXHParamPartition in MLKitCommon(Experiments.pbobjc.o)
_OBJC_METACLASS_$_MLKITx_EXHCrossAppDescriptor in MLKitCommon(Experiments.pbobjc.o)
_OBJC_METACLASS_$_MLKITx_EXHConfigurationTier in MLKitCommon(Experiments.pbobjc.o)
...
"_OBJC_METACLASS_$_GPBRootObject", referenced from:
_OBJC_METACLASS_$_MLKITx_EXHExperimentsRoot in MLKitCommon(Experiments.pbobjc.o)
_OBJC_METACLASS_$_MLKITx_CADPMetalogRoot in MLKitCommon(Metalog.pbobjc.o)
_OBJC_METACLASS_$_MLKITx_EPIFlatFileRoot in MLKitCommon(FlatFile.pbobjc.o)
_OBJC_METACLASS_$_MLKITx_CADPClientanalyticsRoot in MLKitCommon(Clientanalytics.pbobjc.o)
_OBJC_METACLASS_$_MLKITx_FBMLFirebaseMlSdkRoot in MLKitCommon(FirebaseMlSdk.pbobjc.o)
_OBJC_METACLASS_$_MLKITx_CCTUploaderStateRoot in MLKitCommon(UploaderState.pbobjc.o)
_OBJC_METACLASS_$_MLKITx_EXHDeviceExperimentIdsRoot in MLKitCommon(DeviceExperimentIds.pbobjc.o)
...
"_OBJC_METACLASS_$_GTMLogger", referenced from:
_OBJC_METACLASS_$_MLKITx_GIPLoggingReroutingGTMLogger in MLKitCommon(GIPLoggingReroutingGTMLogger.o)
"_RCTAppSetupDefaultRootView", referenced from:
-[AppDelegate application:didFinishLaunchingWithOptions:] in AppDelegate.o
"_RCTAppSetupPrepareApp", referenced from:
-[AppDelegate application:didFinishLaunchingWithOptions:] in AppDelegate.o
"_kGTMSessionFetcherStatusDomain", referenced from:
___91-[MLKITx_PHTInternalHeterodyneSyncer syncHoldingLockWithSyncedScopes:fetchReason:callback:]_block_invoke in MLKitCommon(PHTInternalHeterodyneSyncer.o)
___150-[MLKITx_PHTHeterodyneSyncer batchSyncWithAccounts:syncedScopes:fetchReason:throttlingCache:heterodyneSyncInfo:accountToAuthToken:lastError:callback:]_block_invoke in MLKitCommon(PHTHeterodyneSyncer.o)
___69-[MLKModelDownloader beginModelDownloadWithURL:modelInfo:conditions:]_block_invoke.285 in MLKitCommon(MLKModelDownloader.o)
___63-[MLKITx_GMVCloudVisionClient initWithCloudUri:apiKey:options:]_block_invoke in MLKitVision(GMVCloudVisionClient.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 have tried to fix the issue by running: pod deintegrate && pod cache clean --all and then pod install in the ios directory as per the following similar question.
Sadly this didnt fix the issue i also tried the steps suggested in the following thread: namely excluding the target arm64. But this also didnt fix the error.
I also read the following on this github thread:
It's related to the fact that Google MLKit Team does not ship ARM simulator binaries and we can't compile ourselves because the source code is not public
So now i am a bit lost what to do.
Any help or suggestions greatly appreciated.
Working on mac book pro M1 14 inch
running latest version of react native
If additional information is needed please let me know so i can add it to the question.
You have to exclude arm64 from your pod file by following these steps:
Add this to your pod file:
post_install do |installer|
react_native_post_install(installer)
installer.pods_project.build_configurations.each do |config|
config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"
end
end
Make sure to use this flipper version in your pod file:
use_flipper!({'Flipper' => '0.79.0'})
Then, clean your pods and reinstalled them:
rm -rf ~/Library/Caches/CocoaPods && rm -rf ./ios/Pods && rm -rf ~/Library/Developer/Xcode/DerivedData/* && pod deintegrate && pod setup && npx pod-install
As per my findings on this topic, Google MLKit does not support arm64 yet (found it when trying an option to import it through SPM on an iOS project). The only way to build this on an M1 machine is to run the entire project on x86_64 compatiblity using Rosetta 2. However, running Xcode in compatibility mode is not a supported configuration by Apple, so there could be other errors with this choice.

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

Installing ScoutMaps SDKTools via CocoaPods with use_frameworks

I have a Swift app that is using Alamofire and SwiftyJSON in addition to the two ScoutMaps pods.
Currently I have Alamofire and SwiftyJSON included manually and ScoutMaps installed via Cocoapods, but I'd like to switch to include them via Cocoapods as well. To do this I will need to enable the use_frameworks! flag in the podfile. However, this causes
My new podfile looks like this:
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!
pod 'ScoutMaps-iOS-SDK'
pod 'ScoutMaps-iOS-SDKTools'
pod 'Alamofire'
pod 'SwiftyJSON'
However, when I try to build the app I receive the following error
SKTDownloadObjectHelper.m:8:9: 'AFNetworking.h' file not found with <angled> include; use "quotes" instead
Editing that file to use either "AFNetworking.h" or <AFNetworking/AFNetworking.h> then causes a cascade of Linker errors:
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_AFHTTPRequestSerializer", referenced from:
objc-class-ref in SKTDownloadObjectHelper.o
"_OBJC_CLASS_$_AFNetworkReachabilityManager", referenced from:
objc-class-ref in SKTDownloadManager.o
"_OBJC_CLASS_$_SKAdvisorSettings", referenced from:
objc-class-ref in SKTNavigationManager+Factories.o
"_OBJC_CLASS_$_SKAnimationSettings", referenced from:
objc-class-ref in SKTNavigationManager+UI.o
"_OBJC_CLASS_$_SKAnnotation", referenced from:
objc-class-ref in SKTNavigationManager+UI.o
"_OBJC_CLASS_$_SKMapView", referenced from:
objc-class-ref in SKTNavigationManager+Styles.o
"_OBJC_CLASS_$_SKMapViewStyle", referenced from:
objc-class-ref in SKTNavigationConfiguration.o
"_OBJC_CLASS_$_SKMapsService", referenced from:
objc-class-ref in SKTDownloadManager+Additions.o
objc-class-ref in SKTDownloadObjectHelper.o
"_OBJC_CLASS_$_SKNavigationSettings", referenced from:
objc-class-ref in SKTNavigationManager.o
"_OBJC_CLASS_$_SKPositionerService", referenced from:
objc-class-ref in SKTNavigationManager+BackgroundMode.o
objc-class-ref in SKTNavigationManager+Factories.o
objc-class-ref in SKTNavigationManager+NavigationState.o
objc-class-ref in SKTNavigationManager+UI.o
objc-class-ref in SKTNavigationManager.o
objc-class-ref in SKTNavigationUtils.o
"_OBJC_CLASS_$_SKReverseGeocoderService", referenced from:
objc-class-ref in SKTNavigationUtils.o
"_OBJC_CLASS_$_SKRouteSettings", referenced from:
objc-class-ref in SKTNavigationManager+Factories.o
"_OBJC_CLASS_$_SKRoutingService", referenced from:
objc-class-ref in SKTNavigationManager+BackgroundMode.o
objc-class-ref in SKTNavigationManager+NavigationState.o
objc-class-ref in SKTNavigationManager+Settings.o
objc-class-ref in SKTNavigationManager+Styles.o
objc-class-ref in SKTNavigationManager+UI.o
objc-class-ref in SKTNavigationManager.o
"_OBJC_CLASS_$_SKTrailSettings", referenced from:
objc-class-ref in SKTNavigationManager.o
"_OBJC_CLASS_$_SKVisualAdviceConfiguration", referenced from:
objc-class-ref in SKTNavigationManager+Factories.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
For now I've reverted back to the old way of doing things, but has anybody got any suggestions for getting ScoutMaps-iOS-SDKTools to play ball with use_frameworks?

Fabric and Digits pods failing workspace in Xcode 7 and Swift 2.0

I updated to Xcode 7 and fixed the necessary code (syntax) changes for Swift 2.0. I updated my Podfile with these 2 entries:
pod 'Fabric'
pod 'Digits'
and now see many build errors (pasted below). Any ideas?
I ran sudo gem install cocoapods to update my Cocoapods, and then ran pod install and pod update in order to install 'Fabric' and 'Digits' pods.
Note: Prior to updating to Xcode 7, my project, which uses Digits, was building and working correctly!
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_FABJLObjectDeserializer", referenced from:
objc-class-ref in DigitsKit(DGTUserNetworking.o)
objc-class-ref in DigitsKit(DGTAuthNetworking.o)
"_OBJC_CLASS_$_FABJLObjectSerializer", referenced from:
objc-class-ref in DigitsKit(DGTAuthNetworking.o)
"_OBJC_CLASS_$_TFSScribe", referenced from:
objc-class-ref in DigitsKit(Digits.o)
"_OBJC_CLASS_$_TWTRAPIResponseValidator", referenced from:
objc-class-ref in DigitsKit(DGTNetworkingHelper.o)
"_OBJC_CLASS_$_TWTRAuthConfig", referenced from:
objc-class-ref in DigitsKit(Digits.o)
"_OBJC_CLASS_$_TWTRColorUtil", referenced from:
objc-class-ref in DigitsKit(DGTAppearance.o)
"_OBJC_CLASS_$_TWTRCoreLanguage", referenced from:
objc-class-ref in DigitsKit(DGTAuthNetworking.o)
"_OBJC_CLASS_$_TWTRDictUtil", referenced from:
objc-class-ref in DigitsKit(DGTLogInAuthConfiguration.o)
objc-class-ref in DigitsKit(DGTDeviceRegisterConfiguration.o)
"_OBJC_CLASS_$_TWTRGuestSessionRefreshStrategy", referenced from:
objc-class-ref in DigitsKit(Digits.o)
"_OBJC_CLASS_$_TWTRKeychainWrapper", referenced from:
objc-class-ref in DigitsKit(DGTSessionMigrator.o)
"_OBJC_CLASS_$_TWTRNetworkingPipeline", referenced from:
objc-class-ref in DigitsKit(DGTNetworkingHelper.o)
"_OBJC_CLASS_$_TWTRResourcesUtil", referenced from:
objc-class-ref in DigitsKit(DGTURLSessionConfig.o)
objc-class-ref in DigitsKit(DGTResourcesUtil.o)
"_OBJC_CLASS_$_TWTRScribeClientEventNamespace", referenced from:
objc-class-ref in DigitsKit(DGTScribeEventLogger.o)
"_OBJC_CLASS_$_TWTRScribeEvent", referenced from:
objc-class-ref in DigitsKit(DGTScribeEventLogger.o)
"_OBJC_CLASS_$_TWTRScribeService", referenced from:
objc-class-ref in DigitsKit(Digits.o)
"_OBJC_CLASS_$_TWTRSessionStore", referenced from:
objc-class-ref in DigitsKit(Digits.o)
"_OBJC_CLASS_$_TWTRURLSessionDelegate", referenced from:
objc-class-ref in DigitsKit(DGTNetworkingHelper.o)
"_OBJC_CLASS_$_TWTRUserSessionVerifier", referenced from:
objc-class-ref in DigitsKit(DGTSessionVerifier.o)
"_OBJC_CLASS_$_TWTRUtils", referenced from:
objc-class-ref in DigitsKit(DGTAuthViewController.o)
objc-class-ref in DigitsKit(DGTConfirmSignUpViewController.o)
objc-class-ref in DigitsKit(DGTConfirmLogInViewController.o)
objc-class-ref in DigitsKit(DGTUploadContactsViewController.o)
objc-class-ref in DigitsKit(Digits.o)
objc-class-ref in DigitsKit(DGTConfirmViewController.o)
objc-class-ref in DigitsKit(DGTContacts.o)
...
"_OBJC_CLASS_$_TwitterNetworking", referenced from:
objc-class-ref in DigitsKit(DGTUserNetworking.o)
objc-class-ref in DigitsKit(DGTContactsNetworking.o)
objc-class-ref in DigitsKit(DGTAuthNetworking.o)
"_TWTRAPIURLWithPath", referenced from:
-[DGTUserNetworking verifyUser:completion:] in DigitsKit(DGTUserNetworking.o)
-[DGTOAuthSigning OAuthEchoHeadersToVerifyCredentialsWithParams:] in DigitsKit(DGTOAuthSigning.o)
-[DGTContactsNetworking uploadContactVCards:completion:] in DigitsKit(DGTContactsNetworking.o)
-[DGTContactsNetworking lookupContactMatchesWithCursor:completion:] in DigitsKit(DGTContactsNetworking.o)
-[DGTContactsNetworking destroyAllContactsWithCompletion:] in DigitsKit(DGTContactsNetworking.o)
-[DGTAuthNetworking registerDeviceWithPhoneNumber:withVerificationType:completion:] in DigitsKit(DGTAuthNetworking.o)
-[DGTAuthNetworking confirmAccountWithPhoneNumber:confirmationNumber:completion:] in DigitsKit(DGTAuthNetworking.o)
...
"_TWTRCoreOAuthSigningOAuthEchoHeaders", referenced from:
-[DGTOAuthSigning OAuthEchoHeadersForRequestMethod:URLString:parameters:error:] in DigitsKit(DGTOAuthSigning.o)
"_TWTRCoreVersion", referenced from:
+[Digits assertValidTwitterCoreVersion] in DigitsKit(Digits.o)
"_TWTRNetworkingErrorDomain", referenced from:
-[DGTAuthViewController startLogInProcessWithVerificationType:] in DigitsKit(DGTAuthViewController.o)
-[DGTConfirmSignUpViewController startSignUpProcess] in DigitsKit(DGTConfirmSignUpViewController.o)
-[DGTConfirmLogInViewController startLogInProcess] in DigitsKit(DGTConfirmLogInViewController.o)
-[DGTPinCodeFormViewController startVerifyPINCode] in DigitsKit(DGTPinCodeFormViewController.o)
"_TWTRNetworkingUserAgentHeaderKey", referenced from:
+[DGTURLSessionConfig defaultAdditionalHeaders] in DigitsKit(DGTURLSessionConfig.o)
"_TWTRScribeClientEventNamespaceEmptyValue", referenced from:
-[DGTScribeViewEventLogger viewDidShow] in DigitsKit(DGTScribeViewEventLogger.o)
-[DGTScribeViewEventLogger viewDidSucceed] in DigitsKit(DGTScribeViewEventLogger.o)
-[DGTScribeViewEventLogger didShowFailureView] in DigitsKit(DGTScribeViewEventLogger.o)
-[DGTScribeViewEventLogger errorDidOccurWithCode:] in DigitsKit(DGTScribeViewEventLogger.o)
+[DGTScribeViewEventLogger scribeViewNameWithScribeView:] in DigitsKit(DGTScribeViewEventLogger.o)
+[DGTScribeEventLogger digitsUniquesImpressionNamespace] in DigitsKit(DGTScribeEventLogger.o)
+[DGTScribeEventLogger digitsImpressionNamespace] in DigitsKit(DGTScribeEventLogger.o)
...
"_TWTRScribeEventImpressionClient", referenced from:
+[DGTScribeEventLogger digitsEventNamespaceWithComponent:element:action:] in DigitsKit(DGTScribeEventLogger.o)
"_TWTRScribeEventImpressionPage", referenced from:
+[DGTScribeEventLogger digitsEventNamespaceWithComponent:element:action:] in DigitsKit(DGTScribeEventLogger.o)
"_TWTRScribeEventUniquesClient", referenced from:
+[DGTScribeEventLogger digitsUniquesImpressionNamespace] in DigitsKit(DGTScribeEventLogger.o)
"_TWTRUserSessionVerifierDefaultDelay", referenced from:
-[DGTSessionVerifier startVerification] in DigitsKit(DGTSessionVerifier.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 think the problem is that you haven't included 'TwitterCore' into the pod file:
pod 'Fabric'
pod 'Digits'
pod 'TwitterCore'

Cocoapods ld: symbol(s) not found for architecture armv7s

After updating my pods and xcode, I've come across problems in the last phase of the build process (linking). I've tried switching up the architectures as well as setting the build active architecture to on and off, but it doesn't seem to be doing anything.
Undefined symbols for architecture arm64:
"_OBJC_CLASS_$_SRWebSocket", referenced from:
objc-class-ref in BLYClient.o
"_OBJC_CLASS_$_Reachability", referenced from:
objc-class-ref in BLYClient.o
"_kReachabilityChangedNotification", referenced from:
-[BLYClient initWithAppKey:delegate:hostName:] in BLYClient.o
"_OBJC_CLASS_$_FBRequestConnection", referenced from:
objc-class-ref in LCAccountRegistrationViewController.o
"_OBJC_CLASS_$_FBSession", referenced from:
objc-class-ref in LCAccountRegistrationViewController.o
"_OBJC_CLASS_$_JASidePanelController", referenced from:
_OBJC_CLASS_$_LCMainRevealController in LCMainRevealController.o
"_OBJC_CLASS_$_SEEPhoneNumberFormatter", referenced from:
objc-class-ref in LCPhoneFormatter.o
"_OBJC_CLASS_$_SKInnerShadowLayer", referenced from:
objc-class-ref in LCInnerShadowView.o
"_OBJC_CLASS_$_AFHTTPClient", referenced from:
_OBJC_CLASS_$_LCHTTPClient in LCHTTPClient.o
"_OBJC_METACLASS_$_JASidePanelController", referenced from:
_OBJC_METACLASS_$_LCMainRevealController in LCMainRevealController.o
"_OBJC_CLASS_$_BITHockeyManager", referenced from:
objc-class-ref in LCAppDelegate.o
"_OBJC_CLASS_$_AFNetworkActivityIndicatorManager", referenced from:
objc-class-ref in LCHTTPClient.o
"_OBJC_CLASS_$_Lockbox", referenced from:
objc-class-ref in LCKey.o
objc-class-ref in LCSettings.o
"_OBJC_CLASS_$_AFHTTPRequestOperation", referenced from:
objc-class-ref in LCApi+Internal.o
"_OBJC_CLASS_$_AFHTTPRequestOperationLogger", referenced from:
objc-class-ref in LCAppDelegate.o
"_OBJC_CLASS_$_AFJSONRequestOperation", referenced from:
objc-class-ref in LCHTTPClient.o
"_OBJC_METACLASS_$_AFHTTPClient", referenced from:
_OBJC_METACLASS_$_LCHTTPClient in LCHTTPClient.o
"_OBJC_CLASS_$_RHDisplayLinkStepper", referenced from:
objc-class-ref in LCLockSwipeView.o
objc-class-ref in LCLockUpdatingProgressView.o
"_OBJC_CLASS_$_MagicalRecord", referenced from:
objc-class-ref in LCAppDelegate.o
objc-class-ref in LCApi+Locks.o
objc-class-ref in LCApi+Keys.o
objc-class-ref in LCBTLockScanner.o
objc-class-ref in LCBTLockForegroundScanner.o
objc-class-ref in LCBTLock.o
objc-class-ref in LCRootViewController.o
...
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Any ideas?
I just had the same issue. The "Other Linker Flags" was overriding the flags from CocoaPods. In fact I got a warning about it-
[!] The `sftest [Debug]` target overrides the `OTHER_LDFLAGS` build setting defined in `Pods/Target Support Files/Pods-sftest/Pods-sftest.debug.xcconfig'. This can lead to problems with the CocoaPods installation
- Use the `$(inherited)` flag, or
- Remove the build settings from the target.
Changing "Other Linker Flags" to $(inherited) did indeed solve the problem.

Resources