最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

swift - Apple StoreKitTest.framework for x86_64? - Stack Overflow

programmeradmin1浏览0评论

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?

发布评论

评论列表(0)

  1. 暂无评论