Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"No Such Module" while using a XCFramework of a framework that uses CocoaPods #13

Open
cpradobliss opened this issue May 30, 2022 · 0 comments

Comments

@cpradobliss
Copy link

Hi! I have created a project that consumes a library using CocoaPods.

I have created an XCFramework of that project using bundle exec fastlane export_xcframework. It worked, but when I try to consume the framework from my SPM project it says that there's "No such module StreamAMGSDK". This error appears in the .swiftinterfacefile:

// swift-interface-format-version: 1.0
// swift-compiler-version: Apple Swift version 5.6.1 effective-4.1.50 (swiftlang-5.6.0.323.66 clang-1316.0.20.12)
// swift-module-flags: -target arm64-apple-ios14.0 -enable-objc-interop -enable-library-evolution -swift-version 4 -enforce-exclusivity=checked -O -module-name IMPlayer
import StreamAMGSDK // Error appears here <<<<<<<<
import Swift
import _Concurrency
@_hasMissingDesignatedInitializers public class IMPlayerFactory {
  final public let shared: IMPlayer.IMPlayerFactory
  public func createPlayer(frame: CoreGraphics.CGRect, youboraAccountCode: Swift.Int? = nil, partnerId: Swift.Int) -> StreamAMGSDK.AMGPlayKit
  @objc deinit
}

There's something I can do to make this XCFramework work by having this library included?

@cpradobliss cpradobliss changed the title XCFramework of a Cocoapods project "No Such Module" while using a XCFramework of a framework that uses CocoaPods May 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant