DataDog / datadog-fastlane-plugin

Datadog's fastlane plugin for iOS development
Apache License 2.0
5 stars 1 forks source link

`dsym_paths` parameter does not support paths with special characters #8

Open nalexn opened 1 year ago

nalexn commented 1 year ago

I'm configuring the script to run at the end of the project archive. Xcode stores archives at paths like /Users/me/Library/Developer/Xcode/Archives/2023-03-18/myapp 18.03.2023, 15.41.xcarchive, with the dSYM files under /dSYMs/ subdirectory.

As you can see, the full path to dSYMs folder contains spaces and commas, so running

upload_symbols_to_datadog(
      api_key: "my_key",
      dsym_paths: ["/Users/me/.../commas and spaces/.../dSYMs/"]
)

results in a generic error [!] uninitialized constant Fastlane::Actions::UploadSymbolsToDatadogAction::FastlaneShellError (NameError), while if I rename the archive so the path doesn't contain special characters, the script works fine.

thillsman commented 1 year ago

I just ran into this as well. My path includes a space (in the name of the archive).

stack commented 10 months ago

If you have spaces in the path, you can just use single quotes wrapped around double quotes to get it to work.

dsym_paths: ['"Some Project.dSYM.zip"']