Pod GTMAppAuth and AppAuth together causes Archive issues: Multiple commands produce....
I have the following in my Podfile
target 'Claritist' do
use_frameworks!
# pod 'KMNavigationBarTransition'
pod 'FontAwesome.swift'
pod 'Eureka'
pod 'PDTSimpleCalendar', '~> 0.9.1'
pod 'SimpleImageViewer', :git => 'https://github.com/aFrogleap/SimpleImageViewer.git'
pod 'SwiftDate'
pod 'AFDateHelper'
pod 'BadgeSwift', '~> 7.0'
pod 'CallbackURLKit'
pod 'GoogleAPIClientForREST/Gmail'
pod 'GTMAppAuth'
pod 'AppAuth'
pod 'FTLinearActivityIndicator'
pod 'Down'
pod "MarkdownKit"
end
Build and run in simulator, everything is fine, until I try to do an "Archive", then I get the following error:
Multiple commands produce '/Users/supermonk/Library/Developer/Xcode/DerivedData/Claritist-hfetowswkdbjyygxvccgxsiufuhk/Build/Intermediates.noindex/ArchiveIntermediates/Claritist/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/AppAuth.framework':
1) Target 'AppAuth-Core' has create directory command with output '/Users/supermonk/Library/Developer/Xcode/DerivedData/Claritist-hfetowswkdbjyygxvccgxsiufuhk/Build/Intermediates.noindex/ArchiveIntermediates/Claritist/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/AppAuth.framework'
2) Target 'AppAuth' has create directory command with output '/Users/supermonk/Library/Developer/Xcode/DerivedData/Claritist-hfetowswkdbjyygxvccgxsiufuhk/Build/Intermediates.noindex/ArchiveIntermediates/Claritist/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/AppAuth.framework'
The AppAuth-Core comes from GTMAppAuth, and I am not sure which library is the one I should be filing bug against!
- 1
Any solution?
This looks like an instance of CocoaPods/CocoaPods#8206, some potential workarounds are mentioned in the comments.
@WilliamDenniss @petea I am also facing issue with archiving:
target 'MainProject' do project './MainProject.xcodeproj'
pod 'AppAuth', '1.3.0' pod 'GoogleWebRTC', '~> 1.1.27442'
target 'MainProjectTests' do inherit! :search_paths # Pods for testing end end
target 'MainProjectShare' do project './MainProject.xcodeproj' pod 'AppAuth/Core', '1.3.0' end
Error is:
Build system information
error: Multiple commands produce '/Users/ankitthakur/Library/Developer/Xcode/DerivedData/MainProjectWorkspace-bcqvtlhwdhvbmnfieiwygdwonztl/Build/Intermediates.noindex/ArchiveIntermediates/MainProject/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/AppAuth.framework':
1) Target 'AppAuth' has create directory command with output '/Users/ankitthakur/Library/Developer/Xcode/DerivedData/MainProjectWorkspace-bcqvtlhwdhvbmnfieiwygdwonztl/Build/Intermediates.noindex/ArchiveIntermediates/MainProject/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/AppAuth.framework'
2) Target 'AppAuth-Core' has create directory command with output '/Users/ankitthakur/Library/Developer/Xcode/DerivedData/MainProjectWorkspace-bcqvtlhwdhvbmnfieiwygdwonztl/Build/Intermediates.noindex/ArchiveIntermediates/MainProject/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/AppAuth.framework'
@ankitthakur did you find a solution for this? I have the same issue...