1

For some reason twitterkit is in my project. I did not add it but I guess its part of another pod I have added. The issue im having is that it is giving me 43 errors.

It begins:

    Undefined symbols for architecture arm64:
  "_TWTRCoreOAuthSigningOAuthEchoHeaders", referenced from:
      -[TWTROAuthSigning OAuthEchoHeadersForRequestMethod:URLString:parameters:error:] in TwitterKit(TWTROAuthSigning.o)
  "_OBJC_CLASS_$_TWTRScribeService", referenced from:
      objc-class-ref in TwitterKit(Twitter.o)
  "_TWTRTwitterAuthenticatePath", referenced from:
      -[TWTRWebAuthenticationViewController initWithAuthenticationToken:authConfig:APIServiceConfig:forceLogin:] in TwitterKit(TWTRWebAuthenticationViewController.o)

...

    ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

How can I fix this?

My pods:

    pod 'Firebase'
pod 'Firebase/Firestore'
pod 'Firebase/Storage'
pod 'Firebase/Core'
pod 'Firebase/Auth'
pod 'Firebase/Database'
pod 'FirebaseUI'
pod 'SDWebImage'
pod 'Mapbox-iOS-SDK', '~> 4.9'
pod 'Firebase/Analytics'
pod 'Firebase/Messaging'
pod 'Nuke', '~> 7.0'

Before adding Nuke, there was no issue.

Update:

    pod 'SDWebImage' Seems to be the pod causing the issue: after remoiving it the errors were gone

What should I do?

Update 2:

After reinstalling SDWebImage the errors are still gone. I do not know what caused the errors.

4

1 回答 1

1

看起来像是 Cocoapods 本身的问题,而不是特定的 pod。它发生了。

  • 关闭 Xcode
  • pod install在终端执行
  • 通过 Build -> Clean 菜单项清理项目
  • 再次构建项目
  • 如果问题仍然存在,请更新 cocoapods 并重复上一个过程
于 2019-06-02T16:09:35.500 回答