Skip to content
This repository was archived by the owner on Nov 19, 2025. It is now read-only.
This repository was archived by the owner on Nov 19, 2025. It is now read-only.

Upload DSYMs script not working via SwiftPM #13

@Jeehut

Description

@Jeehut

Steps to Reproduce the Problem

  1. Integrate Instabug via SwiftPM as described in this README (or the documentation)
  2. Add the following build script (from the documentation):
#- -- SCRIPT BEGIN - --
# SKIP_SIMULATOR_BUILDS=1
  SCRIPT_SRC=$(find "$PROJECT_DIR" -name 'Instabug_dsym_upload.sh' | head -1)
  if [ ! "${SCRIPT_SRC}" ]; then
    echo "Instabug: err: script not found. Make sure that you're including InstabugResources.bundle in your project directory"
    exit 1
  fi
  APP_TOKEN="MY_TOKEN"
  source "${SCRIPT_SRC}"
#- -- SCRIPT END - --
  1. Build your application

Expected Behavior

My application should build fine. Also the DSYMs should be uploaded successfully.

Actual Behavior

My application errors out with this error:

Instabug: err: script not found. Make sure that you're including InstabugResources.bundle in your project directory
Command PhaseScriptExecution failed with a nonzero exit code

Instabug integration code

What an "integration code"?

SDK Version

10.4.0

iOS Version

Not relevant (but min target is iOS 10 if needed).

Device Model

Not relevant.

[Optional] Project That Reproduces the Issue

Additional Notes

I checked out the .zip files the Package.swift points to and found that there are actually InstabugResources.bundle files (see screenshot below), but the script seems not to point to them correctly when Instabug is integrated via SwiftPM. I have the feeling either the script is not updated to accustom SwiftPM or there's an additional step missing to add a symlink to the project somehow which will point to the right files.
Bildschirmfoto 2021-02-19 um 17 00 21

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions