Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
shuftipro opened this issue Mar 20, 2024 · 3 comments

Comments

@shuftipro
Copy link

Hi,
We are facing an issue while updating our dependency on cocoapods.

  • ERROR | [iOS] 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
@AndSanG
Copy link

AndSanG commented Mar 20, 2024

Starscream's dependency in Socket.IO-Client-Swift.podspec is declared as s.dependency "Starscream", "~> 4.0.6". So it is using at least 4.0.6 or the latest available patch (that is what ~> means ).
This means that it is using Starscream 4.0.8 (instead of 4.0.6) since two weeks ago. If you check the Starscream.podspec the s.ios.deployment_target went from 11 to 12 on these two patches.
That is causing your error.

The error means that Starscream has a higher minimum deployment target higher than Socket.IO-Client-Swift.
There are two solutions that worked for me, change the Starscream's Minimum deployment to 11 manually in Pods/Target/Starscream/General/Minimum deployment.

You have to write it, there is no 11 in the options.

image

Or the solution that worked for me was to specify in my project's Podfile the Starscream version that I want the project to use is exactly 4.0.6
pod 'Starscream', '4.0.6'
Since I am using Cordova I had to change my plugin's plugin.xml so it change the Podfile when the plugin is added.
<pod name="Socket.IO-Client-Swift" spec="16.1.0"/> <pod name="Starscream" spec="4.0.6"/>

@AndSanG
Copy link

AndSanG commented Mar 20, 2024

You can always use something "more aggressive" like this
https://stackoverflow.com/questions/77167628/xcode-stuck-at-compiling-ios-ver-11-while-i-am-using-14-as-a-target

@siyanhu
Copy link

siyanhu commented Apr 23, 2024

In Xcode, click "Pods.xcodeproj", find "iOS Deployment Target" in Build Settings tag, and update the value to your target.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants