chore(scripts): local_test.sh 过滤锁屏 iPhone 的 xcodebuild 握手噪音
DTDK passcode protected 每 3s 刷屏(构建 generic/platform=iOS 不需真机), stderr 定向过滤堆栈噪音,真错误仍透传。 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JJ1g8XV1YhhmHRzhwWEW7o
This commit is contained in:
@@ -46,11 +46,14 @@ if [ "${1:-}" = "--ios" ]; then
|
||||
echo "!! 未检测到已配对 iPhone(插线并解锁后重试)" >&2
|
||||
exit 1
|
||||
fi
|
||||
# stderr 滤掉锁屏 iPhone 的握手噪音(DTDK "passcode protected" 每 3s 刷一条,
|
||||
# 构建目标是 generic/platform=iOS 不需要真机,纯噪音;真错误仍透传)
|
||||
xcodebuild -workspace Runner.xcworkspace -scheme Runner -configuration Release \
|
||||
-destination "generic/platform=iOS" \
|
||||
CODE_SIGN_STYLE=Automatic DEVELOPMENT_TEAM=BYL4KQHMTN \
|
||||
CODE_SIGN_IDENTITY="Apple Development" PROVISIONING_PROFILE_SPECIFIER= \
|
||||
-allowProvisioningUpdates -allowProvisioningDeviceRegistration build \
|
||||
2> >(grep -vE "DTDKRemoteDeviceConnection|DVTDeviceOperation|passcode protected|dtdevicekit|DTDeviceKitBase|DVTFoundation|libdispatch|libsystem_pthread|^\)|^\s+[0-9]+ " >&2) \
|
||||
| grep -E "BUILD (SUCCEEDED|FAILED)"
|
||||
APP_PATH="$(find "$HOME/Library/Developer/Xcode/DerivedData" -path '*Release-iphoneos/Runner.app' -maxdepth 6 2>/dev/null | head -1)"
|
||||
if [ -z "$APP_PATH" ]; then
|
||||
|
||||
Reference in New Issue
Block a user