appium运行报错

appium运行ios模拟器自动化的时候报这个错误:An unknown server-side error occurred while processing the command. Original error: Unable to launch WebDriverAgent because of xcodebuild failure: Command ‘/bin/bash /usr/local/lib/node_modules/appium/node_modules/appium-webdriveragent/Scripts/carthage-wrapper.sh bootstrap --platform iOS,tvOS’ exited with code

日志:
2022-01-09 22:09:49:954 [Appium] Welcome to Appium v1.19.1
2022-01-09 22:09:49:955 [Appium] Non-default server args:
2022-01-09 22:09:49:956 [Appium] sessionOverride: true
2022-01-09 22:09:49:956 [Appium] logFile: ./appium.log
2022-01-09 22:09:49:956 [Appium] localTimezone: true
2022-01-09 22:09:49:973 [Appium] Appium REST http interface listener started on 0.0.0.0:4723
2022-01-09 22:09:56:146 [HTTP] → POST /wd/hub/session
2022-01-09 22:09:56:146 [HTTP] {“desiredCapabilities”:{“app”:“/Users/hongxiaoqiu/Library/Developer/Xcode/DerivedData/UICatalog-fvhycfictuxgmacrimjznqkmygpf/Build/Products/Debug-iphonesimulator/UICatalog.app”,“automationName”:“xcuitest”,“deviceName”:“iPhone 11”,“platformName”:“ios”,“platformVersion”:“15.2”,“newCommandTimeout”:0,“connectHardwareKeyboard”:true}}
2022-01-09 22:09:56:148 [MJSONWP] Calling AppiumDriver.createSession() with args: [{“app”:“/Users/hongxiaoqiu/Library/Developer/Xcode/DerivedData/UICatalog-fvhycfictuxgmacrimjznqkmygpf/Build/Products/Debug-iphonesimulator/UICatalog.app”,“automationName”:“xcuitest”,“deviceName”:“iPhone 11”,“platformName”:“ios”,“platformVersion”:“15.2”,“newCommandTimeout”:0,“connectHardwareKeyboard”:true},null,null]
2022-01-09 22:09:56:148 [BaseDriver] Event ‘newSessionRequested’ logged at 1641737396148 (22:09:56 GMT+0800 (GMT+08:00))
2022-01-09 22:09:57:270 [Appium] Appium v1.19.1 creating new XCUITestDriver (v3.31.1) session
2022-01-09 22:09:57:270 [Appium] There are no active sessions for cleanup
2022-01-09 22:09:57:272 [BaseDriver] Creating session with MJSONWP desired capabilities: {
2022-01-09 22:09:57:272 [BaseDriver] “app”: “/Users/hongxiaoqiu/Library/Developer/Xcode/DerivedData/UICatalog-fvhycfictuxgmacrimjznqkmygpf/Build/Products/Debug-iphonesimulator/UICatalog.app”,
2022-01-09 22:09:57:272 [BaseDriver] “automationName”: “xcuitest”,
2022-01-09 22:09:57:273 [BaseDriver] “deviceName”: “iPhone 11”,
2022-01-09 22:09:57:273 [BaseDriver] “platformName”: “ios”,
2022-01-09 22:09:57:273 [BaseDriver] “platformVersion”: “15.2”,
2022-01-09 22:09:57:273 [BaseDriver] “newCommandTimeout”: 0,
2022-01-09 22:09:57:273 [BaseDriver] “connectHardwareKeyboard”: true
2022-01-09 22:09:57:273 [BaseDriver] }
2022-01-09 22:09:57:281 [BaseDriver] Session created with session id: 19b1303f-ab38-4856-9714-b27614c62ae2
2022-01-09 22:09:57:303 [XCUITest] Current user: ‘hongxiaoqiu’
2022-01-09 22:09:57:397 [XCUITest] iOS SDK Version set to ‘15.2’
2022-01-09 22:09:57:722 [iOSSim] Constructing iOS simulator for Xcode version 13.2.1 with udid ‘C368597A-AC9B-4FE9-B908-A58CC8ADFE69’
2022-01-09 22:09:57:723 [XCUITest] Determining device to run tests on: udid: ‘C368597A-AC9B-4FE9-B908-A58CC8ADFE69’, real device: false
2022-01-09 22:09:57:724 [BaseDriver] Event ‘xcodeDetailsRetrieved’ logged at 1641737397724 (22:09:57 GMT+0800 (GMT+08:00))
2022-01-09 22:09:57:728 [BaseDriver] Using local app ‘/Users/hongxiaoqiu/Library/Developer/Xcode/DerivedData/UICatalog-fvhycfictuxgmacrimjznqkmygpf/Build/Products/Debug-iphonesimulator/UICatalog.app’
2022-01-09 22:09:57:729 [BaseDriver] Event ‘appConfigured’ logged at 1641737397729 (22:09:57 GMT+0800 (GMT+08:00))
2022-01-09 22:09:57:730 [XCUITest] Checking whether app ‘/Users/hongxiaoqiu/Library/Developer/Xcode/DerivedData/UICatalog-fvhycfictuxgmacrimjznqkmygpf/Build/Products/Debug-iphonesimulator/UICatalog.app’ is actually present on file system
2022-01-09 22:09:57:731 [XCUITest] App is present
2022-01-09 22:09:57:733 [iOS] Getting bundle ID from app ‘/Users/hongxiaoqiu/Library/Developer/Xcode/DerivedData/UICatalog-fvhycfictuxgmacrimjznqkmygpf/Build/Products/Debug-iphonesimulator/UICatalog.app’: ‘com.example.apple-samplecode.UICatalog’
2022-01-09 22:09:57:734 [BaseDriver] Event ‘resetStarted’ logged at 1641737397734 (22:09:57 GMT+0800 (GMT+08:00))
2022-01-09 22:09:58:059 [XCUITest] Not scrubbing third party app in anticipation of uninstall
2022-01-09 22:09:58:060 [BaseDriver] Event ‘resetComplete’ logged at 1641737398060 (22:09:58 GMT+0800 (GMT+08:00))
2022-01-09 22:09:58:062 [WebDriverAgent] Using WDA path: ‘/usr/local/lib/node_modules/appium/node_modules/appium-webdriveragent’
2022-01-09 22:09:58:062 [WebDriverAgent] Using WDA agent: ‘/usr/local/lib/node_modules/appium/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj’
2022-01-09 22:09:58:248 [IOSSimulatorLog] Starting log capture for iOS Simulator with udid ‘C368597A-AC9B-4FE9-B908-A58CC8ADFE69’ using simctl
2022-01-09 22:09:58:583 [BaseDriver] Event ‘logCaptureStarted’ logged at 1641737398582 (22:09:58 GMT+0800 (GMT+08:00))
2022-01-09 22:09:58:584 [XCUITest] Setting up simulator
2022-01-09 22:09:58:585 [iOS] No reason to set locale
2022-01-09 22:09:58:585 [iOS] No iOS / app preferences to set
2022-01-09 22:09:58:586 [iOS] Setting did not need to be updated
2022-01-09 22:09:58:587 [iOSSim] Setting preferences of C368597A-AC9B-4FE9-B908-A58CC8ADFE69 Simulator to {“ConnectHardwareKeyboard”:true}
2022-01-09 22:09:58:587 [iOSSim] Setting common Simulator preferences to {“RotateWindowWhenSignaledByGuest”:true,“ConnectHardwareKeyboard”:true}
2022-01-09 22:09:58:612 [iOSSim] Updated C368597A-AC9B-4FE9-B908-A58CC8ADFE69 Simulator preferences at ‘/Users/hongxiaoqiu/Library/Preferences/com.apple.iphonesimulator.plist’ with {“DevicePreferences”:{“C368597A-AC9B-4FE9-B908-A58CC8ADFE69”:{“ConnectHardwareKeyboard”:true}},“RotateWindowWhenSignaledByGuest”:true,“ConnectHardwareKeyboard”:true}
2022-01-09 22:09:58:875 [iOSSim] Got Simulator UI client PID: 1599
2022-01-09 22:09:58:875 [iOSSim] Both Simulator with UDID ‘C368597A-AC9B-4FE9-B908-A58CC8ADFE69’ and the UI client are currently running
2022-01-09 22:09:58:876 [BaseDriver] Event ‘simStarted’ logged at 1641737398876 (22:09:58 GMT+0800 (GMT+08:00))
2022-01-09 22:09:58:877 [XCUITest] Verifying application platform
2022-01-09 22:09:58:880 [XCUITest] CFBundleSupportedPlatforms: [“iPhoneSimulator”]
2022-01-09 22:09:59:092 [XCUITest] Reset requested. Removing app with id ‘com.example.apple-samplecode.UICatalog’ from the device
2022-01-09 22:09:59:301 [XCUITest] Installing ‘/Users/hongxiaoqiu/Library/Developer/Xcode/DerivedData/UICatalog-fvhycfictuxgmacrimjznqkmygpf/Build/Products/Debug-iphonesimulator/UICatalog.app’ on Simulator with UUID ‘C368597A-AC9B-4FE9-B908-A58CC8ADFE69’…
2022-01-09 22:10:01:005 [XCUITest] The app has been installed successfully.
2022-01-09 22:10:01:006 [BaseDriver] Event ‘appInstalled’ logged at 1641737401005 (22:10:01 GMT+0800 (GMT+08:00))
2022-01-09 22:10:01:123 [WebDriverAgent] No obsolete cached processes from previous WDA sessions listening on port 8100 have been found
2022-01-09 22:10:01:124 [DevCon Factory] Requesting connection for device C368597A-AC9B-4FE9-B908-A58CC8ADFE69 on local port 8100
2022-01-09 22:10:01:124 [DevCon Factory] Cached connections count: 0
2022-01-09 22:10:01:125 [DevCon Factory] Successfully requested the connection for C368597A-AC9B-4FE9-B908-A58CC8ADFE69:8100
2022-01-09 22:10:01:127 [XCUITest] Starting WebDriverAgent initialization with the synchronization key ‘XCUITestDriver’
2022-01-09 22:10:01:130 [WD Proxy] Matched ‘/status’ to command name ‘getStatus’
2022-01-09 22:10:01:131 [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
2022-01-09 22:10:01:138 [WD Proxy] connect ECONNREFUSED 127.0.0.1:8100
2022-01-09 22:10:01:139 [WebDriverAgent] WDA is not listening at ‘http://127.0.0.1:8100/
2022-01-09 22:10:01:139 [WebDriverAgent] WDA is currently not running. There is nothing to cache
2022-01-09 22:10:01:139 [XCUITest] Trying to start WebDriverAgent 2 times with 10000ms interval
2022-01-09 22:10:01:139 [XCUITest] These values can be customized by changing wdaStartupRetries/wdaStartupRetryInterval capabilities
2022-01-09 22:10:01:140 [BaseDriver] Event ‘wdaStartAttempted’ logged at 1641737401140 (22:10:01 GMT+0800 (GMT+08:00))
2022-01-09 22:10:01:140 [WebDriverAgent] Launching WebDriverAgent on the device
2022-01-09 22:10:01:141 [WebDriverAgent] Fetching dependencies
2022-01-09 22:10:01:328 [WebDriverAgent] Installing/updating dependencies for platforms ‘iOS’, ‘tvOS’
2022-01-09 22:10:02:232 [WebDriverAgent] *** Checking out CocoaAsyncSocket at “72e0fa9e62d56e5bbb3f67e9cfd5aa85841735bc”
2022-01-09 22:10:02:232 [WebDriverAgent] *** Checking out YYCache at “1.1.2”
2022-01-09 22:10:02:675 [WebDriverAgent] *** xcodebuild output can be found in /var/folders/rt/8tr32dw169l5gs10jq1jt11w0000gn/T/carthage-xcodebuild.ypEClm.log
2022-01-09 22:10:03:404 [WebDriverAgent] Parsed BUILD_DIR configuration value: ‘/Users/hongxiaoqiu/Library/Developer/Xcode/DerivedData/WebDriverAgent-ciegwgvxzxdrqthilmrmczmqvrgu/Build/Products’
2022-01-09 22:10:03:405 [WebDriverAgent] Got derived data root: ‘/Users/hongxiaoqiu/Library/Developer/Xcode/DerivedData/WebDriverAgent-ciegwgvxzxdrqthilmrmczmqvrgu’
2022-01-09 22:10:20:932 [WebDriverAgent] *** Building scheme “tvOS Framework” in CocoaAsyncSocket.xcodeproj
2022-01-09 22:10:37:239 [WebDriverAgent] A shell task (/usr/bin/xcrun lipo -create /Users/hongxiaoqiu/Library/Caches/org.carthage.CarthageKit/DerivedData/13.2.1_13C100/CocoaAsyncSocket/72e0fa9e62d56e5bbb3f67e9cfd5aa85841735bc/Build/Intermediates.noindex/ArchiveIntermediates/tvOS\ Framework/IntermediateBuildFilesPath/UninstalledProducts/appletvos/CocoaAsyncSocket.framework/CocoaAsyncSocket /Users/hongxiaoqiu/Library/Caches/org.carthage.CarthageKit/DerivedData/13.2.1_13C100/CocoaAsyncSocket/72e0fa9e62d56e5bbb3f67e9cfd5aa85841735bc/Build/Products/Release-appletvsimulator/CocoaAsyncSocket.framework/CocoaAsyncSocket -output /usr/local/lib/node_modules/appium/node_modules/appium-webdriveragent/Carthage/Build/tvOS/CocoaAsyncSocket.framework/CocoaAsyncSocket) failed with exit code 1:
2022-01-09 22:10:37:240 [WebDriverAgent] fatal error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo: /Users/hongxiaoqiu/Library/Caches/org.carthage.CarthageKit/DerivedData/13.2.1_13C100/CocoaAsyncSocket/72e0fa9e62d56e5bbb3f67e9cfd5aa85841735bc/Build/Intermediates.noindex/ArchiveIntermediates/tvOS Framework/IntermediateBuildFilesPath/UninstalledProducts/appletvos/CocoaAsyncSocket.framework/CocoaAsyncSocket and /Users/hongxiaoqiu/Library/Caches/org.carthage.CarthageKit/DerivedData/13.2.1_13C100/CocoaAsyncSocket/72e0fa9e62d56e5bbb3f67e9cfd5aa85841735bc/Build/Products/Release-appletvsimulator/CocoaAsyncSocket.framework/CocoaAsyncSocket have the same architectures (arm64) and can’t be in the same fat output file
2022-01-09 22:10:37:241 [WebDriverAgent] Building universal frameworks with common architectures is not possible. The device and simulator slices for “CocoaAsyncSocket” both build for: arm64
2022-01-09 22:10:37:241 [WebDriverAgent] Rebuild with --use-xcframeworks to create an xcframework bundle instead.
2022-01-09 22:10:37:329 [WebDriverAgent] Launching WebDriverAgent on the device
2022-01-09 22:10:37:330 [WebDriverAgent] Fetching dependencies
2022-01-09 22:10:37:479 [WebDriverAgent] Installing/updating dependencies for platforms ‘iOS’, ‘tvOS’
2022-01-09 22:10:38:173 [WebDriverAgent] *** Checking out YYCache at “1.1.2”
2022-01-09 22:10:38:173 [WebDriverAgent] *** Checking out CocoaAsyncSocket at “72e0fa9e62d56e5bbb3f67e9cfd5aa85841735bc”
2022-01-09 22:10:38:606 [WebDriverAgent] *** xcodebuild output can be found in /var/folders/rt/8tr32dw169l5gs10jq1jt11w0000gn/T/carthage-xcodebuild.8KnTnx.log
2022-01-09 22:10:56:084 [WebDriverAgent] *** Building scheme “tvOS Framework” in CocoaAsyncSocket.xcodeproj
2022-01-09 22:11:11:473 [WebDriverAgent] A shell task (/usr/bin/xcrun lipo -create /Users/hongxiaoqiu/Library/Caches/org.carthage.CarthageKit/DerivedData/13.2.1_13C100/CocoaAsyncSocket/72e0fa9e62d56e5bbb3f67e9cfd5aa85841735bc/Build/Intermediates.noindex/ArchiveIntermediates/tvOS\ Framework/IntermediateBuildFilesPath/UninstalledProducts/appletvos/CocoaAsyncSocket.framework/CocoaAsyncSocket /Users/hongxiaoqiu/Library/Caches/org.carthage.CarthageKit/DerivedData/13.2.1_13C100/CocoaAsyncSocket/72e0fa9e62d56e5bbb3f67e9cfd5aa85841735bc/Build/Products/Release-appletvsimulator/CocoaAsyncSocket.framework/CocoaAsyncSocket -output /usr/local/lib/node_modules/appium/node_modules/appium-webdriveragent/Carthage/Build/tvOS/CocoaAsyncSocket.framework/CocoaAsyncSocket) failed with exit code 1:
2022-01-09 22:11:11:473 [WebDriverAgent] fatal error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo: /Users/hongxiaoqiu/Library/Caches/org.carthage.CarthageKit/DerivedData/13.2.1_13C100/CocoaAsyncSocket/72e0fa9e62d56e5bbb3f67e9cfd5aa85841735bc/Build/Intermediates.noindex/ArchiveIntermediates/tvOS Framework/IntermediateBuildFilesPath/UninstalledProducts/appletvos/CocoaAsyncSocket.framework/CocoaAsyncSocket and /Users/hongxiaoqiu/Library/Caches/org.carthage.CarthageKit/DerivedData/13.2.1_13C100/CocoaAsyncSocket/72e0fa9e62d56e5bbb3f67e9cfd5aa85841735bc/Build/Products/Release-appletvsimulator/CocoaAsyncSocket.framework/CocoaAsyncSocket have the same architectures (arm64) and can’t be in the same fat output file
2022-01-09 22:11:11:473 [WebDriverAgent] Building universal frameworks with common architectures is not possible. The device and simulator slices for “CocoaAsyncSocket” both build for: arm64
2022-01-09 22:11:11:473 [WebDriverAgent] Rebuild with --use-xcframeworks to create an xcframework bundle instead.
2022-01-09 22:11:11:547 [BaseDriver] Event ‘wdaStartFailed’ logged at 1641737471546 (22:11:11 GMT+0800 (GMT+08:00))
2022-01-09 22:11:11:549 [XCUITest] Unable to launch WebDriverAgent because of xcodebuild failure: Command ‘/bin/bash /usr/local/lib/node_modules/appium/node_modules/appium-webdriveragent/Scripts/carthage-wrapper.sh bootstrap --platform iOS,tvOS’ exited with code 1
2022-01-09 22:11:11:549 [XCUITest] Quitting and uninstalling WebDriverAgent
2022-01-09 22:11:11:550 [WebDriverAgent] Shutting down sub-processes
2022-01-09 22:11:11:551 [iOSSim] Building bundle path map
2022-01-09 22:11:11:714 [iOSSim] The simulator has ‘0’ bundles which have ‘WebDriverAgentRunner-Runner’ as their ‘CFBundleName’:
2022-01-09 22:11:11:715 [WebDriverAgent] No WDAs on the device.
2022-01-09 22:11:21:719 [BaseDriver] Event ‘wdaStartAttempted’ logged at 1641737481718 (22:11:21 GMT+0800 (GMT+08:00))
2022-01-09 22:11:21:720 [XCUITest] Retrying WDA startup (2 of 2)
2022-01-09 22:11:21:720 [WebDriverAgent] Launching WebDriverAgent on the device
2022-01-09 22:11:21:721 [WebDriverAgent] Fetching dependencies
2022-01-09 22:11:21:874 [WebDriverAgent] Installing/updating dependencies for platforms ‘iOS’, ‘tvOS’
2022-01-09 22:11:22:583 [WebDriverAgent] *** Checking out CocoaAsyncSocket at “72e0fa9e62d56e5bbb3f67e9cfd5aa85841735bc”
2022-01-09 22:11:22:584 [WebDriverAgent] *** Checking out YYCache at “1.1.2”
2022-01-09 22:11:22:953 [WebDriverAgent] *** xcodebuild output can be found in /var/folders/rt/8tr32dw169l5gs10jq1jt11w0000gn/T/carthage-xcodebuild.eKlWq6.log
2022-01-09 22:11:40:603 [WebDriverAgent] *** Building scheme “iOS Framework” in CocoaAsyncSocket.xcodeproj
2022-01-09 22:11:57:551 [WebDriverAgent] A shell task (/usr/bin/xcrun lipo -create /Users/hongxiaoqiu/Library/Caches/org.carthage.CarthageKit/DerivedData/13.2.1_13C100/CocoaAsyncSocket/72e0fa9e62d56e5bbb3f67e9cfd5aa85841735bc/Build/Intermediates.noindex/ArchiveIntermediates/iOS\ Framework/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/CocoaAsyncSocket.framework/CocoaAsyncSocket /Users/hongxiaoqiu/Library/Caches/org.carthage.CarthageKit/DerivedData/13.2.1_13C100/CocoaAsyncSocket/72e0fa9e62d56e5bbb3f67e9cfd5aa85841735bc/Build/Products/Release-iphonesimulator/CocoaAsyncSocket.framework/CocoaAsyncSocket -output /usr/local/lib/node_modules/appium/node_modules/appium-webdriveragent/Carthage/Build/iOS/CocoaAsyncSocket.framework/CocoaAsyncSocket) failed with exit code 1:
2022-01-09 22:11:57:551 [WebDriverAgent] fatal error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo: /Users/hongxiaoqiu/Library/Caches/org.carthage.CarthageKit/DerivedData/13.2.1_13C100/CocoaAsyncSocket/72e0fa9e62d56e5bbb3f67e9cfd5aa85841735bc/Build/Intermediates.noindex/ArchiveIntermediates/iOS Framework/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/CocoaAsyncSocket.framework/CocoaAsyncSocket and /Users/hongxiaoqiu/Library/Caches/org.carthage.CarthageKit/DerivedData/13.2.1_13C100/CocoaAsyncSocket/72e0fa9e62d56e5bbb3f67e9cfd5aa85841735bc/Build/Products/Release-iphonesimulator/CocoaAsyncSocket.framework/CocoaAsyncSocket have the same architectures (arm64) and can’t be in the same fat output file
2022-01-09 22:11:57:551 [WebDriverAgent] Building universal frameworks with common architectures is not possible. The device and simulator slices for “CocoaAsyncSocket” both build for: arm64
2022-01-09 22:11:57:551 [WebDriverAgent] Rebuild with --use-xcframeworks to create an xcframework bundle instead.
2022-01-09 22:11:57:622 [WebDriverAgent] Launching WebDriverAgent on the device
2022-01-09 22:11:57:623 [WebDriverAgent] Fetching dependencies
2022-01-09 22:11:57:798 [WebDriverAgent] Installing/updating dependencies for platforms ‘iOS’, ‘tvOS’
2022-01-09 22:11:58:494 [WebDriverAgent] *** Checking out CocoaAsyncSocket at “72e0fa9e62d56e5bbb3f67e9cfd5aa85841735bc”
2022-01-09 22:11:58:495 [WebDriverAgent] *** Checking out YYCache at “1.1.2”
2022-01-09 22:11:58:900 [WebDriverAgent] *** xcodebuild output can be found in /var/folders/rt/8tr32dw169l5gs10jq1jt11w0000gn/T/carthage-xcodebuild.d0hvRt.log
2022-01-09 22:12:17:616 [WebDriverAgent] *** Building scheme “tvOS Framework” in CocoaAsyncSocket.xcodeproj
2022-01-09 22:12:33:414 [WebDriverAgent] A shell task (/usr/bin/xcrun lipo -create /Users/hongxiaoqiu/Library/Caches/org.carthage.CarthageKit/DerivedData/13.2.1_13C100/CocoaAsyncSocket/72e0fa9e62d56e5bbb3f67e9cfd5aa85841735bc/Build/Intermediates.noindex/ArchiveIntermediates/tvOS\ Framework/IntermediateBuildFilesPath/UninstalledProducts/appletvos/CocoaAsyncSocket.framework/CocoaAsyncSocket /Users/hongxiaoqiu/Library/Caches/org.carthage.CarthageKit/DerivedData/13.2.1_13C100/CocoaAsyncSocket/72e0fa9e62d56e5bbb3f67e9cfd5aa85841735bc/Build/Products/Release-appletvsimulator/CocoaAsyncSocket.framework/CocoaAsyncSocket -output /usr/local/lib/node_modules/appium/node_modules/appium-webdriveragent/Carthage/Build/tvOS/CocoaAsyncSocket.framework/CocoaAsyncSocket) failed with exit code 1:
2022-01-09 22:12:33:414 [WebDriverAgent] fatal error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo: /Users/hongxiaoqiu/Library/Caches/org.carthage.CarthageKit/DerivedData/13.2.1_13C100/CocoaAsyncSocket/72e0fa9e62d56e5bbb3f67e9cfd5aa85841735bc/Build/Intermediates.noindex/ArchiveIntermediates/tvOS Framework/IntermediateBuildFilesPath/UninstalledProducts/appletvos/CocoaAsyncSocket.framework/CocoaAsyncSocket and /Users/hongxiaoqiu/Library/Caches/org.carthage.CarthageKit/DerivedData/13.2.1_13C100/CocoaAsyncSocket/72e0fa9e62d56e5bbb3f67e9cfd5aa85841735bc/Build/Products/Release-appletvsimulator/CocoaAsyncSocket.framework/CocoaAsyncSocket have the same architectures (arm64) and can’t be in the same fat output file
2022-01-09 22:12:33:414 [WebDriverAgent] Building universal frameworks with common architectures is not possible. The device and simulator slices for “CocoaAsyncSocket” both build for: arm64
2022-01-09 22:12:33:414 [WebDriverAgent] Rebuild with --use-xcframeworks to create an xcframework bundle instead.
2022-01-09 22:12:33:484 [BaseDriver] Event ‘wdaStartFailed’ logged at 1641737553483 (22:12:33 GMT+0800 (GMT+08:00))
2022-01-09 22:12:33:484 [XCUITest] Unable to launch WebDriverAgent because of xcodebuild failure: Command ‘/bin/bash /usr/local/lib/node_modules/appium/node_modules/appium-webdriveragent/Scripts/carthage-wrapper.sh bootstrap --platform iOS,tvOS’ exited with code 1
2022-01-09 22:12:33:484 [XCUITest] Quitting and uninstalling WebDriverAgent
2022-01-09 22:12:33:485 [WebDriverAgent] Shutting down sub-processes
2022-01-09 22:12:33:485 [iOSSim] Building bundle path map
2022-01-09 22:12:33:489 [iOSSim] The simulator has ‘0’ bundles which have ‘WebDriverAgentRunner-Runner’ as their ‘CFBundleName’:
2022-01-09 22:12:33:490 [WebDriverAgent] No WDAs on the device.
2022-01-09 22:12:33:490 [XCUITest] {}
2022-01-09 22:12:33:491 [DevCon Factory] Releasing connections for C368597A-AC9B-4FE9-B908-A58CC8ADFE69 device on any port number
2022-01-09 22:12:33:491 [DevCon Factory] Found cached connections to release: [“C368597A-AC9B-4FE9-B908-A58CC8ADFE69:8100”]
2022-01-09 22:12:33:491 [DevCon Factory] Cached connections count: 0
2022-01-09 22:12:33:491 [XCUITest] Not clearing log files. Use clearSystemFiles capability to turn on.
2022-01-09 22:12:33:491 [IOSSimulatorLog] Stopping iOS log capture
2022-01-09 22:12:33:502 [BaseDriver] Event ‘newSessionStarted’ logged at 1641737553501 (22:12:33 GMT+0800 (GMT+08:00))
2022-01-09 22:12:33:541 [MJSONWP] Encountered internal error running command: Error: Unable to launch WebDriverAgent because of xcodebuild failure: Command ‘/bin/bash /usr/local/lib/node_modules/appium/node_modules/appium-webdriveragent/Scripts/carthage-wrapper.sh bootstrap --platform iOS,tvOS’ exited with code 1
2022-01-09 22:12:33:541 [MJSONWP] at quitAndUninstall (/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/lib/driver.js:541:15)
2022-01-09 22:12:33:541 [MJSONWP] at /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/lib/driver.js:571:11
2022-01-09 22:12:33:541 [MJSONWP] at wrapped (/usr/local/lib/node_modules/appium/node_modules/asyncbox/lib/asyncbox.js:35:13)
2022-01-09 22:12:33:541 [MJSONWP] at retry (/usr/local/lib/node_modules/appium/node_modules/asyncbox/lib/asyncbox.js:18:13)
2022-01-09 22:12:33:541 [MJSONWP] at retryInterval (/usr/local/lib/node_modules/appium/node_modules/asyncbox/lib/asyncbox.js:45:10)
2022-01-09 22:12:33:542 [MJSONWP] at /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/lib/driver.js:551:7
2022-01-09 22:12:33:547 [MJSONWP] Destroying socket connection
2022-01-09 22:12:33:548 [HTTP] ← POST /wd/hub/session 500 157404 ms - 368
2022-01-09 22:12:33:549 [HTTP]
2022-01-09 22:12:33:557 [HTTP] → DELETE /wd/hub/session
2022-01-09 22:12:33:557 [HTTP] {}
2022-01-09 22:12:33:567 [HTTP] No route found for /wd/hub/session
2022-01-09 22:12:33:568 [HTTP] ← DELETE /wd/hub/session 404 11 ms - 211
2022-01-09 22:12:33:568 [HTTP]
2022-01-09 22:15:26:694 [HTTP] → POST /wd/hub/session
2022-01-09 22:15:26:694 [HTTP] {“desiredCapabilities”:{“app”:“/Users/hongxiaoqiu/Library/Developer/Xcode/DerivedData/UICatalog-fvhycfictuxgmacrimjznqkmygpf/Build/Products/Debug-iphonesimulator/UICatalog.app”,“automationName”:“xcuitest”,“deviceName”:“iPhone 11”,“platformName”:“ios”,“platformVersion”:“15.2”,“newCommandTimeout”:0,“connectHardwareKeyboard”:true}}
2022-01-09 22:15:26:694 [MJSONWP] Calling AppiumDriver.createSession() with args: [{“app”:“/Users/hongxiaoqiu/Library/Developer/Xcode/DerivedData/UICatalog-fvhycfictuxgmacrimjznqkmygpf/Build/Products/Debug-iphonesimulator/UICatalog.app”,“automationName”:“xcuitest”,“deviceName”:“iPhone 11”,“platformName”:“ios”,“platformVersion”:“15.2”,“newCommandTimeout”:0,“connectHardwareKeyboard”:true},null,null]
2022-01-09 22:15:26:695 [BaseDriver] Event ‘newSessionRequested’ logged at 1641737726694 (22:15:26 GMT+0800 (GMT+08:00))
2022-01-09 22:15:26:695 [Appium] Appium v1.19.1 creating new XCUITestDriver (v3.31.1) session
2022-01-09 22:15:26:695 [Appium] There are no active sessions for cleanup
2022-01-09 22:15:26:696 [BaseDriver] Creating session with MJSONWP desired capabilities: {
2022-01-09 22:15:26:697 [BaseDriver] “app”: “/Users/hongxiaoqiu/Library/Developer/Xcode/DerivedData/UICatalog-fvhycfictuxgmacrimjznqkmygpf/Build/Products/Debug-iphonesimulator/UICatalog.app”,
2022-01-09 22:15:26:697 [BaseDriver] “automationName”: “xcuitest”,
2022-01-09 22:15:26:697 [BaseDriver] “deviceName”: “iPhone 11”,
2022-01-09 22:15:26:697 [BaseDriver] “platformName”: “ios”,
2022-01-09 22:15:26:697 [BaseDriver] “platformVersion”: “15.2”,
2022-01-09 22:15:26:698 [BaseDriver] “newCommandTimeout”: 0,
2022-01-09 22:15:26:698 [BaseDriver] “connectHardwareKeyboard”: true
2022-01-09 22:15:26:698 [BaseDriver] }
2022-01-09 22:15:26:701 [BaseDriver] Session created with session id: 4616b1af-e878-40c2-befd-d2ddd169106b
2022-01-09 22:15:26:711 [XCUITest] Current user: ‘hongxiaoqiu’
2022-01-09 22:15:26:712 [XCUITest] iOS SDK Version set to ‘15.2’
2022-01-09 22:15:26:877 [iOSSim] Constructing iOS simulator for Xcode version 13.2.1 with udid ‘C368597A-AC9B-4FE9-B908-A58CC8ADFE69’
2022-01-09 22:15:26:878 [XCUITest] Determining device to run tests on: udid: ‘C368597A-AC9B-4FE9-B908-A58CC8ADFE69’, real device: false
2022-01-09 22:15:26:879 [BaseDriver] Event ‘xcodeDetailsRetrieved’ logged at 1641737726879 (22:15:26 GMT+0800 (GMT+08:00))
2022-01-09 22:15:26:879 [BaseDriver] Using local app ‘/Users/hongxiaoqiu/Library/Developer/Xcode/DerivedData/UICatalog-fvhycfictuxgmacrimjznqkmygpf/Build/Products/Debug-iphonesimulator/UICatalog.app’
2022-01-09 22:15:26:879 [BaseDriver] Event ‘appConfigured’ logged at 1641737726879 (22:15:26 GMT+0800 (GMT+08:00))
2022-01-09 22:15:26:880 [XCUITest] Checking whether app ‘/Users/hongxiaoqiu/Library/Developer/Xcode/DerivedData/UICatalog-fvhycfictuxgmacrimjznqkmygpf/Build/Products/Debug-iphonesimulator/UICatalog.app’ is actually present on file system
2022-01-09 22:15:26:880 [XCUITest] App is present
2022-01-09 22:15:26:880 [iOS] Getting bundle ID from app ‘/Users/hongxiaoqiu/Library/Developer/Xcode/DerivedData/UICatalog-fvhycfictuxgmacrimjznqkmygpf/Build/Products/Debug-iphonesimulator/UICatalog.app’: ‘com.example.apple-samplecode.UICatalog’
2022-01-09 22:15:26:880 [BaseDriver] Event ‘resetStarted’ logged at 1641737726880 (22:15:26 GMT+0800 (GMT+08:00))
2022-01-09 22:15:27:146 [XCUITest] Not scrubbing third party app in anticipation of uninstall
2022-01-09 22:15:27:146 [BaseDriver] Event ‘resetComplete’ logged at 1641737727146 (22:15:27 GMT+0800 (GMT+08:00))
2022-01-09 22:15:27:146 [WebDriverAgent] Using WDA path: ‘/usr/local/lib/node_modules/appium/node_modules/appium-webdriveragent’
2022-01-09 22:15:27:146 [WebDriverAgent] Using WDA agent: ‘/usr/local/lib/node_modules/appium/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj’
2022-01-09 22:15:27:337 [IOSSimulatorLog] Starting log capture for iOS Simulator with udid ‘C368597A-AC9B-4FE9-B908-A58CC8ADFE69’ using simctl
2022-01-09 22:15:27:580 [BaseDriver] Event ‘logCaptureStarted’ logged at 1641737727579 (22:15:27 GMT+0800 (GMT+08:00))
2022-01-09 22:15:27:580 [XCUITest] Setting up simulator
2022-01-09 22:15:27:581 [iOS] No reason to set locale
2022-01-09 22:15:27:581 [iOS] No iOS / app preferences to set
2022-01-09 22:15:27:581 [iOS] Setting did not need to be updated
2022-01-09 22:15:27:582 [iOSSim] Setting preferences of C368597A-AC9B-4FE9-B908-A58CC8ADFE69 Simulator to {“ConnectHardwareKeyboard”:true}
2022-01-09 22:15:27:582 [iOSSim] Setting common Simulator preferences to {“RotateWindowWhenSignaledByGuest”:true,“ConnectHardwareKeyboard”:true}
2022-01-09 22:15:27:594 [iOSSim] Updated C368597A-AC9B-4FE9-B908-A58CC8ADFE69 Simulator preferences at ‘/Users/hongxiaoqiu/Library/Preferences/com.apple.iphonesimulator.plist’ with {“DevicePreferences”:{“C368597A-AC9B-4FE9-B908-A58CC8ADFE69”:{“ConnectHardwareKeyboard”:true}},“RotateWindowWhenSignaledByGuest”:true,“ConnectHardwareKeyboard”:true}
2022-01-09 22:15:27:781 [iOSSim] Got Simulator UI client PID: 1599
2022-01-09 22:15:27:782 [iOSSim] Both Simulator with UDID ‘C368597A-AC9B-4FE9-B908-A58CC8ADFE69’ and the UI client are currently running
2022-01-09 22:15:27:782 [BaseDriver] Event ‘simStarted’ logged at 1641737727782 (22:15:27 GMT+0800 (GMT+08:00))
2022-01-09 22:15:27:782 [XCUITest] Verifying application platform
2022-01-09 22:15:27:785 [XCUITest] CFBundleSupportedPlatforms: [“iPhoneSimulator”]
2022-01-09 22:15:27:990 [XCUITest] Reset requested. Removing app with id ‘com.example.apple-samplecode.UICatalog’ from the device
2022-01-09 22:15:28:248 [XCUITest] Installing ‘/Users/hongxiaoqiu/Library/Developer/Xcode/DerivedData/UICatalog-fvhycfictuxgmacrimjznqkmygpf/Build/Products/Debug-iphonesimulator/UICatalog.app’ on Simulator with UUID ‘C368597A-AC9B-4FE9-B908-A58CC8ADFE69’…
2022-01-09 22:15:30:044 [XCUITest] The app has been installed successfully.
2022-01-09 22:15:30:044 [BaseDriver] Event ‘appInstalled’ logged at 1641737730044 (22:15:30 GMT+0800 (GMT+08:00))
2022-01-09 22:15:30:148 [WebDriverAgent] No obsolete cached processes from previous WDA sessions listening on port 8100 have been found
2022-01-09 22:15:30:148 [DevCon Factory] Requesting connection for device C368597A-AC9B-4FE9-B908-A58CC8ADFE69 on local port 8100
2022-01-09 22:15:30:149 [DevCon Factory] Cached connections count: 0
2022-01-09 22:15:30:149 [DevCon Factory] Successfully requested the connection for C368597A-AC9B-4FE9-B908-A58CC8ADFE69:8100
2022-01-09 22:15:30:152 [XCUITest] Starting WebDriverAgent initialization with the synchronization key ‘XCUITestDriver’
2022-01-09 22:15:30:154 [WD Proxy] Matched ‘/status’ to command name ‘getStatus’
2022-01-09 22:15:30:154 [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
2022-01-09 22:15:30:157 [WD Proxy] connect ECONNREFUSED 127.0.0.1:8100
2022-01-09 22:15:30:158 [WebDriverAgent] WDA is not listening at ‘http://127.0.0.1:8100/
2022-01-09 22:15:30:158 [WebDriverAgent] WDA is currently not running. There is nothing to cache
2022-01-09 22:15:30:158 [XCUITest] Trying to start WebDriverAgent 2 times with 10000ms interval
2022-01-09 22:15:30:159 [XCUITest] These values can be customized by changing wdaStartupRetries/wdaStartupRetryInterval capabilities
2022-01-09 22:15:30:159 [BaseDriver] Event ‘wdaStartAttempted’ logged at 1641737730159 (22:15:30 GMT+0800 (GMT+08:00))
2022-01-09 22:15:30:159 [WebDriverAgent] Launching WebDriverAgent on the device
2022-01-09 22:15:30:159 [WebDriverAgent] Fetching dependencies
2022-01-09 22:15:30:398 [WebDriverAgent] Installing/updating dependencies for platforms ‘iOS’, ‘tvOS’
2022-01-09 22:15:30:834 [WebDriverAgent] Parsed BUILD_DIR configuration value: ‘/Users/hongxiaoqiu/Library/Developer/Xcode/DerivedData/WebDriverAgent-ciegwgvxzxdrqthilmrmczmqvrgu/Build/Products’
2022-01-09 22:15:30:835 [WebDriverAgent] Got derived data root: ‘/Users/hongxiaoqiu/Library/Developer/Xcode/DerivedData/WebDriverAgent-ciegwgvxzxdrqthilmrmczmqvrgu’
2022-01-09 22:15:31:117 [WebDriverAgent] *** Checking out CocoaAsyncSocket at “72e0fa9e62d56e5bbb3f67e9cfd5aa85841735bc”
2022-01-09 22:15:31:118 [WebDriverAgent] *** Checking out YYCache at “1.1.2”
2022-01-09 22:15:31:523 [WebDriverAgent] *** xcodebuild output can be found in /var/folders/rt/8tr32dw169l5gs10jq1jt11w0000gn/T/carthage-xcodebuild.3jNJbW.log
2022-01-09 22:15:52:752 [WebDriverAgent] *** Building scheme “tvOS Framework” in CocoaAsyncSocket.xcodeproj
2022-01-09 22:16:09:409 [WebDriverAgent] A shell task (/usr/bin/xcrun lipo -create /Users/hongxiaoqiu/Library/Caches/org.carthage.CarthageKit/DerivedData/13.2.1_13C100/CocoaAsyncSocket/72e0fa9e62d56e5bbb3f67e9cfd5aa85841735bc/Build/Intermediates.noindex/ArchiveIntermediates/tvOS\ Framework/IntermediateBuildFilesPath/UninstalledProducts/appletvos/CocoaAsyncSocket.framework/CocoaAsyncSocket /Users/hongxiaoqiu/Library/Caches/org.carthage.CarthageKit/DerivedData/13.2.1_13C100/CocoaAsyncSocket/72e0fa9e62d56e5bbb3f67e9cfd5aa85841735bc/Build/Products/Release-appletvsimulator/CocoaAsyncSocket.framework/CocoaAsyncSocket -output /usr/local/lib/node_modules/appium/node_modules/appium-webdriveragent/Carthage/Build/tvOS/CocoaAsyncSocket.framework/CocoaAsyncSocket) failed with exit code 1:
2022-01-09 22:16:09:409 [WebDriverAgent] fatal error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo: /Users/hongxiaoqiu/Library/Caches/org.carthage.CarthageKit/DerivedData/13.2.1_13C100/CocoaAsyncSocket/72e0fa9e62d56e5bbb3f67e9cfd5aa85841735bc/Build/Intermediates.noindex/ArchiveIntermediates/tvOS Framework/IntermediateBuildFilesPath/UninstalledProducts/appletvos/CocoaAsyncSocket.framework/CocoaAsyncSocket and /Users/hongxiaoqiu/Library/Caches/org.carthage.CarthageKit/DerivedData/13.2.1_13C100/CocoaAsyncSocket/72e0fa9e62d56e5bbb3f67e9cfd5aa85841735bc/Build/Products/Release-appletvsimulator/CocoaAsyncSocket.framework/CocoaAsyncSocket have the same architectures (arm64) and can’t be in the same fat output file
2022-01-09 22:16:09:410 [WebDriverAgent] Building universal frameworks with common architectures is not possible. The device and simulator slices for “CocoaAsyncSocket” both build for: arm64
2022-01-09 22:16:09:410 [WebDriverAgent] Rebuild with --use-xcframeworks to create an xcframework bundle instead.
2022-01-09 22:16:09:478 [WebDriverAgent] Launching WebDriverAgent on the device
2022-01-09 22:16:09:480 [WebDriverAgent] Fetching dependencies
2022-01-09 22:16:09:632 [WebDriverAgent] Installing/updating dependencies for platforms ‘iOS’, ‘tvOS’
2022-01-09 22:16:10:339 [WebDriverAgent] *** Checking out CocoaAsyncSocket at “72e0fa9e62d56e5bbb3f67e9cfd5aa85841735bc”
2022-01-09 22:16:10:340 [WebDriverAgent] *** Checking out YYCache at “1.1.2”
2022-01-09 22:16:10:739 [WebDriverAgent] *** xcodebuild output can be found in /var/folders/rt/8tr32dw169l5gs10jq1jt11w0000gn/T/carthage-xcodebuild.cWF6oM.log
2022-01-09 22:16:29:896 [WebDriverAgent] *** Building scheme “iOS Framework” in CocoaAsyncSocket.xcodeproj
2022-01-09 22:16:47:690 [WebDriverAgent] A shell task (/usr/bin/xcrun lipo -create /Users/hongxiaoqiu/Library/Caches/org.carthage.CarthageKit/DerivedData/13.2.1_13C100/CocoaAsyncSocket/72e0fa9e62d56e5bbb3f67e9cfd5aa85841735bc/Build/Intermediates.noindex/ArchiveIntermediates/iOS\ Framework/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/CocoaAsyncSocket.framework/CocoaAsyncSocket /Users/hongxiaoqiu/Library/Caches/org.carthage.CarthageKit/DerivedData/13.2.1_13C100/CocoaAsyncSocket/72e0fa9e62d56e5bbb3f67e9cfd5aa85841735bc/Build/Products/Release-iphonesimulator/CocoaAsyncSocket.framework/CocoaAsyncSocket -output /usr/local/lib/node_modules/appium/node_modules/appium-webdriveragent/Carthage/Build/iOS/CocoaAsyncSocket.framework/CocoaAsyncSocket) failed with exit code 1:
2022-01-09 22:16:47:691 [WebDriverAgent] fatal error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo: /Users/hongxiaoqiu/Library/Caches/org.carthage.CarthageKit/DerivedData/13.2.1_13C100/CocoaAsyncSocket/72e0fa9e62d56e5bbb3f67e9cfd5aa85841735bc/Build/Intermediates.noindex/ArchiveIntermediates/iOS Framework/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/CocoaAsyncSocket.framework/CocoaAsyncSocket and /Users/hongxiaoqiu/Library/Caches/org.carthage.CarthageKit/DerivedData/13.2.1_13C100/CocoaAsyncSocket/72e0fa9e62d56e5bbb3f67e9cfd5aa85841735bc/Build/Products/Release-iphonesimulator/CocoaAsyncSocket.framework/CocoaAsyncSocket have the same architectures (arm64) and can’t be in the same fat output file
2022-01-09 22:16:47:691 [WebDriverAgent] Building universal frameworks with common architectures is not possible. The device and simulator slices for “CocoaAsyncSocket” both build for: arm64
2022-01-09 22:16:47:691 [WebDriverAgent] Rebuild with --use-xcframeworks to create an xcframework bundle instead.
2022-01-09 22:16:47:764 [BaseDriver] Event ‘wdaStartFailed’ logged at 1641737807763 (22:16:47 GMT+0800 (GMT+08:00))
2022-01-09 22:16:47:764 [XCUITest] Unable to launch WebDriverAgent because of xcodebuild failure: Command ‘/bin/bash /usr/local/lib/node_modules/appium/node_modules/appium-webdriveragent/Scripts/carthage-wrapper.sh bootstrap --platform iOS,tvOS’ exited with code 1
2022-01-09 22:16:47:765 [XCUITest] Quitting and uninstalling WebDriverAgent
2022-01-09 22:16:47:765 [WebDriverAgent] Shutting down sub-processes
2022-01-09 22:16:47:765 [iOSSim] Building bundle path map
2022-01-09 22:16:47:927 [iOSSim] The simulator has ‘0’ bundles which have ‘WebDriverAgentRunner-Runner’ as their ‘CFBundleName’:
2022-01-09 22:16:47:928 [WebDriverAgent] No WDAs on the device.
2022-01-09 22:16:57:929 [BaseDriver] Event ‘wdaStartAttempted’ logged at 1641737817928 (22:16:57 GMT+0800 (GMT+08:00))
2022-01-09 22:16:57:930 [XCUITest] Retrying WDA startup (2 of 2)
2022-01-09 22:16:57:930 [WebDriverAgent] Launching WebDriverAgent on the device
2022-01-09 22:16:57:932 [WebDriverAgent] Fetching dependencies
2022-01-09 22:16:58:084 [WebDriverAgent] Installing/updating dependencies for platforms ‘iOS’, ‘tvOS’
2022-01-09 22:16:58:798 [WebDriverAgent] *** Checking out CocoaAsyncSocket at “72e0fa9e62d56e5bbb3f67e9cfd5aa85841735bc”
2022-01-09 22:16:58:798 [WebDriverAgent] *** Checking out YYCache at “1.1.2”
2022-01-09 22:16:59:140 [WebDriverAgent] *** xcodebuild output can be found in /var/folders/rt/8tr32dw169l5gs10jq1jt11w0000gn/T/carthage-xcodebuild.Sw406G.log
2022-01-09 22:17:15:808 [WebDriverAgent] *** Building scheme “iOS Framework” in CocoaAsyncSocket.xcodeproj
2022-01-09 22:17:31:427 [WebDriverAgent] A shell task (/usr/bin/xcrun lipo -create /Users/hongxiaoqiu/Library/Caches/org.carthage.CarthageKit/DerivedData/13.2.1_13C100/CocoaAsyncSocket/72e0fa9e62d56e5bbb3f67e9cfd5aa85841735bc/Build/Intermediates.noindex/ArchiveIntermediates/iOS\ Framework/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/CocoaAsyncSocket.framework/CocoaAsyncSocket /Users/hongxiaoqiu/Library/Caches/org.carthage.CarthageKit/DerivedData/13.2.1_13C100/CocoaAsyncSocket/72e0fa9e62d56e5bbb3f67e9cfd5aa85841735bc/Build/Products/Release-iphonesimulator/CocoaAsyncSocket.framework/CocoaAsyncSocket -output /usr/local/lib/node_modules/appium/node_modules/appium-webdriveragent/Carthage/Build/iOS/CocoaAsyncSocket.framework/CocoaAsyncSocket) failed with exit code 1:
2022-01-09 22:17:31:427 [WebDriverAgent] fatal error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo: /Users/hongxiaoqiu/Library/Caches/org.carthage.CarthageKit/DerivedData/13.2.1_13C100/CocoaAsyncSocket/72e0fa9e62d56e5bbb3f67e9cfd5aa85841735bc/Build/Intermediates.noindex/ArchiveIntermediates/iOS Framework/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/CocoaAsyncSocket.framework/CocoaAsyncSocket and /Users/hongxiaoqiu/Library/Caches/org.carthage.CarthageKit/DerivedData/13.2.1_13C100/CocoaAsyncSocket/72e0fa9e62d56e5bbb3f67e9cfd5aa85841735bc/Build/Products/Release-iphonesimulator/CocoaAsyncSocket.framework/CocoaAsyncSocket have the same architectures (arm64) and can’t be in the same fat output file
2022-01-09 22:17:31:427 [WebDriverAgent] Building universal frameworks with common architectures is not possible. The device and simulator slices for “CocoaAsyncSocket” both build for: arm64
2022-01-09 22:17:31:427 [WebDriverAgent] Rebuild with --use-xcframeworks to create an xcframework bundle instead.
2022-01-09 22:17:31:488 [WebDriverAgent] Launching WebDriverAgent on the device
2022-01-09 22:17:31:490 [WebDriverAgent] Fetching dependencies
2022-01-09 22:17:31:662 [WebDriverAgent] Installing/updating dependencies for platforms ‘iOS’, ‘tvOS’
2022-01-09 22:17:32:333 [WebDriverAgent] *** Checking out CocoaAsyncSocket at “72e0fa9e62d56e5bbb3f67e9cfd5aa85841735bc”
2022-01-09 22:17:32:333 [WebDriverAgent] *** Checking out YYCache at “1.1.2”
2022-01-09 22:17:32:700 [WebDriverAgent] *** xcodebuild output can be found in /var/folders/rt/8tr32dw169l5gs10jq1jt11w0000gn/T/carthage-xcodebuild.5DZlL0.log
2022-01-09 22:17:49:052 [WebDriverAgent] *** Building scheme “tvOS Framework” in CocoaAsyncSocket.xcodeproj
2022-01-09 22:18:04:012 [WebDriverAgent] A shell task (/usr/bin/xcrun lipo -create /Users/hongxiaoqiu/Library/Caches/org.carthage.CarthageKit/DerivedData/13.2.1_13C100/CocoaAsyncSocket/72e0fa9e62d56e5bbb3f67e9cfd5aa85841735bc/Build/Intermediates.noindex/ArchiveIntermediates/tvOS\ Framework/IntermediateBuildFilesPath/UninstalledProducts/appletvos/CocoaAsyncSocket.framework/CocoaAsyncSocket /Users/hongxiaoqiu/Library/Caches/org.carthage.CarthageKit/DerivedData/13.2.1_13C100/CocoaAsyncSocket/72e0fa9e62d56e5bbb3f67e9cfd5aa85841735bc/Build/Products/Release-appletvsimulator/CocoaAsyncSocket.framework/CocoaAsyncSocket -output /usr/local/lib/node_modules/appium/node_modules/appium-webdriveragent/Carthage/Build/tvOS/CocoaAsyncSocket.framework/CocoaAsyncSocket) failed with exit code 1:
2022-01-09 22:18:04:013 [WebDriverAgent] fatal error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo: /Users/hongxiaoqiu/Library/Caches/org.carthage.CarthageKit/DerivedData/13.2.1_13C100/CocoaAsyncSocket/72e0fa9e62d56e5bbb3f67e9cfd5aa85841735bc/Build/Intermediates.noindex/ArchiveIntermediates/tvOS Framework/IntermediateBuildFilesPath/UninstalledProducts/appletvos/CocoaAsyncSocket.framework/CocoaAsyncSocket and /Users/hongxiaoqiu/Library/Caches/org.carthage.CarthageKit/DerivedData/13.2.1_13C100/CocoaAsyncSocket/72e0fa9e62d56e5bbb3f67e9cfd5aa85841735bc/Build/Products/Release-appletvsimulator/CocoaAsyncSocket.framework/CocoaAsyncSocket have the same architectures (arm64) and can’t be in the same fat output file
2022-01-09 22:18:04:013 [WebDriverAgent] Building universal frameworks with common architectures is not possible. The device and simulator slices for “CocoaAsyncSocket” both build for: arm64
2022-01-09 22:18:04:013 [WebDriverAgent] Rebuild with --use-xcframeworks to create an xcframework bundle instead.
2022-01-09 22:18:04:081 [BaseDriver] Event ‘wdaStartFailed’ logged at 1641737884081 (22:18:04 GMT+0800 (GMT+08:00))
2022-01-09 22:18:04:082 [XCUITest] Unable to launch WebDriverAgent because of xcodebuild failure: Command ‘/bin/bash /usr/local/lib/node_modules/appium/node_modules/appium-webdriveragent/Scripts/carthage-wrapper.sh bootstrap --platform iOS,tvOS’ exited with code 1
2022-01-09 22:18:04:084 [XCUITest] Quitting and uninstalling WebDriverAgent
2022-01-09 22:18:04:085 [WebDriverAgent] Shutting down sub-processes
2022-01-09 22:18:04:085 [iOSSim] Building bundle path map
2022-01-09 22:18:04:088 [iOSSim] The simulator has ‘0’ bundles which have ‘WebDriverAgentRunner-Runner’ as their ‘CFBundleName’:
2022-01-09 22:18:04:089 [WebDriverAgent] No WDAs on the device.
2022-01-09 22:18:04:089 [XCUITest] {}
2022-01-09 22:18:04:089 [DevCon Factory] Releasing connections for C368597A-AC9B-4FE9-B908-A58CC8ADFE69 device on any port number
2022-01-09 22:18:04:089 [DevCon Factory] Found cached connections to release: [“C368597A-AC9B-4FE9-B908-A58CC8ADFE69:8100”]
2022-01-09 22:18:04:089 [DevCon Factory] Cached connections count: 0
2022-01-09 22:18:04:090 [XCUITest] Not clearing log files. Use clearSystemFiles capability to turn on.
2022-01-09 22:18:04:090 [IOSSimulatorLog] Stopping iOS log capture
2022-01-09 22:18:04:097 [BaseDriver] Event ‘newSessionStarted’ logged at 1641737884097 (22:18:04 GMT+0800 (GMT+08:00))
2022-01-09 22:18:04:098 [MJSONWP] Encountered internal error running command: Error: Unable to launch WebDriverAgent because of xcodebuild failure: Command ‘/bin/bash /usr/local/lib/node_modules/appium/node_modules/appium-webdriveragent/Scripts/carthage-wrapper.sh bootstrap --platform iOS,tvOS’ exited with code 1
2022-01-09 22:18:04:098 [MJSONWP] at quitAndUninstall (/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/lib/driver.js:541:15)
2022-01-09 22:18:04:098 [MJSONWP] at /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/lib/driver.js:571:11
2022-01-09 22:18:04:098 [MJSONWP] at wrapped (/usr/local/lib/node_modules/appium/node_modules/asyncbox/lib/asyncbox.js:35:13)
2022-01-09 22:18:04:098 [MJSONWP] at retry (/usr/local/lib/node_modules/appium/node_modules/asyncbox/lib/asyncbox.js:18:13)
2022-01-09 22:18:04:098 [MJSONWP] at retryInterval (/usr/local/lib/node_modules/appium/node_modules/asyncbox/lib/asyncbox.js:45:10)
2022-01-09 22:18:04:098 [MJSONWP] at /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/lib/driver.js:551:7
2022-01-09 22:18:04:100 [MJSONWP] Destroying socket connection
2022-01-09 22:18:04:101 [HTTP] ← POST /wd/hub/session 500 157406 ms - 368
2022-01-09 22:18:04:101 [HTTP]
2022-01-09 22:18:04:113 [HTTP] → DELETE /wd/hub/session
2022-01-09 22:18:04:113 [HTTP] {}
2022-01-09 22:18:04:114 [HTTP] No route found for /wd/hub/session
2022-01-09 22:18:04:115 [HTTP] ← DELETE /wd/hub/session 404 1 ms - 211
2022-01-09 22:18:04:115 [HTTP]
2022-01-09 22:19:15:514 [Appium] Received SIGINT - shutting down

wda build失败啦,先手动通过xcode 编译wda成功后再使用appium调用
或者使用新版appium,新版这块简单了很多

手动编译的话,需要xcode开发者账号吗?另外,新版的有教程吗?

你的xcode版本多少?

试试这个

Build Settings → Excluded Architectures

大神,我的xcode是13.2.1,mac的操作系统是big sur11.5.2,appium版本是1.19.1,app可以在模拟器上面进行安装,但是就是装不了wda,困扰了好久,我没有xcode开发者账号,只登录的是app id,xcode按你的设置也不行

image

还有大佬,能帮忙看看嘛?在线等!!!!!!

调整后的log再发下 看下新的报错

感谢校长的回复,试了近一个星期还是不行,换成了appium 1.22版本的,ios模拟器是15.1,但是定位元素不准确,不知道是什么原因?望校长有空帮忙看下啦!!!

你重新刷新下就行了,估计是延迟吧

大佬,不是延迟,应该是appium1.22版本的bug,感谢回复,从练习到放弃。

这个版本我还没验证,这叫做尝鲜的代价。。。