无法运行WDA IPA,dyld:断言失败:this-> cputype == cpu_type_arm64

发布于 2025-01-27 16:19:53 字数 1932 浏览 3 评论 0原文

我已经对WebDriverAgentRunner进行了自定义修改,并且正在尝试创建一个.IPA文件以将其部署到我的iOS设备。

我用来构建.IPA文件的脚本是

xcodebuild \
    -project WebDriverAgent.xcodeproj \
    -scheme WebDriverAgentRunner \
    -sdk iphoneos \
    -configuration Release \
    -derivedDataPath ./out \
    -allowProvisioningUpdates \
    PRODUCT_BUNDLE_IDENTIFIER=${bundle_identifier}

mkdir -p ./out/ipa/Payload
cp -r ./out/Build/Products/Release-iphoneos/WebDriverAgentRunner-Runner.app ./out/ipa/Payload/
cd ./out/ipa

# Dump basic information about the verison of XCTest embedded in this ipa
/usr/libexec/PlistBuddy -c Print Payload/WebDriverAgentRunner-Runner.app/Frameworks/XCTest.framework/version.plist
/usr/libexec/PlistBuddy -c Print Payload/WebDriverAgentRunner-Runner.app/Frameworks/XCTest.framework/Info.plist

zip -r ../WebDriverAgent-$TRAVIS_BUILD_NUMBER.zip .
cd ../../

但是,当我使用 并使用iOS runwdaiDevicedebug run com.facebook.webdriveragentrunner.xctrunner我收到以下错误:

Assertion failed: (this->cputype == CPU_TYPE_ARM64 && this->cpusubtype == CPU_SUBTYPE_ARM64E && "chainedPointerFormat() called on non-chained binary"), function chainedPointerFormat, file /BuildRoot/Library/Caches/com.apple.xbs/Sources/dyld/dyld-731.4/dyld3/MachOAnalyzer.cpp, line 3029.
dyld: Assertion failed: (this->cputype == CPU_TYPE_ARM64 && this->cpusubtype == CPU_SUBTYPE_ARM64E && "chainedPointerFormat() called on non-chained binary"), function chainedPointerFormat, file /BuildRoot/Library/Caches/com.apple.xbs/Sources/dyld/dyld-731.4/dyld3/MachOAnalyzer.cpp, line 3029.

我尝试了XcodeBuild命令,使用 -ark-ark Arm644444444444444444444444444444444444444年, -arch Arm64e -arch armv6 ,但没有任何作用。

如何构建IPA文件以便能够在任何iPhone设备上运行它?

I have made custom modifications to WebDriverAgentRunner and I'm trying to create a .ipa file to deploy it to my iOS devices.

The script I'm using to build the .ipa file is

xcodebuild \
    -project WebDriverAgent.xcodeproj \
    -scheme WebDriverAgentRunner \
    -sdk iphoneos \
    -configuration Release \
    -derivedDataPath ./out \
    -allowProvisioningUpdates \
    PRODUCT_BUNDLE_IDENTIFIER=${bundle_identifier}

mkdir -p ./out/ipa/Payload
cp -r ./out/Build/Products/Release-iphoneos/WebDriverAgentRunner-Runner.app ./out/ipa/Payload/
cd ./out/ipa

# Dump basic information about the verison of XCTest embedded in this ipa
/usr/libexec/PlistBuddy -c Print Payload/WebDriverAgentRunner-Runner.app/Frameworks/XCTest.framework/version.plist
/usr/libexec/PlistBuddy -c Print Payload/WebDriverAgentRunner-Runner.app/Frameworks/XCTest.framework/Info.plist

zip -r ../WebDriverAgent-$TRAVIS_BUILD_NUMBER.zip .
cd ../../

However, when I install it with go-ios
And run it with either ios runwda or idevicedebug run com.facebook.WebDriverAgentRunner.xctrunner I get the following error:

Assertion failed: (this->cputype == CPU_TYPE_ARM64 && this->cpusubtype == CPU_SUBTYPE_ARM64E && "chainedPointerFormat() called on non-chained binary"), function chainedPointerFormat, file /BuildRoot/Library/Caches/com.apple.xbs/Sources/dyld/dyld-731.4/dyld3/MachOAnalyzer.cpp, line 3029.
dyld: Assertion failed: (this->cputype == CPU_TYPE_ARM64 && this->cpusubtype == CPU_SUBTYPE_ARM64E && "chainedPointerFormat() called on non-chained binary"), function chainedPointerFormat, file /BuildRoot/Library/Caches/com.apple.xbs/Sources/dyld/dyld-731.4/dyld3/MachOAnalyzer.cpp, line 3029.

I have tried the xcodebuild command with -arch arm64 and -arch arm64e and -arch armv6 but nothing works.

How can I built the ipa file to be able to run it on any iphone device?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文