Linker command failed with exit code 1 - duplicate symbol __TMRbBp

前端 未结 15 2048
醉酒成梦
醉酒成梦 2020-12-25 10:43

Since I\'ve updated to Xcode 8.1 I can\'t archive and also not run in Release mode (in debug mode its working). The error is that there are several \"duplicate symbols for a

相关标签:
15条回答
  • 2020-12-25 10:55

    I had similar issues with Version 9.2 (9C40b), the solution is

    0) Close Xcode
    1) Open project folder in terminal
    2) pod update
    3) open .
    4) open project by clicking Project.xcworkspace
    
    0 讨论(0)
  • 2020-12-25 10:56

    close you project then open xcode go to file -> open search your project and open it . this worked for me

    0 讨论(0)
  • 2020-12-25 10:59

    I faced the same problem with archiving on Xcode 8.1.

    X Code Version: Version 8.2.1 (8C1002)

    The following fix worked on Mar 2019

    1) Go to Project & Select your Project

    2) Select Build Settings -

    Search for "Enable Bitcode" Set option as "NO"

    3) Most of version will fix this issue, for few other XCode version try this option also,

    Search for "Reflection Metadata Level" Set option as "NONE"

    0 讨论(0)
  • 2020-12-25 10:59

    Surprisingly, in some occasions, simply cleaning the product worked for me.

    • Product/Clean (Shift+Cmd+K)
    • Product/Clean Build Folder (Alt+Shift+Cmd+K)

    Quick fix to try before looking at other solutions.

    0 讨论(0)
  • 2020-12-25 10:59

    1.Close your project:Completely quit Xcode. 2.Go to your project location:there you will find two files in you root folder with varying extensions: Appname.xcodeproj and Appname.xcworkspace

    Now open your project by Double clicking on file with the extensions xcworkspace.(***Appname.xcworkspace*)**

    Yourproject will open in xcode. Now run your project again.

    If you pay close attention when installing your pods,firebase makes it clear to open your project with your-project.xcworkspace after installing pods firebaseIOS Setup

     $ cd your-project directory
     $ pod init
    

    Add to Podfile

    pod 'Firebase/Core'

    And finally:

        $ pod install
        $ open your-project.xcworkspace
    

    Dont forget to add firebase to your AppDelegate

    0 讨论(0)
  • 2020-12-25 10:59

    For those that can't get the Thorax's answer to work, what I did was I closed out Xcode, ran pod update on my command line and then reopened the .xcworkspace file. After doing that, I was able to build and run the project.

    I am using the Firebase Cocoapod and Xcode version 9.1.

    0 讨论(0)
提交回复
热议问题