Error with POD Firebase and can't upload to App Store Connect

This error not appear in Xcode 14.3.1 but appear in Xcode 15 BETA 5.

POD Firebase

Error (Xcode): DT_TOOLCHAIN_DIR cannot be used to evaluate LIBRARY_SEARCH_PATHS, use TOOLCHAIN_DIR instead

And if I erase the Pod, The app run, but I can't upload to App Store Connect appear this error in both versions (14.3.1) (15.0 BETA 5)

Happened to me in beta 5. Not happening in beta 4

post_install do |installer|
  installer.aggregate_targets.each do |target|
    target.xcconfigs.each do |variant, xcconfig|
      xcconfig_path = target.client_root + target.xcconfig_relative_path(variant)
      IO.write(xcconfig_path, IO.read(xcconfig_path).gsub("DT_TOOLCHAIN_DIR", "TOOLCHAIN_DIR"))
    end
  end
  installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
      if config.base_configuration_reference.is_a? Xcodeproj::Project::Object::PBXFileReference
        xcconfig_path = config.base_configuration_reference.real_path
        IO.write(xcconfig_path, IO.read(xcconfig_path).gsub("DT_TOOLCHAIN_DIR", "TOOLCHAIN_DIR"))
      end
    end
  end
end

This has been fixed in CocoaPods - https://github.com/CocoaPods/CocoaPods/pull/12009 - but not yet released. It should appear in the 1.13.0 version.

You can point to the latest CocoaPods version in your Gemfile until then.

This fixed the problem and jumped into another, but not sure if related.

`Cycle inside xyzApp; building could produce unreliable results.
Cycle details:
→ Target 'xyzApp': ExtractAppIntentsMetadata
○ Target 'xyzApp' has copy command from '/Users/user/Library/Developer/Xcode/DerivedData/xyzApp-ffxviuznvqodqscbwhcgaupcpbif/Build/Products/TargetDebug-watchsimulator/xyz App.app' to '/Users/user/Library/Developer/Xcode/DerivedData/xyzApp-ffxviuznvqodqscbwhcgaupcpbif/Build/Products/TargetDebug-iphonesimulator/xyz App.app/Watch/xyz App.app'
○ Target 'xyzApp' has copy command from '/Users/user/Library/Developer/Xcode/DerivedData/xyzApp-ffxviuznvqodqscbwhcgaupcpbif/Build/Products/TargetDebug-iphonesimulator/xyzAppWidgetExtension.appex' to '/Users/user/Library/Developer/Xcode/DerivedData/xyzApp-ffxviuznvqodqscbwhcgaupcpbif/Build/Products/TargetDebug-iphonesimulator/xyz App.app/PlugIns/xyzAppWidgetExtension.appex'
○ That command depends on command in Target 'xyzApp': script phase “Set default username and password”
○ Target 'xyzApp' has process command with output '/Users/user/Library/Developer/Xcode/DerivedData/xyzApp-ffxviuznvqodqscbwhcgaupcpbif/Build/Products/TargetDebug-iphonesimulator/xyz App.app/Info.plist'
○ Target 'xyzApp' has copy command from '/Users/user/Library/Developer/Xcode/DerivedData/xyzApp-ffxviuznvqodqscbwhcgaupcpbif/Build/Products/TargetDebug-iphonesimulator/xyzAppWidgetExtension.appex' to '/Users/user/Library/Developer/Xcode/DerivedData/xyzApp-ffxviuznvqodqscbwhcgaupcpbif/Build/Products/TargetDebug-iphonesimulator/xyz App.app/PlugIns/xyzAppWidgetExtension.appex'


Raw dependency cycle trace:

target:  ->

node: <all> ->

command: <all> ->

node: /Users/xyz/Library/Developer/Xcode/DerivedData/xyzApp-ffxviuznvqodqscbwhcgaupcpbif/Build/Intermediates.noindex/xyzApp.build/TargetDebug-iphonesimulator/xyzApp.build/Objects-normal/x86_64/ExtractedAppShortcutsMetadata.stringsdata ->

command: P0:target-xyzApp-b53d15cf652f342f8429c5e93fe72471f5ac11a3b4ae31140b3c6198159b2307-:TargetDebug:ExtractAppIntentsMetadata ->

node: <target-xyzApp-b53d15cf652f342f8429c5e93fe72471f5ac11a3b4ae31140b3c6198159b2307--fused-phase10-copy-files> ->

command: P0:::Gate target-xyzApp-b53d15cf652f342f8429c5e93fe72471f5ac11a3b4ae31140b3c6198159b2307--fused-phase10-copy-files ->

node: <Copy /Users/user/Library/Developer/Xcode/DerivedData/xyzApp-ffxviuznvqodqscbwhcgaupcpbif/Build/Products/TargetDebug-iphonesimulator/xyz App.app/Watch/xyz App.app> ->

command: P0:target-xyzApp-b53d15cf652f342f8429c5e93fe72471f5ac11a3b4ae31140b3c6198159b2307-:TargetDebug:Copy /Users/user/Library/Developer/Xcode/DerivedData/xyzApp-ffxviuznvqodqscbwhcgaupcpbif/Build/Products/TargetDebug-iphonesimulator/xyz App.app/Watch/xyz App.app /Users/user/Library/Developer/Xcode/DerivedData/xyzApp-ffxviuznvqodqscbwhcgaupcpbif/Build/Products/TargetDebug-watchsimulator/xyz App.app ->

node: <target-xyzApp-b53d15cf652f342f8429c5e93fe72471f5ac11a3b4ae31140b3c6198159b2307--fused-phase9--cp--copy-pods-resources> ->

command: P0:::Gate target-xyzApp-b53d15cf652f342f8429c5e93fe72471f5ac11a3b4ae31140b3c6198159b2307--fused-phase9--cp--copy-pods-resources ->

node: /Users/user/Library/Developer/Xcode/DerivedData/xyzApp-ffxviuznvqodqscbwhcgaupcpbif/Build/Intermediates.noindex/xyzApp.build/TargetDebug-iphonesimulator/xyzApp.build/Script-800176C3321250496FF611CF.sh ->

command: P2:target-xyzApp-b53d15cf652f342f8429c5e93fe72471f5ac11a3b4ae31140b3c6198159b2307-:TargetDebug:WriteAuxiliaryFile /Users/user/Library/Developer/Xcode/DerivedData/xyzApp-ffxviuznvqodqscbwhcgaupcpbif/Build/Intermediates.noindex/xyzApp.build/TargetDebug-iphonesimulator/xyzApp.build/Script-800176C3321250496FF611CF.sh ->

node: <target-xyzApp-b53d15cf652f342f8429c5e93fe72471f5ac11a3b4ae31140b3c6198159b2307--fused-phase8--cp--embed-pods-frameworks> ->

command: P0:::Gate target-xyzApp-b53d15cf652f342f8429c5e93fe72471f5ac11a3b4ae31140b3c6198159b2307--fused-phase8--cp--embed-pods-frameworks ->

node: /Users/user/Library/Developer/Xcode/DerivedData/xyzApp-ffxviuznvqodqscbwhcgaupcpbif/Build/Intermediates.noindex/xyzApp.build/TargetDebug-iphonesimulator/xyzApp.build/Script-987FF1E1B83FBA94DE258B95.sh ->

command: P2:target-xyzApp-b53d15cf652f342f8429c5e93fe72471f5ac11a3b4ae31140b3c6198159b2307-:TargetDebug:WriteAuxiliaryFile /Users/user/Library/Developer/Xcode/DerivedData/xyzApp-ffxviuznvqodqscbwhcgaupcpbif/Build/Intermediates.noindex/xyzApp.build/TargetDebug-iphonesimulator/xyzApp.build/Script-987FF1E1B83FBA94DE258B95.sh ->

node: <target-xyzApp-b53d15cf652f342f8429c5e93fe72471f5ac11a3b4ae31140b3c6198159b2307--fused-phase7-copy-files> ->

command: P0:::Gate target-xyzApp-b53d15cf652f342f8429c5e93fe72471f5ac11a3b4ae31140b3c6198159b2307--fused-phase7-copy-files ->

node: <Copy /Users/user/Library/Developer/Xcode/DerivedData/xyzApp-ffxviuznvqodqscbwhcgaupcpbif/Build/Products/TargetDebug-iphonesimulator/xyz App.app/PlugIns/xyzAppWidgetExtension.appex> ->

CYCLE POINT ->

command: P0:target-xyzApp-b53d15cf652f342f8429c5e93fe72471f5ac11a3b4ae31140b3c6198159b2307-:TargetDebug:Copy /Users/user/Library/Developer/Xcode/DerivedData/xyzApp-ffxviuznvqodqscbwhcgaupcpbif/Build/Products/TargetDebug-iphonesimulator/xyz App.app/PlugIns/xyzAppWidgetExtension.appex /Users/user/Library/Developer/Xcode/DerivedData/xyzApp-ffxviuznvqodqscbwhcgaupcpbif/Build/Products/TargetDebug-iphonesimulator/xyzAppWidgetExtension.appex ->

node: <target-xyzApp-b53d15cf652f342f8429c5e93fe72471f5ac11a3b4ae31140b3c6198159b2307--fused-phase6-firebase-configuration-setup> ->

command: P0:::Gate target-xyzApp-b53d15cf652f342f8429c5e93fe72471f5ac11a3b4ae31140b3c6198159b2307--fused-phase6-firebase-configuration-setup ->

node: /Users/user/Library/Developer/Xcode/DerivedData/xyzApp-ffxviuznvqodqscbwhcgaupcpbif/Build/Intermediates.noindex/xyzApp.build/TargetDebug-iphonesimulator/xyzApp.build/Script-DAA09EBF1D64447500990DB8.sh ->

command: P2:target-xyzApp-b53d15cf652f342f8429c5e93fe72471f5ac11a3b4ae31140b3c6198159b2307-:TargetDebug:WriteAuxiliaryFile /Users/user/Library/Developer/Xcode/DerivedData/xyzApp-ffxviuznvqodqscbwhcgaupcpbif/Build/Intermediates.noindex/xyzApp.build/TargetDebug-iphonesimulator/xyzApp.build/Script-DAA09EBF1D64447500990DB8.sh ->

node: <target-xyzApp-b53d15cf652f342f8429c5e93fe72471f5ac11a3b4ae31140b3c6198159b2307--fused-phase5-copy-settings-bundle> ->

command: P0:::Gate target-xyzApp-b53d15cf652f342f8429c5e93fe72471f5ac11a3b4ae31140b3c6198159b2307--fused-phase5-copy-settings-bundle ->

node: /Users/user/Library/Developer/Xcode/DerivedData/xyzApp-ffxviuznvqodqscbwhcgaupcpbif/Build/Intermediates.noindex/xyzApp.build/TargetDebug-iphonesimulator/xyzApp.build/Script-F120DAFA1F838F90006304B3.sh ->

To fix this temporarily until CocoaPods was update, you can replace DT_TOOLCHAIN_DIR with TOOLCHAIN_DIR in the Firebase related files with the .xcconfig extension, this worked for me

Hi @Anastasiiaq, I manually made changes in both the Firebase debug file and Firebase release file, but unfortunately, it is not working.

sudo gem install cocoapods then pod update Worked for me

Error with POD Firebase and can't upload to App Store Connect
 
 
Q