-
-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
wrong swiftimterfaces #3142
Comments
Here is the more info on stack overflow question https://stackoverflow.com/questions/61009771/method-does-not-override-any-method-from-its-superclass-alamofire?noredirect=1#comment107936416_61009771 |
@vdharankar Can you provide the commands used to produce the xcframework? The commands you posted on StackOverflow don't work, there's probably something missing for a clean environment. |
Commands came from here Carthage/Carthage#2799 |
Also You need to set the Build Libraries for Distribution option to Yes in your framework's build settings, otherwise the swift compiler doesn't generate the neccessary .swiftinterface files which are the key to future compilers being able to load your old library. |
this setting is 'NO' in current build. |
Yes, Alamofire doesn't support library distribution. If that's a requirement for XCFramework support, it will not work. |
Commands I have mentioned on Stackoverflow work my end |
Can you explain that a bit ? do you mean old iOS style frameworks ? If yes I have created one and used it with a simple code and I found it working |
Issue happens only after embedding these individual frameworks into XCFramework . |
It is unsafe to manually enable library distribution for libraries which don't have it enabled, like Alamofire, as our APIs are not guaranteed to maintain binary stability, as defined by the limitations of library evolution mode. You particular issue is caused by the fact that we added an |
It appears that adding an |
What did you do?
ℹ Tried building XCFramework using xcodebuild command line tool , built target for iOS and iOS-Simulator . Got both frameworks and tested them with sample code . The using '-create-framework' flag tried constructing XCFramework using both framework files. Go the XCFramework too but on using it with test code it showed an error related to wrong swift interface for 'cleanup' function in 'UploadRequest' class.
Expected that the resultant XCFramework will work just the way normal frameworks are working
ℹ Expected that the resultant XCFramework will work just the way normal frameworks are working
What happened instead?
ℹ Instead an error an error related to wrong swift interface for 'cleanup' function in 'UploadRequest' class.
Alamofire Environment
Latest Github version
11.4
5.2
iOS Simulator
10.15
The text was updated successfully, but these errors were encountered: