Flutter:生成ios错误:ld:架构x86_64

时间:2018-09-17 09:13:29

标签: ios flutter

在添加Geolocator插件遇到一些麻烦之后无法正常工作。我从pubspec.yaml中删除了Geolocator,但是现在该项目无法为ios构建。 我尝试了2天没有成功,包括:

  1. 更改Flutter频道
  2. 扑扑升级
  3. 吊舱解体
  4. 删除xcode项目文件
  5. 添加了'config.build_settings ['SWIFT_VERSION'] ='4.1'
  6. 还有很多我现在不记得了。

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

现在,我不知道如何解决此问题。

更新: 现在,在删除并重新安装CocoaPods之后出现新错误:

分析依赖性 从Flutter获取.symlinks/flutter/ios的podspec 从cloud_firestore获取.symlinks/plugins/cloud_firestore/ios的podspec 从connectivity获取.symlinks/plugins/connectivity/ios的podspec 从firebase_admob获取.symlinks/plugins/firebase_admob/ios的podspec 从firebase_analytics获取.symlinks/plugins/firebase_analytics/ios的podspec 从firebase_auth获取.symlinks/plugins/firebase_auth/ios的podspec 从firebase_core获取.symlinks/plugins/firebase_core/ios的podspec 从firebase_messaging获取.symlinks/plugins/firebase_messaging/ios的podspec 从firebase_storage获取.symlinks/plugins/firebase_storage/ios的podspec 从flutter_native_image获取.symlinks/plugins/flutter_native_image/ios的podspec 从google_sign_in获取.symlinks/plugins/google_sign_in/ios的podspec 从image_picker获取.symlinks/plugins/image_picker/ios的podspec 从native_device_orientation获取.symlinks/plugins/native_device_orientation/ios的podspec 从package_info获取.symlinks/plugins/package_info/ios的podspec 从path_provider获取.symlinks/plugins/path_provider/ios的podspec 从qr_mobile_vision获取.symlinks/plugins/qr_mobile_vision/ios的podspec 从share获取.symlinks/plugins/share/ios的podspec 从url_launcher获取.symlinks/plugins/url_launcher/ios的podspec [!] CocoaPods找不到Pod“ Firebase / AdMob”的兼容版本:   在Podfile中:     firebase_admob(来自.symlinks/plugins/firebase_admob/ios)已解析为0.0.1,具体取决于       Firebase / AdMob

找到了满足Firebase/AdMob依赖性的规范,但是它们需要更高的最低部署目标。 CocoaPods找不到Pod“ GoogleUtilities / AppDelegateSwizzler”的兼容版本:   在Podfile中:     firebase_admob(来自.symlinks/plugins/firebase_admob/ios)已解析为0.0.1,具体取决于       Firebase / AdMob已解决为5.8.0,具体取决于         Firebase / Core(= 5.8.0)已解析为5.8.0,具体取决于           FirebaseAnalytics(= 5.1.2)已解析为5.1.2,具体取决于             GoogleUtilities / AppDelegateSwizzler(〜> 5.2.0)

找到了满足GoogleUtilities/AppDelegateSwizzler (~> 5.2.0)依赖性的规范,但是它们需要更高的最低部署目标。 CocoaPods找不到Pod“ gRPC-Core”的兼容版本:   在Podfile中:     cloud_firestore(来自.symlinks/plugins/cloud_firestore/ios)已解析为0.0.1,具体取决于       Firebase / Firestore已解决为5.8.0,具体取决于         FirebaseFirestore(= 0.13.3)已解析为0.13.3,具体取决于           gRPC-C ++(〜> 0.0.3)已解析为0.0.3,具体取决于             gRPC-C ++ / Implementation(= 0.0.3)已解析为0.0.3,具体取决于               gRPC-Core(= 1.14.0)

cloud_firestore (from `.symlinks/plugins/cloud_firestore/ios`) was resolved to 0.0.1, which depends on
  Firebase/Firestore was resolved to 5.8.0, which depends on
    FirebaseFirestore (= 0.13.3) was resolved to 0.13.3, which depends on
      gRPC-ProtoRPC (~> 1.0) was resolved to 1.14.1, which depends on
        gRPC-ProtoRPC/Main (= 1.14.1) was resolved to 1.14.1, which depends on
          gRPC (= 1.14.1) was resolved to 1.14.1, which depends on
            gRPC/Main (= 1.14.1) was resolved to 1.14.1, which depends on
              gRPC-Core (= 1.14.1)

0 个答案:

没有答案