Cocoapods – Generated duplicate UUIDs

I recently added another target to my Podfile to support tvOS. Here is an example of what the Podfile looks like:

source ‘https://github.com/CocoaPods/Specs.git’
use_frameworks!

target ‘AppiOS’ do
platform :ios, ‘9.0’
pod ‘AFNetworking’, ‘3.0.0-beta.1’
end

target ‘AppTV’ do
platform :tvos, ‘9.0’
pod ‘AFNetworking’, ‘3.0.0-beta.1’
end

I got this really long error complaining of duplicate UUIDS. Here is a shortened version:

[!] [Xcodeproj] Generated duplicate UUIDs:

PBXFileReference —
…. /Products/AFNetworking.framework

From what I understand, this deterministic UUIDs is a harmless warning and can be disabled by running the following command in the terminal. Then run pod install again.

$ export COCOAPODS_DISABLE_DETERMINISTIC_UUIDS=YES