Afnetworking: Building for iOS Simulator, but the linked and embedded framework 'AFNetworking.framework' was built for iOS

Created on 22 Sep 2020  路  5Comments  路  Source: AFNetworking/AFNetworking

What did you do?

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).

What did you expect to happen?

I expected that everything will work fine

What happened instead?

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 Environment

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
Screenshot 2020-09-22 at 12 31 47
Screenshot 2020-09-22 at 12 52 43

Most helpful comment

Did you try this?
Changing value of Validate Workspace to YES

JIgFb

All 5 comments

One of the answers from dev forum's question says that it is something which needs to be fixed by 3rd party framework(AFNetworking)

Did you try this?
Changing value of Validate Workspace to YES

JIgFb

warisappify works!
Just curious - why this works?

Was this page helpful?
0 / 5 - 0 ratings