43

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

    <PBXResourcesBuildPhase UUID=...> attempted to initialise an 
    object with an unknown UUID.

Screenshot for warning What might be reason? Is this warning critical?

Ted
  • 22,696
  • 11
  • 95
  • 109
Jayprakash Dubey
  • 35,723
  • 18
  • 170
  • 177

13 Answers13

63

Step 1: Deintegrate your project from CocoaPods. Removing all traces of CocoaPods from your Xcode project.

$pod deintegrate ProjectName.XCODEPROJ

Step 2: Install the pod Again

$pod install

Make sure you are replacing ProjectName.XCODEPROJ with your project name.

Kousik
  • 21,485
  • 7
  • 36
  • 59
48

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.

Reyansh Mishra
  • 1,879
  • 1
  • 14
  • 26
Qiulang
  • 10,295
  • 11
  • 80
  • 129
37

Xcode 8 - 14

Target > General > Linked Frameworks and Libraries

PBXResourcesBuildPhase

Ted
  • 22,696
  • 11
  • 95
  • 109
  • 2
    After much brainstorming, this fix worked for me!! The pod project file does not have any errors now. – iosCurator Feb 21 '17 at 07:20
  • 2
    Also fixed the issue for me. Xcode automatically adds the Pods back to the Linked Frameworks and Libraries, so deleting it purely fixed the pod warning for me. – Florensvb Mar 04 '17 at 12:57
6

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.

Ankur Lahiry
  • 2,253
  • 1
  • 15
  • 25
4

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.

Undrea
  • 494
  • 5
  • 7
3

Just run

pod clean pod install.

And those errors should go.

Avinash
  • 4,304
  • 1
  • 23
  • 18
3

My colleague and I spent hours trying to figure out how to fix a similar error:

[!] `<PBXBuildFile UUID=`050DCB84CE258104B4E8C808`>` attempted to initialize an object with an unknown UUID. `12B87A081D0745C6D77F7885` for attribute: `file_ref`. This can be the result of a merge and the unknown UUID is being discarded.

What fixed it for us:

  1. identify the file that the "unknown UUID" referred to, in the .pbxproj file; in our case, it was libPods-<TARGET_NAME>.a
  2. find that file in the file browser in XCode
  3. delete the file within XCode
  4. rerun pod install
Ben Wheeler
  • 6,788
  • 2
  • 45
  • 55
2

It still happens from time to time to me. My solution is to search after the unknown UUID in your project file and simply delete all lines you'll find.

Terminal-command:

cat YOUR_PROCJECT_NAME.xcodeproj/project.pbxproj | grep 'UNKNOWN_UUID'

You should find something like this:

UNKNOWN_UUID /* (null) in Resources */,
Apoc
  • 797
  • 1
  • 10
  • 15
  • This was my fix. A file had been removed from the project, but a stray reference was still in the project.pbxproj. Manually deleted the line – John May 22 '20 at 15:55
1

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.

Adri
  • 530
  • 2
  • 8
1

I commented out all pods and did "pod install" then uncommented all pods to previous state and did "pod install". That solved my problem

Aleksandar
  • 76
  • 4
0

For my case, I re-run pod install and find this warnings aren't showing. This is due to merging the project file.

Ankur Lahiry
  • 2,253
  • 1
  • 15
  • 25
0

There could also be problem with multiple xcode version installations. Try this link for more details -

https://www.ryadel.com/en/xcode-sdk-iphoneos-cannot-be-located-mac-osx-error-fix/

Soman Dubey
  • 3,798
  • 4
  • 22
  • 32
0

Open xprj file in ordinary editor and find file with your UID = "C39D10ED1BD5F1F0000C4DD9". In my case file does not exist and left from merge process

Leonif
  • 466
  • 4
  • 17