tigase / Martin

(M) Martin - XMPP client library for Swift
Other
69 stars 27 forks source link

Swift Compiler Error: No such module 'TigaseSwift' #4

Closed dp1604 closed 2 years ago

dp1604 commented 4 years ago

Although the Tigase Swift framework is embedded as binary, Compiler returns with error: No such module 'TigaseSwift'

Tigase Swift project was added to the workspace of an existing project and TigaseSwift framework was embedded as a binary. But when the project is compiled, it returns the error: No such module 'TigaseSwift' in places where the library is imported.

To Reproduce Steps to reproduce the behavior:

  1. Go to Xcode and open an existing workspace.
  2. Add Tigase Swift project to that workspace.
  3. Add TigaseSwift framework to the existing project as an embedded binary.
  4. Import TigaseSwift within the existing project and use it.
  5. Build the project.
  6. Swift Compiler Error: No such module 'TigaseSwift' will be returned by the compiler.

Expected behavior Existing project must build without error (It had no previous issue) and TigaseSwift must be usable in the existing project

Environment

Deployment Target

hantu85 commented 4 years ago

Is TigaseSwift also added to Link binary with libraries section?

Which exact branch of TigaseSwift are you using?

In the mix branch which contains the newest development version, we have introduced support for Swift packages, so that TigaseSwift may be easily added as a dependency.

dp1604 commented 4 years ago

Link binary with libraries was not added earlier. I added it and tested. But it still gives the same error. I was in the main branch.

In the mix branch which contains the newest development version, we have introduced support for Swift packages, so that TigaseSwift may be easily added as a dependency.

Could you please elaborate how to use above feature ?

When I checkout to mix branch I am unable to embed the binary!

hantu85 commented 2 years ago

Closing due to mix branch being merged to master.