# How to use swiftPM manager different framework and core framework in a Multi-Target Xcode project

**URL:** <https://forums.swift.org/t/how-to-use-swiftpm-manager-different-framework-and-core-framework-in-a-multi-target-xcode-project/78291>\
**Category:** Package Manager\
**Tags:** swiftpm\
**Created:** [March 5, 2025, 9:36am UTC](https://forums.swift.org/t/how-to-use-swiftpm-manager-different-framework-and-core-framework-in-a-multi-target-xcode-project/78291 "2025-03-05T09:36:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![talka123456](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/talka123456/32/39848_2.png) [@talka123456](https://forums.swift.org/u/talka123456)\
**Post date:** [March 5, 2025, 9:36am UTC](https://forums.swift.org/t/how-to-use-swiftpm-manager-different-framework-and-core-framework-in-a-multi-target-xcode-project/78291/1 "2025-03-05T09:36:33Z")

</div>

I have a multi-target Xcode Project where different targets depend on both a Core Framework and their own target-specific SDK Frameworks. How should I handle migrating from CocoaPods to SwiftPM for dependency management in this scenario。  
The following is the PodFile format:

```swift
def opensource_core_dependencies
    pod 'xxx'
end

def debug_dependencies
  pod 'xxx'
end

def opensource_swift_dependencies
  pod 'xxx'
end

targetArray = ['TargetA', 'TargetB', 'TargetC', 'TargetD']
targetArray.each do |t|
  target t do
    opensource_core_dependencies
    opensource_swift_dependencies
  end
end

targetArray = ['DebugTargetA', 'DebugTargetB']
targetArray.each do |t|
  target t do
    opensource_core_dependencies
    debug_dependencies
  end
end

```
