Hello guys how are you all ? Hope you all are fine. When I run my app on iOS simulator I have faced this error. Xcode 12.3: Building for iOS Simulator, but the linked and embedded framework was built for iOS + iOS Simulator. So here I am come with all possible solution to solve this error.
When I was run my app in my Xcode 12.2 until Xcode 12.2 app was run perfectly fine. But when i updated my Xcode 12.2 to Xcode 12.3 Suddenly I have faced this error.
Building for iOS Simulator, but the linked and embedded framework 'My.framework' was built for iOS + iOS Simulator.
What Is Error ?
I am facing Building for iOS Simulator, but the linked and embedded framework 'My.framework' was built for iOS + iOS Simulator.
error while updating my Xcode 12.2 to Xcode 12.3
Solutions
Question : How to solve Building for iOS simulator, but the linked and embedded framwork ‘My Framwork’ was biult for iOS + iOS Simulator
Answer : We have to exclude device architecture, while building for simulators and while you building for the device you have to exclude simulator architecture.
Solution 1
We have to exclude device architecture, while building for simulators and while you building for the device you have to exclude simulator architecture.
- Go to
Build Settings
of your project - Excluded Architectures
- Select the configuration(Debug/Release/Etc…)
- Tap +
- Any iOS Simulator SDK
- Add
arm64
,arm64e
,armv7

This may solve your error.
Solution 2
This framework isn’t built with a supported configuration — iOS and iOS Simulator code has never been supported in the same binary. The linker in Xcode 11 began identifying these incorrect configurations and issuing warnings, and Xcode 12 goes further in identifying these issues.
The only correct way to resolve this is to rebuild the framework as an XCFramework. If this is your framework, or owned by another group in your company, follow the information in the video and the Xcode Help article.
If this framework is from a vendor, then you need to work with the vendor to get an updated version of the framework built with supported configuration.
In the discussion of this thread, there is a build script that attempts to resolve this error. Scripts like that — anything that tries to manipulate the output with commands like lipo — still produces an unsupported configuration in the binary. XCFrameworks are the way to go.
Summery
So it’s all About this issue. Hope Xcode 12.3: Building for iOS Simulator, but the linked and embedded framework was built for iOS + iOS Simulator above all solution helped you a lot. Comment below Your thoughts and your queries. And Also Comment on your suggestion here.
Also Read
- How to make a blur Background Image effect in Flutter using BackdropFilter.
- SyntaxError: invalid syntax to repo init in the AOSP code in Python