iOS Simulator-Compatible Libraries or Universal Versions for Solace SDK

srikanth
srikanth Member Posts: 5

I have downloaded the iOS support libraries from the Solace website (). However, when I try to run my app on the iOS simulator, I encounter the following error:

"Building for 'iOS-simulator', but linking in object file(s) built for 'iOS'"

This error is occurring for the following libraries:

  1. libsolclient.a
  2. libcrypto-universal.a
  3. libssl-universal.a

Could you please provide libraries that are compatible with the iOS simulator or universal libraries that support both iOS devices and simulators https://solace.com/downloads/

Answers

  • Aaron
    Aaron Member, Administrator, Moderator, Employee Posts: 664 admin

    I'm 99% sure the Solace iOS SDK is not supported anymore… not for a long time. You'd probably want to look at a compatible MQTT or AMQP library instead.

  • srikanth
    srikanth Member Posts: 5

    Hi @Aaron,

    Thanks for the quick response! I appreciate the clarification regarding the Solace iOS SDK.

    Given that the SDK is no longer supported, I’m definitely open to using a compatible MQTT or AMQP library to implement the publish/subscribe functionality. Could you please point me to any recommended libraries or provide links to relevant documentation that can help with integrating either MQTT or AMQP into an iOS app?

    Additionally, if you have any code samples, resources, or guides that demonstrate how to implement WebSocket communication with a message queue (specifically for subscribing, publishing, and handling queues), that would be extremely helpful.

    Looking forward to your guidance!

    Best regards,
    Srikanth.

  • Aaron
    Aaron Member, Administrator, Moderator, Employee Posts: 664 admin
    edited 12:33AM #4

    Hey @srikanth , I'm not sure if we officially have any recommendations on Apple-compatible open-source SDKs that are out there… MQTT or AMQP. Maybe someone else will weigh-in here..?

    I will say that since MQTT has no concept of queues, you won't be able to use any MQTT API to connect to Solace and listen/consume from queues. Everything in MQTT is topic-based. And while the Solace broker actually does use queues as part of the implementation of QoS1 messaging, it's an implementation detail, hidden from the client app. And I'd be surprised if there was an AMQP for mobile out there.

    EDIT: MQTT is great, it just can't "bind to an existing Solace queue" if that's your use case. But for topic-based pub/sub interop with enterprise messaging applications, it's great. I use MQTT a long for my front-end components, with Solace (JCSMP) apps in the backend.

    Any possibility to use the JavaScript API? It's the most well-baked, hardened Solace API out there for "mobile" / web.