Chatto icon indicating copy to clipboard operation
Chatto copied to clipboard

Issues migrating integration from Cocoapods to Swift Package

Open brandtdaniels opened this issue 3 years ago • 1 comments

When attempting to migrate from Cocoapods to Swift Package using 4.1.0

I have several issues where import ChattoAdditions is no longer working. Simply updating that import to import Chatto is causing other issues.

Please update your readme.md with clear directions on how to integrate using SPM and how to transition from using ChattoAdditions.

brandtdaniels avatar Jun 15 '21 21:06 brandtdaniels

@brandtdaniels I found a solution here - https://forums.swift.org/t/unable-to-import-multiple-targets-from-external-dependency/39030

It works like this:

dependencies: [
    .product(name: "Chatto", package: "Chatto"),
    .product(name: "ChattoAdditions", package: "Chatto"),
]

maxkonovalov avatar Jul 20 '21 18:07 maxkonovalov

您好,邮件收到

gsherofly007 avatar Apr 13 '24 17:04 gsherofly007