'Add forked Swift Package in Xcode project

I recently forked a Swift Package library from GitHub in order to implement a functionality that I've been missing. However, when I try to add my version of the package in a Xcode project (by adding the url of my fork), Xcode can't find any results.

Xcode shows that it found 0 results for my fork

Is this an intended limitation of Swift Package Manager or am I missing something?



Solution 1:[1]

Try to use http instead of https: http instead of https

EDIT:

After you tried with http and still have the problem you probably need to create a personal access token:

  1. Go to GitHub and log in.
  2. In the upper right corner you will see your avatar with a button to open a menu. Click and choose Settings.
  3. Choose Developer Settings from the list of settings.
  4. Choose Personal Access Tokens from the list of developer settings.
  5. Click the Generate a personal access token link.
  6. Enter Xcode in the Note text field to let you know the token is for Xcode.
  7. Select the scopes for the access token.
  8. Click the Generate token button.
  9. Copy the token so you can paste it in Xcode.

Now to use the token in Xcode:

  1. Choose Xcode > Preferences.
  2. Click the Accounts button at the the top of the preferences window.
  3. Click the Add button.
  4. Choose GitHub from the list of accounts.
  5. Click the Continue button.
  6. Enter your GitHub username and personal access token in the text fields.
  7. Click the Sign In button.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1