missing required architecture arm64 after Xcoder upgrade

After upgrading Xcoder to version 9.4, my apple TV project build fails with the following error when deploying to an Apple TV (tvOS 11.4.1)

Apple Mach-O Linker (Id) Error

Linker command failed with exit code 1 (user -v to see invocation)


ld: in '/System/Library/PrivateFrameworks/UIFoundation.framework/UIFoundation', missing required architecture arm64 in file /System/Library/PrivateFrameworks/UIFoundation.framework/UIFoundation (2 slices) for architecture arm64


Nothing in the code was changed. The build was successful prior to the upgrade. The build is also successful when deploying to Apple TV Simulator. The project has no linked library.


How can we fix this build error?


Any help is appreciated!

I had the same problem and I tried diffrent actions which I found in the internet but nothing wsa helful.


The only thing that help:

1. In Xcode go to Build Setting->Search path->Framework search path

2. Remove $(SYSTEM_LIBRARY_DIR)/PrivateFrameworks from the list.


After that build finished succesfully. I just need to say that my code don't use UIFoundation framework so it work for me.


I hope it will be helpful.

missing required architecture arm64 after Xcoder upgrade
 
 
Q