<PBXResourcesBuildPhase UUID=..> attempted to initialize an object with an unknown UUID
Asked Answered
W

13

45

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?

Wernsman answered 13/4, 2016 at 11:41 Comment(0)
I
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.

Illiberal answered 22/8, 2016 at 12:53 Comment(0)
M
73

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.

Megohm answered 6/9, 2017 at 12:57 Comment(2)
This worked for me and was significantly easier than messing around with linked frameworks and libraries.Egestion
This is the right way to make CocoaPods regenerate the project. This should be the accepted answer.Hate
I
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.

Illiberal answered 22/8, 2016 at 12:53 Comment(0)
U
39

Xcode 8 - 14

Target > General > Linked Frameworks and Libraries

PBXResourcesBuildPhase

Umbilical answered 20/12, 2016 at 4:54 Comment(2)
After much brainstorming, this fix worked for me!! The pod project file does not have any errors now.Leandra
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.Udine
R
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.

Ricoricochet answered 12/7, 2020 at 14:12 Comment(0)
E
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.

Elora answered 17/6, 2020 at 19:1 Comment(0)
J
3

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 */,
Judicial answered 23/1, 2019 at 11:9 Comment(1)
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 lineSelimah
E
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
Erikaerikson answered 3/8, 2020 at 16:49 Comment(0)
B
2

Just run

pod clean pod install.

And those errors should go.

Branham answered 3/3, 2020 at 8:49 Comment(1)
Using Cocoapods 1.10.1 it says [!] Unknown command: clean; how do you have this command ?Tweedsmuir
R
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.

Recto answered 29/6, 2016 at 13:16 Comment(0)
Y
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

Yellowweed answered 3/9, 2020 at 6:59 Comment(0)
H
1

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

Hannon answered 4/10, 2022 at 8:44 Comment(0)
R
0

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

Ricoricochet answered 17/1, 2019 at 9:28 Comment(0)
B
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/

Beaston answered 13/5, 2020 at 8:26 Comment(1)
Nope...this problem has got nothing to do with multiple versions of Xcode.Wernsman

© 2022 - 2024 — McMap. All rights reserved.