无法运行WDA IPA,dyld:断言失败:this-> cputype == cpu_type_arm64
我已经对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 runwda
或iDevicedebug 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论