muxinc / mux-stats-sdk-avplayer

Mux integration with `AVPlayer` for native iOS, tvOS, and visionOS applications
Apache License 2.0
45 stars 21 forks source link

Mux 3.6.0 error with SPM #236

Closed lilidotshi closed 7 months ago

lilidotshi commented 7 months ago

I tried updating to the latest MUX version today (hopefully with the privacy manifest), but it's failing the fetch call with this error:

Screenshot 2024-04-18 at 9 55 35 AM

dylanjha commented 7 months ago

Hi @lilidotshi , can you post a screenshot of the SPM configuration where you have the repository added? For some reason it looks like it's pointing to ajlb/visionos-support branch, but I'm not sure if that's expected.

Seems like this might be a caching issue or something else fussy with XCode, we know other folks are able to install 3.6 via SPM so it's not entirely clear what the issue is that you're experiencing. Assuming you tried this, but maybe an XCode re-boot couldn't hurt?

lilidotshi commented 7 months ago

Hi @dylanjha it looks like you released 3.6.1, which we are able to download via SPM. looks like there were some accidental conflicts in the project file that you fixed, so I wonder if that was messing us up

andrewjl-mux commented 7 months ago

Hey @lilidotshi, good question, you're right that in v3.6.1 we repaired some accidental conflicts in an example project.

These conflicts shouldn't affect installing v3.6.0 using SPM. To double check I followed these steps in a separate project and succeeded. If you get a chance to try these and run into any issues please let us know:

The error message in your screenshot about the git object graph for the 18881b50 revision seems to indicate the local Xcode package cache might be in a bad state. That revision matches the commit SHA of the v3.6.0 tag but the ajlb/visionos-support is a deleted branch. The above steps should return the Xcode package cache to a valid state if it isn't fully in one.

If the above steps don't work something else to try is disabling HTTPS to SSH rewriting for git URLs (if it is configured). This setting causes occasional SPM installation issues in recent versions of Xcode. There is a good suggestion on Stack Overflow to confirm if this is an issue and to potentially get around it here by removing the following setting from your local ~/.gitconfig if present and then trying to install again:

[url "git@github.com:"]
    insteadOf = https://github.com/
lilidotshi commented 7 months ago

hey @andrewjl-mux! I can give it a go, but seems like we're at 3.6.1 and everything seems to be working great! Would you like me to investigate just in case? Otherwise feel free to close this issue!

andrewjl-mux commented 7 months ago

No need if everything is working! Closing this but feel free to reopen if anything comes up.