attempted to initialize an object with an unknown UUID

前端 未结 12 1989
情深已故
情深已故 2021-02-03 22:31

I have taken SVN check-in for a project. Thereafter I have installed pod via terminal. After installation of pod there are few warning stating

    

相关标签:
12条回答
  • 2021-02-03 22:55

    This error happened to me after resolving some merge conflicts in the project file.

    In Xcode 11.4.1, I removed Pods_TARGETNAME.framework under Project Settings > General > Frameworks, Libraries, and Embedded Content.

    I then ran pod install, after which everything was fine again.

    0 讨论(0)
  • 2021-02-03 23:00

    The way I solved that is not described in the thread

    • Commented all pods and run pod install. Pods folder eventually removed. But still having the warning in the terminal

    • Uncommented the pod. re-run pod install. The warning is now gone.

    0 讨论(0)
  • 2021-02-03 23:00

    I don't know if you fixed this or not, but for future reference, I has the same issue.

    On my case, after opening .pbxproj file on a text editor, realised that the first UUID pointed to the 'Copy Bundle Resources' of the 'Build Phases'.

    Removing that and adding again fixed the issue for me.

    0 讨论(0)
  • 2021-02-03 23:02

    The reason that happened in my case was some developer updated a pod A while I installed a new pod B (without updated pod A). So when I merged his codes I got the warning.

    An easy way to fix this is to

    1. remove libPods.a from General->Linked Frameworks and libraries 
    2. run `pod install` or `pod update "an-existing-pod"` again. 
    

    For step #2 the purpose is to update .xcodeproj file not to install pod again. If pod is already there cocoapods will just update .xcodeproj file.

    0 讨论(0)
  • 2021-02-03 23:03

    Xcode 8 - 11

    Target > General > Linked Frameworks and Libraries

    0 讨论(0)
  • 2021-02-03 23:08

    Just run

    pod clean pod install.

    And those errors should go.

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