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?
Related
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.
I keep getting these errors as I try to build my project:
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_FBSDKAccessToken", referenced from:
objc-class-ref in MESignInViewController.o
objc-class-ref in MEFacebookLoginManager.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_$_FBSDKGraphRequest", referenced from:
objc-class-ref in MEFacebookLoginManager.o
"_OBJC_CLASS_$_FBSDKLoginButton", referenced from:
objc-class-ref in AppDelegate.o
"_OBJC_CLASS_$_FBSDKLoginManager", referenced from:
objc-class-ref in MEFacebookLoginManager.o
"_OBJC_CLASS_$_PFAnalytics", referenced from:
objc-class-ref in AppDelegate.o
"_OBJC_CLASS_$_Parse", referenced from:
objc-class-ref in AppDelegate.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've installed the Facebook and Parse SDK via cocoapods, here's what my Podfile looks like:
target 'Ment' do
pod 'Parse'
pod 'ParseFacebookUtilsV4'
end
target 'MentTests' do
end
Any idea what's wrong, this is really bugging me
I'm pretty sure you have to add the facebook pods as well if you're using the facebook login.
# facebook
pod 'FBSDKCoreKit'
pod 'FBSDKLoginKit'
and optionally
pod 'FBSDKShareKit'
To get everything running smoothly, make sure you've followed the instructions parse have for integrating with facebook.
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'
I m using pods to link libraries like AfNetworking, facebook etc. and its working great in release mode but I want to check Variables value by debugging but it shows all the variables nil in release mode. I tried to run in debug mode by editing schema but it failed to compile showing various libraries not found error.
Edit I have tried updating the architectures.....but this isn't helping out.
Error log in debug mode
ld: warning: directory not found for option '-L/Users/madept/Desktop/personally/Pods/build/Debug-iphoneos'
ld: warning: ignoring file /Users/madept/Desktop/personally/libCloudinary.a, missing required architecture x86_64 in file /Users/madept/Desktop/personally/libCloudinary.a (3 slices)
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_AFHTTPRequestOperation", referenced from:
objc-class-ref in ZRAPIClient.o
"_OBJC_CLASS_$_AFHTTPRequestSerializer", referenced from:
objc-class-ref in ZRAPIClient.o
"_OBJC_CLASS_$_AFJSONResponseSerializer", referenced from:
objc-class-ref in ZRAPIClient.o
"_OBJC_CLASS_$_BITHockeyManager", referenced from:
objc-class-ref in ZRAppDelegate.o
"_OBJC_CLASS_$_CLCloudinary", referenced from:
objc-class-ref in ZRMediaManager.o
"_OBJC_CLASS_$_CLTransformation", referenced from:
objc-class-ref in ZRMediaManager.o
"_OBJC_CLASS_$_DDFileLogger", referenced from:
objc-class-ref in Zooplr.o
"_OBJC_CLASS_$_DDLog", referenced from:
objc-class-ref in Chat.o
objc-class-ref in ZRManagedObject.o
objc-class-ref in ZRTelescopingScrollView.o
objc-class-ref in ZRAddMessageBarController.o
objc-class-ref in ZRCreateAccountViewController.o
objc-class-ref in ZRAddressBookHelper.o
objc-class-ref in Zooplr.o
...
"_OBJC_CLASS_$_DDTTYLogger", referenced from:
objc-class-ref in Zooplr.o
"_OBJC_CLASS_$_ELCAlbumPickerController", referenced from:
objc-class-ref in ZRMediaCaptureController.o
"_OBJC_CLASS_$_ELCImagePickerController", referenced from:
objc-class-ref in ZRMediaCaptureController.o
"_OBJC_CLASS_$_EZAudioPlotGL", referenced from:
objc-class-ref in ZRMediaCaptureController.o
"_OBJC_CLASS_$_EZMicrophone", referenced from:
objc-class-ref in ZRMediaCaptureController.o
"_OBJC_CLASS_$_EZRecorder", referenced from:
objc-class-ref in ZRMediaCaptureController.o
"_OBJC_CLASS_$_FBAppCall", referenced from:
objc-class-ref in ZRAppDelegate.o
"_OBJC_CLASS_$_FBErrorUtility", referenced from:
objc-class-ref in ZRSocialClient.o
"_OBJC_CLASS_$_FBRequest", referenced from:
objc-class-ref in ZRSocialClient.o
"_OBJC_CLASS_$_FBRequestConnection", referenced from:
objc-class-ref in ZRSocialClient.o
"_OBJC_CLASS_$_FBSession", referenced from:
objc-class-ref in ZRAppDelegate.o
objc-class-ref in ZRSocialClient.o
"_OBJC_CLASS_$_Mixpanel", referenced from:
objc-class-ref in ZRAnalyticsTracker.o
objc-class-ref in Zooplr.o
"_OBJC_CLASS_$_Reachability", referenced from:
objc-class-ref in Zooplr.o
"_OBJC_CLASS_$_SSKeychain", referenced from:
objc-class-ref in ZRAuthManager.o
"_OBJC_CLASS_$_SVProgressHUD", referenced from:
objc-class-ref in ZRAccountEditViewController.o
objc-class-ref in ZRAppDelegate.o
"_OBJC_CLASS_$_SocketIO", referenced from:
objc-class-ref in ZRChatSocketClient.o
"_OBJC_CLASS_$_TTTAttributedLabel", referenced from:
objc-class-ref in ZRBubbleViewTextMessage.o
"_kReachabilityChangedNotification", referenced from:
-[ZRAppDelegate application:didFinishLaunchingWithOptions:] in ZRAppDelegate.o
-[ZRChatSocketClient init] in ZRChatSocketClient.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 or suggestion would be appreciated.
if the above answer didn't work for you, maybe the problem comes from when you installed the pods. Check if you had such message when running pod install
The ProjectName [Release] target overrides the OTHER_LDFLAGS build setting defined in `Pods/Target Support Files/ProjectName/Pods-ProjectName.release.xcconfig'. This can lead to problems with the CocoaPods installation
or a similar message but with debug instead of release (or both).
If so, delete the pod project in your workspace in Xcode, then follow the answer to this question The target ... overrides the `OTHER_LDFLAGS` build setting defined in `Pods/Pods.xcconfig, I past it here :
This definitely works most of the time:
Go to your target Build Settings -> Other linker flags -> double click . Add $(inherited) to a new line.
And then run pod install again. It did it for me.
This means static libraries that you're using do not support x86_64 architecture,
So
Open "Build Settings" for "Pods" target, and add "x86_64" architecture (in "Architectures" and "Valid Architectures" section).
Set "Build Active Architectures Only" to "NO".
Clean "Pods" target.
Build your target.
Delete the .a files in /Users/YourName/Library/Developer/Xcode/DerivedData/YourProject/Build/Products/Debug-iphoneos. Then clean and build.This help me.
What worked for me is adding $(inherited) to:
OTHER_LDFLAGS
OTHER_CFLAGS
FRAMEWORK_SEARCH_PATHS
GCC_PREPROCESSOR_DEFINITIONS
Tip: Inside Build Settings -> (search bar) -> type options above and add $(inherited)
I had deleted the .a file, it won't worked for me, but when I Deleted the Project Folder in /Users/YourName/Library/Developer/Xcode/DerivedData/YourProject.
This help me.
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.