-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upload DSYMs script not working via SwiftPM #13
Comments
I found a workaround for this, I just had to replace the third line of the script (starting with SEARCH_DIR="$(dirname $(dirname $BUILD_ROOT))/SourcePackages/artifacts/Instabug"
SCRIPT_SRC=$(find "$SEARCH_DIR" -name 'Instabug_dsym_upload.sh' | head -1) |
Hey @Jeehut, sorry for the late reply. Thank you for the detailed report 🙏 |
@hassaanelgarem any updates on that? |
Hi @Jeehut
|
Hello. I'm facing the same issues. Any updates on this? |
Hi @mdoukmak sorry for being late |
I'm following the documentation with SPM version |
I think that I'm having the same issue since it ain't working, but I'm struggling to find the logs for that. Where did you see the failure? Did you manage to solve it? @KerollosNabil @husseinkishk @hassaanelgarem do you guys have a ready-to-go script for Xcode Cloud? IMHO more and more users will start integrating with SPM and using Xcode Cloud as the CI, seems that there should be an easy way to make it work! |
I've been digging around this, and indeed the script doesn't work for SPM. I had it on my Post-Actions in the Archive phase, and I get this:
I tried with the suggested fix above, but that seems to be only for the Build phase, on the Archive phase I get this:
To be able to see the logs of a Post-Action on an Archive phase, I had to send the logs to a Any ideas on how to solve this? |
I know that this is not SPM related, but anyone having issues in Xcode Cloud will probably end up finding this issue. I managed to make the dSYM upload work when using SPM and Xcode Cloud. Instead of using the Post-Action step in the Archive process, I'm using the
Got some inspiration from |
Hi @xmollv, it's impressive how you handled everything on your own 👌 We will be investigating what we can do from our side to better help customers who are using SPM and XcodeCloud, will keep everyone here posted with any updates 👍 |
Hi @xmollv, Thank you for reaching out. This script was designed with the expectation that it will be used from within Xcode. That's why it wasn't working before. You can use the script here in the Xcode build phases. You can also use it from
We are currently working on improving this solution and support for Xcode-cloud. |
@hassaanelgarem @husseinkishk @yousefhamza @EyadHeikal we still do not see any documentation update of using the script in Xcode cloud with SPM. Any timeline when the official documentation will be updated ? |
Steps to Reproduce the Problem
Expected Behavior
My application should build fine. Also the DSYMs should be uploaded successfully.
Actual Behavior
My application errors out with this error:
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 thePackage.swift
points to and found that there are actuallyInstabugResources.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.The text was updated successfully, but these errors were encountered: