Cloned/renamed project xcodebuild archive created in previous named path

I created a new XCode project by cloning a working project and then changing the name from SafetyTalks to Insights everywhere I found it in the XCode interface. after doing so, everything built and was published without any issues many times. Several weeks later, when attempting to execute the following command:

xcodebuild -scheme ${scheme} archive -archivePath ${archiveFilePath}

in a script that has also been used successfully many times in the past is suddenly writing the archive to the path that includes the name of the other project. Finder instead of Insights. When the following command is executed:

xcodebuild -exportArchive -archivePath ${archiveFilePath} -exportPath ${exportsDirectory} -exportOptionsPlist scripts/ExportOptions.plist

I receive the following response:

2024-08-20 16:10:40.179 xcodebuild[91395:1849040] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path "/var/folders/c7/qf7lbb955yx4yd0w9wrwxfqjhyxryd/T/gov.ornl.finder.prod.intune_2024-08-20_16-10-40.177.xcdistributionlogs". error: exportArchive: "Insights.app" requires a provisioning profile.

Error Domain=IDEProvisioningErrorDomain Code=9 ""Insights.app" requires a provisioning profile." UserInfo={IDEDistributionIssueSeverity=3, NSLocalizedDescription="Insights.app" requires a provisioning profile., NSLocalizedRecoverySuggestion=Add a profile to the "provisioningProfiles" dictionary in your Export Options property list.}

** EXPORT FAILED **

mv: rename /Users/l4e/Mobile/Apps/Temp/Exports/insights.ipa to /Users/l4e/Mobile/Apps/Temp/Exports/gov.ornl.insights.prod.intune-1.0.0.3.ipa: No such file or directory cp: /Users/l4e/Mobile/Apps/Temp/Exports/gov.ornl.insights.prod.intune-1.0.0.3.ipa: No such file or directory cp: /Users/l4e/Mobile/Apps/Temp/Exports/gov.ornl.insights.prod.intune-1.0.0.3.ipa: No such file or directory

I have reviewed every single place within the XCode GUI and have not found the name Finder anywhere. I also had another developer review it together and still the name Finder was not found.

I have also cleaned the Build folder and have rebuilt it many times without success. What I think may happening is that somewhere there may be the Finder value that is written in a file that is inaccessible to the XCode GUI.

I have researched this and tried many suggested fixes but so far none have resolved it. All comments and suggestions are welcome.

Cloned/renamed project xcodebuild archive created in previous named path
 
 
Q