Module 'TigaseSwift' was created for incompatible target x86_64-apple-macos10.11 (#413)
Unknown opened 5 years ago

Hello,

I've downloaded the project from github and trying to run the code.

I'm getting these error No such module 'TigaseSwift' . then I downloaded the TigaseSwift framework from this link(https://github.com/tigase/tigase-swift) and added the project. Now I'm getting below error.

/Users/raju/Documents/siskin-im-master/SiskinIM/vcard/VCardEditAddressTableViewCell.swift:23:8: Module 'TigaseSwift' was created for incompatible target x86_64-apple-macos10.11: /Users/raju/Documents/siskin-im-master/TigaseSwift.framework/Modules/TigaseSwift.swiftmodule/x86_64.swiftmodule

Thanks

Unknown commented 5 years ago

I suppose that you are using code from master branch. For easier compilation please use code from mix branch as it contains proper configuration for SwiftPM and will properly download code and compile TigaseSwift for proper architecture.

This error means that XCode in your case compiled TigaseSwift for macOS not for iOS.

Unknown commented 5 years ago

Does the changes in the mix branch mean it's possible to compile by simply opening the SiskinIM.xcodeproj or do we need to create a new workspace and add openssl, xmpp and omemo like before?

Also, SwiftPM seems to want to include https://github.com/tigase/libsignal but that repo is 404.

Unknown commented 5 years ago

There is still a need to add WebRTC and OpenSSL as SwiftPM does not allow (yet?) to depend on binaries and WebRTC and OpenSSL are huge and require a lot of time to compile.

TigaseSwift and TigaseSwiftOMEMO will be fetched by SwiftPM.

Unknown commented 5 years ago

Thanks @hantu85 for a superfast reply and fixing libsignal. I'll try further and see where it gets me. OpenSSL seem to have built fine, not sure about WebRTC as that didn't appear to be a dependancy error (yet?).

Unknown commented 5 years ago

By creating a new workspace and adding SiskinIM project using the mix branch, Xcode indeed pulled automatically TigaseSwiftOMEMO, TigaseSwiftFor and libsignal.

Then I've added OpenSSL and built it. Then I tried building the SiskinIM > Shared library and to make it successful I had to:

  1. Shared > General > Frameworks and Libraries: remove openssl framework and add OpenSSL framework. Update the referenced code error, from import openssl to import OpenSSL.
  2. Shared > Build Settings > Enable Bitcode: No.

Finally, I had to go back a few commits (to d747cdc) to remove code errors due to audio/video development. SiskinIM built successfully and launched in the Simulator.

issue 1 of 1
Issue Votes (0)
Watchers (0)
Reference
tigase/_clients/siskin-im#413
Please wait...
Page is in error, reload to recover