socketio / socket.io-client-swift

Other
5.21k stars 839 forks source link

Compiling for iOS 11.0, but module 'Starscream' has a minimum deployment target of iOS 12.0 #1481

Open elefantel opened 5 months ago

elefantel commented 5 months ago

Xcode version: 15.2 Cocoapods version: 1.14.3 macOS version: 14.2.1 (23C71)

I am getting error:

xcodebuild:  Socket.IO-Client-Swift/Source/SocketIO/Engine/SocketEngine.swift:27:8: 
error: compiling for iOS 11.0, but module 'Starscream' has a minimum deployment target of iOS 12.0: 
path-to-derved-data/Build/Products/Release-iphonesimulator/Starscream/Starscream.framework/
Modules/Starscream.swiftmodule/x86_64-apple-ios-simulator.swiftmodule

xcodebuild:  Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' 
is set to 11.0, but the range of supported deployment target versions is 12.0 to 17.2.99.
 (in target 'Socket.IO-Client-Swift' from project 'Pods')

I see that in your podspec on line 14 you have s.ios.deployment_target = '11.0' while Starscream in their podspec have s.ios.deployment_target = '12.0' hence the problem. I think you need to bump your minimum deployment target to iOS 12 to match Starscream.

elefantel commented 5 months ago

I have created a pull request to address this issue https://github.com/socketio/socket.io-client-swift/pull/1482

elefantel commented 4 months ago

I managed to get this working in the meantime by fixing Starscream version in podspec. See https://github.com/socketio/socket.io-client-swift/pull/1482#issuecomment-2075044082