최신 앱이여서 ios development 17.0, spm 17.0 xcode 14를 사용하고 있습니다.
저도 간은 에러 발생했는데 spm 설정에서 필요한 라이브러리만 추가했더니 해결됐어요
//.product(name: “KakaoSDK”, package: “kakao-ios-sdk”), 지우고
.product(name: “KakaoSDKCommon”, package: “kakao-ios-sdk”),
.product(name: “KakaoSDKAuth”, package: “kakao-ios-sdk”),
.product(name: “KakaoSDKUser”, package: “kakao-ios-sdk”),
spm 설정 공유 해드립니다.
// swift-tools-version: 5.10
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: “dangdangSpm”,
platforms: [
.iOS(.v17), .macOS(.v14)
],
products: [
.library(
name: “dangdangSpm”,
targets: [“dangdangSpm”]),
],
dependencies: [
.package(url: “https://github.com/SwiftyJSON/SwiftyJSON.git”, .upToNextMajor(from: “5.0.0”)),
.package(url: “https://github.com/SFSafeSymbols/SFSafeSymbols.git”, .upToNextMajor(from: “5.0.0”)),
.package(url: “https://github.com/firebase/firebase-ios-sdk.git”, .upToNextMajor(from: “10.22.1”)),
.package(url: “https://github.com/kakao/kakao-ios-sdk.git”, .upToNextMajor(from: “2.21.0”)),
.package(url: “https://github.com/SDWebImage/SDWebImageSwiftUI.git”, .upToNextMajor(from: “3.0.0”)),
.package(url: “https://github.com/auth0/JWTDecode.swift.git”, .upToNextMajor(from: “3.1.0”)),
.package(url: “https://github.com/malcommac/SwiftDate.git”, .upToNextMajor(from: “7.0.0”)),
.package(url: “https://github.com/krzyzanowskim/CryptoSwift.git”, .upToNextMajor(from: “1.8.1”)),
],
targets: [
.target(
name: “dangdangSpm”,
dependencies: [
“SwiftyJSON”,
“SFSafeSymbols”,
//.product(name: “KakaoSDK”, package: “kakao-ios-sdk”),
.product(name: “KakaoSDKCommon”, package: “kakao-ios-sdk”),
.product(name: “KakaoSDKAuth”, package: “kakao-ios-sdk”),
.product(name: “KakaoSDKUser”, package: “kakao-ios-sdk”),
.product(name: “FirebaseAnalytics”, package: “firebase-ios-sdk”),
.product(name: “FirebaseAuth”, package: “firebase-ios-sdk”),
.product(name: “FirebaseCrashlytics”, package: “firebase-ios-sdk”),
.product(name: “FirebaseDynamicLinks”, package: “firebase-ios-sdk”),
.product(name: “FirebaseMessaging”, package: “firebase-ios-sdk”),
.product(name: “FirebaseDatabase”, package: “firebase-ios-sdk”),
.product(name: “FirebaseStorage”, package: “firebase-ios-sdk”),
.product(name: “FirebaseFirestore”, package: “firebase-ios-sdk”),
“SDWebImageSwiftUI”,
.product(name: “JWTDecode”, package: “JWTDecode.swift”),
“SwiftDate”,
“CryptoSwift”,
]
),
.testTarget(
name: “dangdangSpmTests”,
dependencies: [“dangdangSpm”]),
]
)