emqx / CocoaMQTT

MQTT 5.0 client library for iOS and macOS written in Swift
https://www.emqx.com/en
Other
1.57k stars 411 forks source link

Deployment target out of range #578

Open clm57 opened 4 months ago

clm57 commented 4 months ago

I don’t have a lot of experience with Xcode, Cocoapods, Carthage, so I’ll apologize up front. I’ve tried both pods and carthage to build MQTT frameworks. Currently using carthage, I get: "macOS deployment target 'MACOSX_DEPLOYMENT_TARGET' is set to 10.10, but the range of supported deployment target versions is 10.13 to 14.4.99. (in target 'Mac MqttCocoaAsyncSocket' from project 'MqttCocoaAsyncSocket’)” My project has deployments set to MacOS 14. And I’ve searched on all settings for any other MacOs setting and cannot find any. When I look at the generated CocoaMQTT.xcodeproj, it indeed has a MacOs setting of 10.13, and the CocoaMQTT.podspec file also specifies a deployment target of 10.12.
My Cartfile contains: GitHub "emqx/CocoaMQTT" “master” I’m using xcode 15.3, although I saw the same issue with 15.2.

Can anyone share any insight into what I’m doing wrong?

thanks in advance!

VidalSpierings commented 3 months ago

What is your minimum deployment target set to?

clm57 commented 3 months ago

I tried numerous settings, none seem to work.  I believe I tried 10.13, 10.14, 10,15, 11.0 and 13,0. On Mar 15, 2024, at 7:36 AM, Vidal Spierings @.***> wrote: What is your minimum deployment target set to?

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

VidalSpierings commented 3 months ago

I have personally worked around with this libary for only a couple hours. Perhaps you could try to use an older version of this libary and see if that resolves the issues, if you haven't tried to do that already

clm57 commented 3 months ago

I believe the issue is that the deployment target in the MQTT library is 10.13 and lower and xcode no longer supports that. Switching to an earlier version isn’t going to fix that.