Can't package with AR Kit

UE4.21 or 4.22,
Enable AR Kit Plugin,
Package error, info below might be useful:

Undefined symbols for architecture arm64:

OBJC_CLASS$_ARWorldMap”, referenced from:
objc-class-ref in Module.AppleARKit.cpp.o
ld: symbol(s) not found for architecture arm64

Help ~ :slight_smile: Please ~ :slight_smile:

4.21 & 4.22 only support Xcode 10.x, switch to 4.23 with Xcode 11 or have a another copy of Xcode 10 if working on 4.21/4.22

You can install an older version of Xcode and keep the current.
To select which XCode should be used by unreal, open macOS terminal and use this command:

sudo xcode-select -switch PathToYourDesiredXCodeVersion

for example:
Make a subfolder in /Applications for the older version, named /Applications/XCode10/
then you can switch which one, using one of these command:

sudo xcode-select -switch /Applications/Xcode.app
sudo xcode-select -switch /Applications/XCode10/Xcode.app

Thank you guys, very much!