When attempting to run a build script that is currently working for several other projects, the export fails and the IDEDistribution.verbose.log (see below) suggestion is to add a profile to the Export Options property list but as can be seen in the ExportOptions.plist text (see below), there is a profile for each of the three builds.
XCode 16.0
MacOS 14.7
IDEDistribution.verbose.log below
2024-10-28 12:20:30 +0000 [MT] Step failed: <IDEDistributionSigningAssetsStep: 0x60000146e840>: Error Domain=IDEDistributionSigningAssetStepErrorDomain Code=0 "Locating signing assets failed." UserInfo={NSLocalizedDescription=Locating signing assets failed., IDEDistributionUnderlyingErrors=(
"Error Domain=IDEProvisioningErrorDomain Code=9 ""QuickDelegateTestApp.app" requires a provisioning profile." UserInfo={IDEDistributionIssueSeverity=3, NSLocalizedDescription="QuickDelegateTestApp.app" requires a provisioning profile., NSLocalizedRecoverySuggestion=Add a profile to the "provisioningProfiles" dictionary in your Export Options property list.}"
)}
ExportOptions.plist below
Post
Replies
Boosts
Views
Activity
I have a small example project that ran on both the simulator and a connected iPhone but now it and all other projects are failing with the same error. I am using Xcode 16.0 on MacOS Sonoma 14.6.1., iPhone 11 with iOS 18. Thank you in advance.
The error is:
Failed to resolve host network app id to config: bundleID: com.apple.WebKit.Networking instance ID: Optional([_EXExtensionInstanceIdentifier: 1163B5D2-09D3-4704-9564-61099502138B])
WebContent process (0x114018680) took 1.375772 seconds to launch
GPU process (0x1140a0630) took 1.228457 seconds to launch
Networking process (0x114034d00) took 1.426249 seconds to launch
0x105820a20 - [pageProxyID=7, webPageID=8, PID=34786] WebPageProxy::didFailProvisionalLoadForFrame: frameID=1, isMainFrame=1, domain=NSURLErrorDomain, code=-1200, isMainFrame=1, willInternallyHandleFailure=0
Message from debugger: killed
Below is the code from one of the examples:
import UIKit
import WebKit
class ViewController: UIViewController {
let webView: WKWebView = {
let prefs = WKWebpagePreferences()
prefs.allowsContentJavaScript = true
let configuration = WKWebViewConfiguration()
configuration.defaultWebpagePreferences = prefs
let webView = WKWebView(frame: .zero, configuration: configuration)
return webView
}()
override func viewDidLoad() {
super.viewDidLoad()
view.addSubview(webView)
guard let url = URL(string: "https://google.com") else {
return
}
webView.load(URLRequest(url: url))
//evaluate JavaScript
DispatchQueue.main.asyncAfter(deadline: .now()+5){
self.webView.evaluateJavaScript("document.body.innerHTML") { result, error in
guard let html = result as? String, error == nil else {
return
}
print(html)
}
}
}
override func viewDidLayoutSubviews(){
super.viewDidLayoutSubviews()
webView.frame = view.bounds
}
}
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.