GoogleSignIn和GoogleMobileVision的架构x86_64的重复符号

时间:2018-09-01 20:14:51

标签: ios swift cocoapods google-signin

不确定是否可以采取任何措施来解决此问题?

  

重复符号   _OBJC_IVAR _ $ _ MDMPasscodeCache._localAuthenticationInfo在:       /Users/USER_NAME/PROJECT/Pods/GoogleMobileVision/Detector/Frameworks/GoogleMobileVision.framework/GoogleMobileVision(MDMPasscodeCache_f189776e75765630b82721fafea64052.o)       /Users/USER_NAME/PROJECT/Pods/GoogleSignIn/Frameworks/GoogleSignIn.framework/GoogleSignIn(MDMPasscodeCache_42de90102bb6814d03833694aafcc99d.o)   重复符号_OBJC_IVAR _ $ _ MDMPasscodeCache._keychainInfo在:       /Users/USER_NAME/PROJECT/Pods/GoogleMobileVision/Detector/Frameworks/GoogleMobileVision.framework/GoogleMobileVision(MDMPasscodeCache_f189776e75765630b82721fafea64052.o)       /Users/USER_NAME/PROJECT/Pods/GoogleSignIn/Frameworks/GoogleSignIn.framework/GoogleSignIn(MDMPasscodeCache_42de90102bb6814d03833694aafcc99d.o)   重复符号_OBJC_IVAR _ $ _ MDMPasscodeCache._hasLocalAuthentication   在:       /Users/USER_NAME/PROJECT/Pods/GoogleMobileVision/Detector/Frameworks/GoogleMobileVision.framework/GoogleMobileVision(MDMPasscodeCache_f189776e75765630b82721fafea64052.o)       /Users/USER_NAME/PROJECT/Pods/GoogleSignIn/Frameworks/GoogleSignIn.framework/GoogleSignIn(MDMPasscodeCache_42de90102bb6814d03833694aafcc99d.o)   重复符号_OBJC_IVAR _ $ _ MDMPasscodeCache._has钥匙串位于:       /Users/USER_NAME/PROJECT/Pods/GoogleMobileVision/Detector/Frameworks/GoogleMobileVision.framework/GoogleMobileVision(MDMPasscodeCache_f189776e75765630b82721fafea64052.o)       /Users/USER_NAME/PROJECT/Pods/GoogleSignIn/Frameworks/GoogleSignIn.framework/GoogleSignIn(MDMPasscodeCache_42de90102bb6814d03833694aafcc99d.o)   重复符号_OBJC_IVAR _ $ _ MDMPasscodeCache._cachedState位于:       /Users/USER_NAME/PROJECT/Pods/GoogleMobileVision/Detector/Frameworks/GoogleMobileVision.framework/GoogleMobileVision(MDMPasscodeCache_f189776e75765630b82721fafea64052.o)       /Users/USER_NAME/PROJECT/Pods/GoogleSignIn/Frameworks/GoogleSignIn.framework/GoogleSignIn(MDMPasscodeCache_42de90102bb6814d03833694aafcc99d.o)   重复的符号_OBJC_IVAR _ $ _ MDMPasscodeCache._keychainExpireTime在:       /Users/USER_NAME/PROJECT/Pods/GoogleMobileVision/Detector/Frameworks/GoogleMobileVision.framework/GoogleMobileVision(MDMPasscodeCache_f189776e75765630b82721fafea64052.o)       /Users/USER_NAME/PROJECT/Pods/GoogleSignIn/Frameworks/GoogleSignIn.framework/GoogleSignIn(MDMPasscodeCache_42de90102bb6814d03833694aafcc99d.o)   重复符号_OBJC_CLASS _ $ _ MDMPasscodeCache在:       /Users/USER_NAME/PROJECT/Pods/GoogleMobileVision/Detector/Frameworks/GoogleMobileVision.framework/GoogleMobileVision(MDMPasscodeCache_f189776e75765630b82721fafea64052.o)       /Users/USER_NAME/PROJECT/Pods/GoogleSignIn/Frameworks/GoogleSignIn.framework/GoogleSignIn(MDMPasscodeCache_42de90102bb6814d03833694aafcc99d.o)   重复符号_OBJC_METACLASS _ $ _ MDMPasscodeCache在:       /Users/USER_NAME/PROJECT/Pods/GoogleMobileVision/Detector/Frameworks/GoogleMobileVision.framework/GoogleMobileVision(MDMPasscodeCache_f189776e75765630b82721fafea64052.o)       /Users/USER_NAME/PROJECT/Pods/GoogleSignIn/Frameworks/GoogleSignIn.framework/GoogleSignIn(MDMPasscodeCache_42de90102bb6814d03833694aafcc99d.o)   重复符号_OBJC_IVAR _ $ _ MDMPasscodeCache._hasEnteredBackground   在:       /Users/USER_NAME/PROJECT/Pods/GoogleMobileVision/Detector/Frameworks/GoogleMobileVision.framework/GoogleMobileVision(MDMPasscodeCache_f189776e75765630b82721fafea64052.o)       /Users/USER_NAME/PROJECT/Pods/GoogleSignIn/Frameworks/GoogleSignIn.framework/GoogleSignIn(MDMPasscodeCache_42de90102bb6814d03833694aafcc99d.o)   重复符号_OBJC_IVAR _ $ _ MDMPasscodeState._status位于:       /Users/USER_NAME/PROJECT/Pods/GoogleMobileVision/Detector/Frameworks/GoogleMobileVision.framework/GoogleMobileVision(MDMPasscodeState_d2697588db599ad1e82d46f342216cee.o)       /Users/USER_NAME/PROJECT/Pods/GoogleSignIn/Frameworks/GoogleSignIn.framework/GoogleSignIn(MDMPasscodeState_adbe96d99863168799049cc0f0164c6d.o)   重复符号_OBJC_IVAR _ $ _ MDMPasscodeState._info在:       /Users/USER_NAME/PROJECT/Pods/GoogleMobileVision/Detector/Frameworks/GoogleMobileVision.framework/GoogleMobileVision(MDMPasscodeState_d2697588db599ad1e82d46f342216cee.o)       /Users/USER_NAME/PROJECT/Pods/GoogleSignIn/Frameworks/GoogleSignIn.framework/GoogleSignIn(MDMPasscodeState_adbe96d99863168799049cc0f0164c6d.o)   重复符号_OBJC_CLASS _ $ _ MDMPasscodeState在:       /Users/USER_NAME/PROJECT/Pods/GoogleMobileVision/Detector/Frameworks/GoogleMobileVision.framework/GoogleMobileVision(MDMPasscodeState_d2697588db599ad1e82d46f342216cee.o)       /Users/USER_NAME/PROJECT/Pods/GoogleSignIn/Frameworks/GoogleSignIn.framework/GoogleSignIn(MDMPasscodeState_adbe96d99863168799049cc0f0164c6d.o)   重复符号_OBJC_METACLASS _ $ _ MDMPasscodeState在:       /Users/USER_NAME/PROJECT/Pods/GoogleMobileVision/Detector/Frameworks/GoogleMobileVision.framework/GoogleMobileVision(MDMPasscodeState_d2697588db599ad1e82d46f342216cee.o)       /Users/USER_NAME/PROJECT/Pods/GoogleSignIn/Frameworks/GoogleSignIn.framework/GoogleSignIn(MDMPasscodeState_adbe96d99863168799049cc0f0164c6d.o)   ld:架构x86_64 clang的13个重复符号:错误:链接器   命令失败,退出代码为1(使用-v查看调用)

2 个答案:

答案 0 :(得分:0)

最后,我能够通过修改文件来构建ios

  

google_sign_in.podspec

藏在以下目录中

  

/ Users /⁨peter/dev⁩▸⁨flutter⁩▸pub.pub-cache⁩▸⁨托管⁩▸   ⁨pub.dartlang.org⁩▸⁨google_sign_in-3.0.5⁩▸⁨ios⁩

s.dependency 'GoogleSignIn', '~> 4.1.2'

答案 1 :(得分:0)

这些命令可能有用。

More detail.

此问题仍然不时发生。 我通常要做的是在下面运行这些代码,然后使用flutter clean进行清理。 对于我来说,它是一个临时修复程序,因为我不知道如何永久修复它。

  cd ios/
  pod cache clean --all
  pod deintegrate --verbose
  pod setup --verbose
  pod install --verbose