I'm writing ui test for my app with StoreKitTest, it works well in my local mac device, but I encountered an link error when Xcode builds my ui test target in Xcode Cloud environment:
Showing All Messages Ignoring file '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks/StoreKitTest.framework/StoreKitTest': found architecture 'arm64e', required architecture 'x86_64'
Undefined symbol: OBJC_CLASS$_SKTestSession
Linker command failed with exit code 1 (use -v to see invocation)
I checked which architectures are supported by the StoreKitTest by running lipo:
lipo -info /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks/StoreKitTest.framework/StoreKitTest
Non-fat file: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks/StoreKitTest.framework/StoreKitTest is architecture: arm64e
Although this is just the result of my local Xcode, I guess the framework included in Xcode that running in cloud also only support arm64.
The following screenshot is how I import StoreKitTest in my UITest target:
So my question is that how can I import an universal StoreKitTest.framework?