I updated my Xcode version to Xcode12.
I used Carthage to integrate the AFNetworking, everything was working fine until I updated my Xcode version from 11.7 to 12.
Now after updating to Xcode 12 when I am trying to run the Carthage update --platform iOS command it shows me an error(attached in screenshot).
I expected that everything will work fine
I am not able to build my project and it shows me error(Building for iOS Simulator, but the linked and embedded framework 'AFNetworking.framework' was built for iOS) as shown in the screenshot.
AFNetworking version: 3.2.1 and 4.0
Xcode version: 12
Swift version: 5.3
Platform(s) running AFNetworking: iOS
macOS version running Xcode: 10.15.6


One of the answers from dev forum's question says that it is something which needs to be fixed by 3rd party framework(AFNetworking)
@SatishMavani See https://github.com/Carthage/Carthage/issues/3019
Did you try this?
Changing value of Validate Workspace to YES

warisappify works!
Just curious - why this works?
Here Is Already Solved with all possible solution added Solved Xcode 12.3: Building for iOS Simulator, but the linked and embedded framework was built for iOS + iOS Simulator
Most helpful comment
Did you try this?
Changing value of Validate Workspace to YES