28

I just updated to Xcode 12.0.1 from AppStore opened my old project and after build got an error.

Here is an image for error:
enter image description here

as I research on SO for a solution some answered mentioned changing architecture in the build setting and changing build active architecture only setting. so I did but that didn't help.

here the picture of the build setting architecture section:
enter image description here

enter image description here

as I mentioned I have gone through the same so question but they didn't help for that I have uploaded a screenshot of the solution I used.

E_net4
  • 27,810
  • 13
  • 101
  • 139
NickCoder
  • 1,504
  • 2
  • 23
  • 35

2 Answers2

47

Just clean the build folder and build project. Doing this my issue is solved.

Or You can add armv7 to the Build Settings -> Architectures -> Excluded Architectures. This might solve the issue for some.

sagar
  • 704
  • 8
  • 9
8

For me this was caused by first building the project with a specific target, then switching to "Any iOS Device". Cleaning and rebuilding did the job