[英]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要使用 Swift Package Manager 集成 exampleSDK,请将 package 依赖项添加到您的 Package.swift
dependencies: [
.package(url: "https://github.com/example-sdk", branch: "main")
]
I need to integrate the iOS SDK to react native project.我需要集成 iOS SDK 来反应本机项目。 As per the instructions I need to add the dependencies to Package.swift.根据说明,我需要将依赖项添加到 Package.swift。
I am not able to find the package. swift in react native project我无法在 React Native 项目中找到 package.swift
Where I need to create the Package.swift in react native project?我需要在哪里创建 Package.swift 反应本机项目?
Steps I had done to integrate the SDK to ios.我为将 SDK 集成到 ios 所做的步骤。
I have added the below pod to project podfile.我已将以下 pod 添加到项目 podfile。
pod 'exampleSDK', :git => 'https://github.com/example-sdk'
Installed the pod file successfully.成功安装 pod 文件。
after running the project in Xcode. showing an error在 Xcode 中运行项目后。显示错误
Error: Framework not found exampleSDK
Any help is appreciated!任何帮助表示赞赏!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.