After running preprocess dSYM command in the mac terminal. I was trying upload command for uploading dSYM file but i was getting error “ERROR: Execution failed, rc=-1003 reason=A server with the specified hostname could not be found.” I run this command for uploading :-
it seems that the server URL you entered was not correct or not reachable from your device - as https://server.com is only an example I can’t judge what the real problem is. You could try and ping the server if it is reachable from your device and if the URL can be resolved.
Additionally -delete is not the correct command for upload - just run ./DTXDssClient to get a list of all available commands:
% ./DTXDssClient <br>DTXDssClient version 8.267.1.1006 built on 2023-05-22<br>FLAGS: (only one flag per operation)<br>-delete Delete one or more mapping files, depending on criteria.<br>-upload Specify an xcarchive or dsym mapping file to upload.<br>-decode Create local mapping files.<br>-help (-h) Display this help screen.<br><br>SYNOPSIS (Upload):<br>DTXDssClient -upload server=<serverURL> apitoken=<dynatraceAPIToken> appid=<dynatraceAppId><br>symbolsfile=<iOS filename or folder>|file=<android filename or folder> [os=ios|tvos|android]<br>bundleId=<CFBundleIdentifier/package> version=<CFBundleVersion/versionCode> versionStr=<CFBundleShortVersionString/versionName><br>EXPERT LEVEL:<br>[logLevel=ALL|SEVERE|WARNING|INFO|FINE|FINER|FINEST] [allowAnyCert=1] [extraInfo=1] [mangledNames=1]<br><br>SYNOPSIS (Delete):<br>DTXDssClient -delete server=<serverURL> apitoken=<dynatraceAPIToken> appid=<dynatraceAppId><br>os=ios|tvos|android<br>bundleId=<CFBundleIdentifier/package> version=<CFBundleVersion/versionCode> versionStr=<CFBundleShortVersionString/versionName><br>EXPERT LEVEL:<br>[logLevel=ALL|SEVERE|WARNING|INFO|FINE|FINER|FINEST] [allowAnyCert=1]<br><br>SYNOPSIS (Decode):<br>DTXDssClient -decode symbolsfile=<iOS filename or folder>|file=<android filename or folder> [outdir=<folder>] <br>EXPERT LEVEL:<br>[logLevel=ALL|SEVERE|WARNING|INFO|FINE|FINER|FINEST] [extraInfo=1] [mangledNames=1]<br><br>DESCRIPTION:<br>The dss-client utility provides the ability to upload and delete mapping files<br>from the DSS Symbolication Service.<br><br>OPTIONS:<br>os Either iOS, tvOS or Android (defaults to iOS on upload).<br>version The CFBundleVersion (iOS) / versionCode (Android).<br>versionStr The CFBundleShortVersionString (iOS) / versionName (Android).<br>bundleId The CFBundleIdentifier (iOS) / package (Android) of the Application.<br>appid The Dynatrace application id.<br>apitoken The Dynatrace API token.<br>symbolsfile For uploading, the filename of the XCode iOS archive or iOS dSYM containing the symbol mappings.<br>file For uploading, the filename of the Android symbol mappings.<br>allowAnyCert 1 for allowing communication to secure server that uses self-signed certificates. (WARNING: should not be used in production environments, because of security implications!)<br>extraInfo 1 for extra information to be added to the symbol mapping (use with caution, can double the size).<br>mangledNames 1 for the swift mangled names to be added to the symbol mapping (use with caution, can double the size).<br>tempdir The folder where the temporary files will be placed.<br>outdir The folder where the results files will be placed (only for decode).<br>logLevel Set how fine tuned the log level will be. Defaults to INFO.<br>maxSymbolSize Limits the maximum length (characters) of the demangled symbols. Can be disabled by setting it to 0. (Default 5000)<br><br>EXAMPLES:<br><br>display info<br>DTXDssClient -info appid=aa-bb-cc-dd-ee apitoken=Z-123aefc server=https://server.com<br><br>display status<br>DTXDssClient -status appid=aa-bb-cc-dd-ee apitoken=Z-123aefc server=https://server.com<br><br>delete iOS symbols for version<br>DTXDssClient -delete appid=aa-bb-cc-dd-ee apitoken=Z-123aefc os=ios bundleId=org.comp.app versionStr=1.0 version=1 server=https://server.com<br><br>upload iOS symbols from folder (all dSYMs in the folder will be processed)<br>DTXDssClient -upload appid=aa-bb-cc-dd-ee apitoken=Z-123aefc os=ios bundleId=org.comp.app versionStr=1.0 version=1 symbolsfile=/usr/local/symbols server=https://server.com<br><br>upload ANDROID mapping file<br>DTXDssClient -upload appid=aa-bb-cc-dd-ee apitoken=Z-123aefc os=android bundleId=org.comp.app versionStr=1.0 version=1 file=/usr/local/mapping.txt server=https://server.com