简体   繁体   中英

Swift Package Manager - add the package dependency to your Package.swift for react native

To integrate exampleSDK using Swift Package Manager, add the package dependency to your Package.swift


dependencies: [
.package(url: "https://github.com/example-sdk", branch: "main")
]

I need to integrate the iOS SDK to react native project. As per the instructions I need to add the dependencies to Package.swift.

I am not able to find the package. swift in react native project

Where I need to create the Package.swift in react native project?


Steps I had done to integrate the SDK to ios.

I have added the below pod to project podfile.

pod 'exampleSDK', :git => 'https://github.com/example-sdk'

Installed the pod file successfully.


after running the project in Xcode. showing an error

Error: Framework not found exampleSDK

Any help is appreciated!

I found the solution to add the package dependency without writing any code by using Xcode.

By following this link .

  • Your dependency SDK should be present in the git.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM