0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

自作のSwiftPMのパッケージのリポジトリに、それを使ったサンプルプロジェクトを内包する方法

Last updated at Posted at 2025-04-19

手順

  • 自作のSwiftPMのパッケージのリポジトリに、それを使ったサンプルのプロジェクトを内包したい
  • まずサンプルプロジェクトを作成して下記の通りパッケージのディレクトリ配下に配置します

  • Add Localから公開したいパッケージのディレクトリを選択します

  • これで下記のようにサンプルリポジトリで動きをみながら、パッケージの中身を直接編集できるようになります
  • 注意点としては、パッケージ自身をXcodeの別Windowで開いているとダメなので閉じることです
  • またたまにキャッシュ周りでビルドエラーになることがある印象です
  • やはり基本はパッケージを開いて編集し、区切りの良いところで動作確認のためにサンプルプロジェクトを開いて、そこでSwiftPMのコードを微調整…とやると今のところいいのかなと思っています

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?