surveysparrow / surveysparrow-ios-sdk

SurveySparrow iOS SDK enables you to collect feedback from your mobile app by embed our Classic & Chat surveys
https://surveysparrow.com
2 stars 3 forks source link

Can't add the SPM package #20

Open budidino opened 5 days ago

budidino commented 5 days ago

I'm trying to switch from Cocoapods to SPM but I get this issue when trying to add the package:

Screenshot 2024-10-01 at 15 36 44

unexpectedly did not find the new dependency in the package graph:
sourceControl(
    identity: surveysparrow-ios-sdk,
    location: SwiftPM.SPMPackageDependency.SourceControlLocation.remote(
        SwiftPM.SPMSourceControlURL(sourceControlURL: https://github.com/surveysparrow/surveysparrow-ios-sdk.git)
    ),
    requirement: 1.2.0 - Next Major
)

I tried resolving package caches, restarting Xcode, cleaning derived data, ...

Gokulkrishna-Raju commented 2 days ago

@budidino, Thanks to reaching us.

This issue can't be reproduced from our side, and we also have active users importing v1.2.0.

You can also try the following:

1. Remove SPM Caches

rm -rf ~/Library/Caches/org.swift.swiftpm
rm -rf ~/Library/Developer/Xcode/DerivedData/*
rm -rf .build

2. Adjust the Version Specification

.exact("1.2.0") or .upToNextMajor(from: "1.2.0")

3. Check Network and Proxy Settings

4. Check Compatibility

After all the checks

Hope this will resolve your issue