文章目录
多个xcode线程在跑,杀掉xcode, 杀掉xcodebuild进程 , clean
环境:
mac 10.14.5
xcode 10.3
报错: Command Codesign failed with a nonzero exit code… The bundle identifier for WebDriverAgentRunner-Runner.app couldn’t be read
背景: 更换了provision file, 导致WebdriverAgetnLib codesign失败。而使用xcode IDE 运行是没问题的。
解决: 重启MAC。 猜测, 可能系统有关, xcodebuild命令执行时没有对变动后的描述文件识别,迟钝,未生效。
library no loaded.
No suitable image found
背景:更改了bundleid和provision file。 xcode IDE 运行WDA正常, xcodebuild 命令行报错。
解决: 对WebDriverAgentLib的info.plist 设置bundleid与WebDriverAgentRunner一致,且 product bundle identifier也一致,不要空着。 code signing identity - Debug - Any ios sdk指定为具体的iphone developer: who (xxxx)
第一种方法:
-
go to window-devices and simulators
-
select the unrunable device and right click, then choose unpair
-
now this is the crucial part, your device will ask for trust automatically, dont click trust
-
focus back to the device panel, left click the + and add the device, click next, it will ask you to tap the “trust” IN THE PANEL
-
now you can tap the “trust” in your phone, the panel will say phone added successfully
第二种方法:
-
go to ~/Library/Developer/Xcode/iOS DeviceSupport/13.2/Symbols/System/Library/Caches/com.apple.dyld
-
create empty file if it is not there -
.processed_dyld_shared_cache_arm64e -
restart xcode and enjoy!
第三种方法:
-
unpair device (like carusd.ljt did), quit xcode
-
delete /Users/{username}/Library/Developer/Xcode/iOS DeviceSupport folder
-
rerun xcode, reconnect iphone, wait for it prepared, run the app.