折腾:
【未解决】Win中VMWare中macOS中调试抓包项目
期间,去Win中VMWare中macOS中编译,结果报错:
crifanli@crifanlideMac ~/dev/DevRoot/appcrawler/iOSAutomation/refer/WebDriverAgent master ● idevice_id -l 3dc13714e21415898e8e2c2863d96990a4d69c97 crifanli@crifanlideMac ~/dev/DevRoot/appcrawler/iOSAutomation/refer/WebDriverAgent master ● xcodebuild -project WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination "id=`idevice_id -l | head -n1`" test note: Using new build system note: Planning build note: Constructing build description error: No profiles for 'com.crifan.WebDriverAgentRunner.xctrunner' were found: Xcode couldn't find any iOS App Development provisioning profiles matching 'com.crifan.WebDriverAgentRunner.xctrunner'. Automatic signing is disabled and unable to generate a profile. To enable automatic signing, pass -allowProvisioningUpdates to xcodebuild. (in target 'WebDriverAgentRunner' from project 'WebDriverAgent') error: No signing certificate "iOS Development" found: No "iOS Development" signing certificate matching team ID "3WRHBBSBW4" with a private key was found. (in target 'WebDriverAgentLib' from project 'WebDriverAgent') Test session results, code coverage, and logs: /Users/crifanli/Library/Developer/Xcode/DerivedData/WebDriverAgent-gnyekpyvnvazcmexpmwpnbequpft/Logs/Test/Test-WebDriverAgentRunner-2020.06.28_20-16-59-+0800.xcresult Testing failed: No profiles for 'com.crifan.WebDriverAgentRunner.xctrunner' were found: Xcode couldn't find any iOS App Development provisioning profiles matching 'com.crifan.WebDriverAgentRunner.xctrunner'. Automatic signing is disabled and unable to generate a profile. To enable automatic signing, pass -allowProvisioningUpdates to xcodebuild. No signing certificate "iOS Development" found: No "iOS Development" signing certificate matching team ID "3WRHBBSBW4" with a private key was found. Testing cancelled because the build failed. ** TEST FAILED **
所以要去解决此问题。
看到此处WebDriverAgentRunner的target是None:
感觉有问题?
去看看原始环境如何
好像是:
缺少signing certificate和provisioning profiles
那去:打开XCode,重新针对此处已连接的iPhone7P,编译和test一次,估计之后就可以了?
去试试
【已解决】macOS中用XCode编译和运行WebDriverAgentRunner项目
然后回去继续试试xcodebuild
即可正常执行,输出完整log
crifanli@crifanlideMac ~/dev/DevRoot/appcrawler/iOSAutomation/refer/WebDriverAgent master ● xcodebuild -project WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination "id=`idevice_id -l | head -n1`" test note: Using new build system note: Planning build note: Constructing build description WriteAuxiliaryFile /Users/crifanli/Library/Developer/Xcode/DerivedData/WebDriverAgent-gnyekpyvnvazcmexpmwpnbequpft/Build/Intermediates.noindex/WebDriverAgent.build/Debug-iphoneos/WebDriverAgentLib.build/WebDriverAgentLib-all-non-framework-target-headers.hmap (in target 'WebDriverAgentLib' from project 'WebDriverAgent') cd /Users/crifanli/dev/DevRoot/appcrawler/iOSAutomation/refer/WebDriverAgent write-file /Users/crifanli/Library/Developer/Xcode/DerivedData/WebDriverAgent-gnyekpyvnvazcmexpmwpnbequpft/Build/Intermediates.noindex/WebDriverAgent.build/Debug-iphoneos/WebDriverAgentLib.build/WebDriverAgentLib-all-non-framework-target-headers.hmap ProcessInfoPlistFile /Users/crifanli/Library/Developer/Xcode/DerivedData/WebDriverAgent-gnyekpyvnvazcmexpmwpnbequpft/Build/Products/Debug-iphoneos/WebDriverAgentLib.framework/Info.plist /Users/crifanli/dev/DevRoot/appcrawler/iOSAutomation/refer/WebDriverAgent/WebDriverAgentLib/Info.plist (in target 'WebDriverAgentLib' from project 'WebDriverAgent') cd /Users/crifanli/dev/DevRoot/appcrawler/iOSAutomation/refer/WebDriverAgent builtin-infoPlistUtility /Users/crifanli/dev/DevRoot/appcrawler/iOSAutomation/refer/WebDriverAgent/WebDriverAgentLib/Info.plist -producttype com.apple.product-type.framework -expandbuildsettings -format binary -platform iphoneos -requiredArchitecture arm64 -o /Users/crifanli/Library/Developer/Xcode/DerivedData/WebDriverAgent-gnyekpyvnvazcmexpmwpnbequpft/Build/Products/Debug-iphoneos/WebDriverAgentLib.framework/Info.plist warning: User-supplied CFBundleIdentifier value 'com.facebook.wda.lib' in the Info.plist must be the same as the PRODUCT_BUNDLE_IDENTIFIER build setting value 'com.facebook.WebDriverAgentLib'. (in target 'WebDriverAgentLib' from project 'WebDriverAgent') CodeSign /Users/crifanli/Library/Developer/Xcode/DerivedData/WebDriverAgent-gnyekpyvnvazcmexpmwpnbequpft/Build/Products/Debug-iphoneos/WebDriverAgentLib.framework (in target 'WebDriverAgentLib' from project 'WebDriverAgent') cd /Users/crifanli/dev/DevRoot/appcrawler/iOSAutomation/refer/WebDriverAgent export CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate Signing Identity: "Apple Development: xxx (UBFSP2P5PM)" /usr/bin/codesign --force --sign E36A2FE1B1A0D9140F1C58FC4826A30EEB4BE600 --timestamp=none /Users/crifanli/Library/Developer/Xcode/DerivedData/WebDriverAgent-gnyekpyvnvazcmexpmwpnbequpft/Build/Products/Debug-iphoneos/WebDriverAgentLib.framework /Users/crifanli/Library/Developer/Xcode/DerivedData/WebDriverAgent-gnyekpyvnvazcmexpmwpnbequpft/Build/Products/Debug-iphoneos/WebDriverAgentLib.framework: replacing existing signature ProcessProductPackaging "" /Users/crifanli/Library/Developer/Xcode/DerivedData/WebDriverAgent-gnyekpyvnvazcmexpmwpnbequpft/Build/Intermediates.noindex/WebDriverAgent.build/Debug-iphoneos/WebDriverAgentRunner.build/WebDriverAgentRunner.xctest.xcent (in target 'WebDriverAgentRunner' from project 'WebDriverAgent') cd /Users/crifanli/dev/DevRoot/appcrawler/iOSAutomation/refer/WebDriverAgent Entitlements: { "application-identifier" = "3WRHBBSBW4.com.crifan.WebDriverAgentRunner.xctrunner"; "com.apple.developer.team-identifier" = 3WRHBBSBW4; "get-task-allow" = 1; "keychain-access-groups" = ( "3WRHBBSBW4.com.crifan.WebDriverAgentRunner.xctrunner" ); } builtin-productPackagingUtility -entitlements -format xml -o /Users/crifanli/Library/Developer/Xcode/DerivedData/WebDriverAgent-gnyekpyvnvazcmexpmwpnbequpft/Build/Intermediates.noindex/WebDriverAgent.build/Debug-iphoneos/WebDriverAgentRunner.build/WebDriverAgentRunner.xctest.xcent WriteAuxiliaryFile /Users/crifanli/Library/Developer/Xcode/DerivedData/WebDriverAgent-gnyekpyvnvazcmexpmwpnbequpft/Build/Intermediates.noindex/WebDriverAgent.build/Debug-iphoneos/WebDriverAgentRunner.build/WebDriverAgentRunner-all-non-framework-target-headers.hmap (in target 'WebDriverAgentRunner' from project 'WebDriverAgent') cd /Users/crifanli/dev/DevRoot/appcrawler/iOSAutomation/refer/WebDriverAgent write-file /Users/crifanli/Library/Developer/Xcode/DerivedData/WebDriverAgent-gnyekpyvnvazcmexpmwpnbequpft/Build/Intermediates.noindex/WebDriverAgent.build/Debug-iphoneos/WebDriverAgentRunner.build/WebDriverAgentRunner-all-non-framework-target-headers.hmap ProcessInfoPlistFile /Users/crifanli/Library/Developer/Xcode/DerivedData/WebDriverAgent-gnyekpyvnvazcmexpmwpnbequpft/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/Info.plist /Users/crifanli/dev/DevRoot/appcrawler/iOSAutomation/refer/WebDriverAgent/WebDriverAgentRunner/Info.plist (in target 'WebDriverAgentRunner' from project 'WebDriverAgent') cd /Users/crifanli/dev/DevRoot/appcrawler/iOSAutomation/refer/WebDriverAgent builtin-infoPlistUtility /Users/crifanli/dev/DevRoot/appcrawler/iOSAutomation/refer/WebDriverAgent/WebDriverAgentRunner/Info.plist -producttype com.apple.product-type.bundle.ui-testing -expandbuildsettings -format binary -platform iphoneos -additionalcontentfile /Users/crifanli/Library/Developer/Xcode/DerivedData/WebDriverAgent-gnyekpyvnvazcmexpmwpnbequpft/Build/Intermediates.noindex/WebDriverAgent.build/Debug-iphoneos/WebDriverAgentRunner.build/ProductTypeInfoPlistAdditions.plist -requiredArchitecture arm64 -o /Users/crifanli/Library/Developer/Xcode/DerivedData/WebDriverAgent-gnyekpyvnvazcmexpmwpnbequpft/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/Info.plist warning: User-supplied CFBundleIdentifier value 'com.facebook.wda.runner' in the Info.plist must be the same as the PRODUCT_BUNDLE_IDENTIFIER build setting value 'com.crifan.WebDriverAgentRunner'. (in target 'WebDriverAgentRunner' from project 'WebDriverAgent') GenerateDSYMFile /Users/crifanli/Library/Developer/Xcode/DerivedData/WebDriverAgent-gnyekpyvnvazcmexpmwpnbequpft/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest.dSYM /Users/crifanli/Library/Developer/Xcode/DerivedData/WebDriverAgent-gnyekpyvnvazcmexpmwpnbequpft/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/WebDriverAgentRunner (in target 'WebDriverAgentRunner' from project 'WebDriverAgent') cd /Users/crifanli/dev/DevRoot/appcrawler/iOSAutomation/refer/WebDriverAgent /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/dsymutil /Users/crifanli/Library/Developer/Xcode/DerivedData/WebDriverAgent-gnyekpyvnvazcmexpmwpnbequpft/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/WebDriverAgentRunner -o /Users/crifanli/Library/Developer/Xcode/DerivedData/WebDriverAgent-gnyekpyvnvazcmexpmwpnbequpft/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest.dSYM PBXCp /Users/crifanli/Library/Developer/Xcode/DerivedData/WebDriverAgent-gnyekpyvnvazcmexpmwpnbequpft/Build/Products/Debug-iphoneos/WebDriverAgentLib.framework /Users/crifanli/Library/Developer/Xcode/DerivedData/WebDriverAgent-gnyekpyvnvazcmexpmwpnbequpft/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/Frameworks/WebDriverAgentLib.framework (in target 'WebDriverAgentRunner' from project 'WebDriverAgent') cd /Users/crifanli/dev/DevRoot/appcrawler/iOSAutomation/refer/WebDriverAgent builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -exclude Headers -exclude PrivateHeaders -exclude Modules -exclude \*.tbd -bitcode-strip all -bitcode-strip-tool /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/bitcode_strip -resolve-src-symlinks /Users/crifanli/Library/Developer/Xcode/DerivedData/WebDriverAgent-gnyekpyvnvazcmexpmwpnbequpft/Build/Products/Debug-iphoneos/WebDriverAgentLib.framework /Users/crifanli/Library/Developer/Xcode/DerivedData/WebDriverAgent-gnyekpyvnvazcmexpmwpnbequpft/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/Frameworks /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/bitcode_strip /Users/crifanli/Library/Developer/Xcode/DerivedData/WebDriverAgent-gnyekpyvnvazcmexpmwpnbequpft/Build/Products/Debug-iphoneos/WebDriverAgentLib.framework/Frameworks/YYCache.framework/YYCache -r -o /Users/crifanli/Library/Developer/Xcode/DerivedData/WebDriverAgent-gnyekpyvnvazcmexpmwpnbequpft/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/Frameworks/WebDriverAgentLib.framework/Frameworks/YYCache.framework/YYCache /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/bitcode_strip /Users/crifanli/Library/Developer/Xcode/DerivedData/WebDriverAgent-gnyekpyvnvazcmexpmwpnbequpft/Build/Products/Debug-iphoneos/WebDriverAgentLib.framework/Frameworks/RoutingHTTPServer.framework/RoutingHTTPServer -r -o /Users/crifanli/Library/Developer/Xcode/DerivedData/WebDriverAgent-gnyekpyvnvazcmexpmwpnbequpft/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/Frameworks/WebDriverAgentLib.framework/Frameworks/RoutingHTTPServer.framework/RoutingHTTPServer /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/bitcode_strip /Users/crifanli/Library/Developer/Xcode/DerivedData/WebDriverAgent-gnyekpyvnvazcmexpmwpnbequpft/Build/Products/Debug-iphoneos/WebDriverAgentLib.framework/WebDriverAgentLib -r -o /Users/crifanli/Library/Developer/Xcode/DerivedData/WebDriverAgent-gnyekpyvnvazcmexpmwpnbequpft/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/Frameworks/WebDriverAgentLib.framework/WebDriverAgentLib CodeSign /Users/crifanli/Library/Developer/Xcode/DerivedData/WebDriverAgent-gnyekpyvnvazcmexpmwpnbequpft/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/Frameworks/WebDriverAgentLib.framework (in target 'WebDriverAgentRunner' from project 'WebDriverAgent') cd /Users/crifanli/dev/DevRoot/appcrawler/iOSAutomation/refer/WebDriverAgent export CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate Signing Identity: "Apple Development: xxx (UBFSP2P5PM)" Provisioning Profile: "iOS Team Provisioning Profile: com.crifan.WebDriverAgentRunner.xctrunner" (b6c6958a-2208-460f-91c2-ea1d2c090823) /usr/bin/codesign --force --sign E36A2FE1B1A0D9140F1C58FC4826A30EEB4BE600 --timestamp=none --preserve-metadata=identifier,entitlements,flags /Users/crifanli/Library/Developer/Xcode/DerivedData/WebDriverAgent-gnyekpyvnvazcmexpmwpnbequpft/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/Frameworks/WebDriverAgentLib.framework /Users/crifanli/Library/Developer/Xcode/DerivedData/WebDriverAgent-gnyekpyvnvazcmexpmwpnbequpft/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/Frameworks/WebDriverAgentLib.framework: replacing existing signature CodeSign /Users/crifanli/Library/Developer/Xcode/DerivedData/WebDriverAgent-gnyekpyvnvazcmexpmwpnbequpft/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest (in target 'WebDriverAgentRunner' from project 'WebDriverAgent') cd /Users/crifanli/dev/DevRoot/appcrawler/iOSAutomation/refer/WebDriverAgent export CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate Signing Identity: "Apple Development: xxx (UBFSP2P5PM)" Provisioning Profile: "iOS Team Provisioning Profile: com.crifan.WebDriverAgentRunner.xctrunner" (b6c6958a-2208-460f-91c2-ea1d2c090823) /usr/bin/codesign --force --sign E36A2FE1B1A0D9140F1C58FC4826A30EEB4BE600 --entitlements /Users/crifanli/Library/Developer/Xcode/DerivedData/WebDriverAgent-gnyekpyvnvazcmexpmwpnbequpft/Build/Intermediates.noindex/WebDriverAgent.build/Debug-iphoneos/WebDriverAgentRunner.build/WebDriverAgentRunner.xctest.xcent --timestamp=none /Users/crifanli/Library/Developer/Xcode/DerivedData/WebDriverAgent-gnyekpyvnvazcmexpmwpnbequpft/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest /Users/crifanli/Library/Developer/Xcode/DerivedData/WebDriverAgent-gnyekpyvnvazcmexpmwpnbequpft/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest: replacing existing signature CodeSign /Users/crifanli/Library/Developer/Xcode/DerivedData/WebDriverAgent-gnyekpyvnvazcmexpmwpnbequpft/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app (in target 'WebDriverAgentRunner' from project 'WebDriverAgent') cd /Users/crifanli/dev/DevRoot/appcrawler/iOSAutomation/refer/WebDriverAgent export CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate Signing Identity: "Apple Development: xxx (UBFSP2P5PM)" Provisioning Profile: "iOS Team Provisioning Profile: com.crifan.WebDriverAgentRunner.xctrunner" (b6c6958a-2208-460f-91c2-ea1d2c090823) /usr/bin/codesign --force --sign E36A2FE1B1A0D9140F1C58FC4826A30EEB4BE600 --entitlements /Users/crifanli/Library/Developer/Xcode/DerivedData/WebDriverAgent-gnyekpyvnvazcmexpmwpnbequpft/Build/Intermediates.noindex/WebDriverAgent.build/Debug-iphoneos/WebDriverAgentRunner.build/WebDriverAgentRunner.xctest.xcent --timestamp=none /Users/crifanli/Library/Developer/Xcode/DerivedData/WebDriverAgent-gnyekpyvnvazcmexpmwpnbequpft/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app /Users/crifanli/Library/Developer/Xcode/DerivedData/WebDriverAgent-gnyekpyvnvazcmexpmwpnbequpft/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app: replacing existing signature Testing started on 'iPhone7P' 2020-06-29 17:12:41.545 xcodebuild[8651:166154] IDETestOperationsObserverDebug: Writing diagnostic log for test session to: /Users/crifanli/Library/Developer/Xcode/DerivedData/WebDriverAgent-gnyekpyvnvazcmexpmwpnbequpft/Logs/Test/Test-WebDriverAgentRunner-2020.06.29_17-12-38-+0800.xcresult/Staging/1_Test/Diagnostics/WebDriverAgentRunner-FD9C291E-A304-4011-8918-E8F58DF5C21E/WebDriverAgentRunner-CB8DC3C4-811E-4960-82D8-EA8E93EDB869/Session-WebDriverAgentRunner-2020-06-29_171241-X7NuPr.log 2020-06-29 17:12:41.546 xcodebuild[8651:165988] [MT] IDETestOperationsObserverDebug: (FB8443AB-74DF-4AC8-BFA7-435A1BAAFF62) Beginning test session WebDriverAgentRunner-FB8443AB-74DF-4AC8-BFA7-435A1BAAFF62 at 2020-06-29 17:12:41.544 with Xcode 11C505 on target 📱<DVTiOSDevice (0x7f9db2d12cf0), iPhone7P, iPhone, 12.3.1 (16F203), 3dc13714e21415898e8e2c2863d96990a4d69c97> { deviceSerialNumber: F2LS90LGHG03 identifier: 3dc13714e21415898e8e2c2863d96990a4d69c97 deviceClass: iPhone deviceName: iPhone7P deviceIdentifier: 3dc13714e21415898e8e2c2863d96990a4d69c97 productVersion: 12.3.1 buildVersion: 16F203 deviceSoftwareVersion: 12.3.1 (16F203) deviceArchitecture: arm64 deviceTotalCapacity: 27497967616 deviceAvailableCapacity: 17424109568 deviceIsTransient: NO ignored: NO deviceIsBusy: NO deviceIsPaired: YES deviceIsActivated: YES deviceActivationState: Activated isPasscodeLocked: NO deviceType: <DVTDeviceType:0x7f9db275aca0 Xcode.DeviceType.iPhone> supportedDeviceFamilies: ( 1 ) applications: (null) provisioningProfiles: (null) hasInternalSupport: NO hasWritableSystem: NO isSupportedOS: YES bootArgs: (null) nextBootArgs: (null) connected: YES isWirelessEnabled: NO connectionType: direct hostname: (null) bonjourServiceName: 2c:f0:a2:e9:bd:0d@fe80::2ef0:a2ff:fee9:bd0d._apple-mobdev2._tcp.local. activeProxiedDevice: (null) } (12.3.1 (16F203)) 2020-06-29 17:12:41.709 xcodebuild[8651:165988] [MT] IDETestOperationsObserverDebug: (FB8443AB-74DF-4AC8-BFA7-435A1BAAFF62) Finished requesting crash reports. Continuing with testing. 2020-06-29 17:12:47.816602+0800 WebDriverAgentRunner-Runner[10290:4674685] Running tests... Test Suite 'All tests' started at 2020-06-29 17:12:48.498 Test Suite 'WebDriverAgentRunner.xctest' started at 2020-06-29 17:12:48.499 Test Suite 'UITestingUITests' started at 2020-06-29 17:12:48.500 2020-06-29 17:12:48.503403+0800 WebDriverAgentRunner-Runner[10290:4674685] [MC] System group container for systemgroup.com.apple.configurationprofiles path is /private/var/containers/Shared/SystemGroup/systemgroup.com.apple.configurationprofiles 2020-06-29 17:12:48.525297+0800 WebDriverAgentRunner-Runner[10290:4674805] [MC] Invalidating cache 2020-06-29 17:12:48.530256+0800 WebDriverAgentRunner-Runner[10290:4674685] [MC] Reading from public effective user settings. 2020-06-29 17:12:48.562189+0800 WebDriverAgentRunner-Runner[10290:4674685] [User Defaults] Couldn't write value for key KeyboardAutocorrection in CFPrefsPlistSource<0x2811a8900> (Domain: com.apple.Preferences, User: kCFPreferencesCurrentUser, ByHost: No, Container: (null), Contents Need Refresh: No): setting preferences outside an application's container requires user-preference-write or file-write-data sandbox access 2020-06-29 17:12:48.580525+0800 WebDriverAgentRunner-Runner[10290:4674803] [MC] Invalidating cache 2020-06-29 17:12:48.583663+0800 WebDriverAgentRunner-Runner[10290:4674685] [MC] Reading from public effective user settings. 2020-06-29 17:12:48.585187+0800 WebDriverAgentRunner-Runner[10290:4674685] [User Defaults] Couldn't write value for key KeyboardPrediction in CFPrefsPlistSource<0x2811a8900> (Domain: com.apple.Preferences, User: kCFPreferencesCurrentUser, ByHost: No, Container: (null), Contents Need Refresh: No): setting preferences outside an application's container requires user-preference-write or file-write-data sandbox access 2020-06-29 17:12:48.586550+0800 WebDriverAgentRunner-Runner[10290:4674685] [User Defaults] Couldn't write value for key KeyboardShowPredictionBar in CFPrefsPlistSource<0x2811a8900> (Domain: com.apple.Preferences, User: kCFPreferencesCurrentUser, ByHost: No, Container: (null), Contents Need Refresh: No): setting preferences outside an application's container requires user-preference-write or file-write-data sandbox access 2020-06-29 17:12:48.608107+0800 WebDriverAgentRunner-Runner[10290:4674685] [User Defaults] Couldn't write value for key DidShowGestureKeyboardIntroduction in CFPrefsPlistSource<0x2811a8900> (Domain: com.apple.Preferences, User: kCFPreferencesCurrentUser, ByHost: No, Container: (null), Contents Need Refresh: No): setting preferences outside an application's container requires user-preference-write or file-write-data sandbox access Test Case '-[UITestingUITests testRunner]' started. t = 0.00s Start Test at 2020-06-29 17:12:48.611 t = 0.00s Set Up 2020-06-29 17:12:48.672502+0800 WebDriverAgentRunner-Runner[10290:4674685] Built at Jun 29 2020 17:03:33 2020-06-29 17:12:48.695395+0800 WebDriverAgentRunner-Runner[10290:4674685] ServerURLHere->http://192.168.31.59:8100<-ServerURLHere 2020-06-29 17:12:48.702107+0800 WebDriverAgentRunner-Runner[10290:4674802] Using singleton test manager
注:
不过后续,启动xcodebuild时,导致XCode的test manager退出了。
然后退出XCode,又导致此次受影响,也退出了:
2020-06-29 17:13:30.521 xcodebuild[8651:166375] IDETestOperationsObserverDebug: Writing diagnostic log for test session to: /Users/crifanli/Library/Developer/Xcode/DerivedData/WebDriverAgent-gnyekpyvnvazcmexpmwpnbequpft/Logs/Test/Test-WebDriverAgentRunner-2020.06.29_17-12-38-+0800.xcresult/Staging/1_Test/Diagnostics/WebDriverAgentRunner-FD9C291E-A304-4011-8918-E8F58DF5C21E/WebDriverAgentRunner-CB8DC3C4-811E-4960-82D8-EA8E93EDB869/Session-WebDriverAgentRunner-2020-06-29_171330-1YoqB2.log 2020-06-29 17:13:30.522 xcodebuild[8651:165988] [MT] IDETestOperationsObserverDebug: (A0E2A831-B48F-43CB-9D52-B6E6759B49F9) Beginning test session WebDriverAgentRunner-A0E2A831-B48F-43CB-9D52-B6E6759B49F9 at 2020-06-29 17:13:30.521 with Xcode 11C505 on target 📱<DVTiOSDevice (0x7f9db2d12cf0), iPhone7P, iPhone, 12.3.1 (16F203), 3dc13714e21415898e8e2c2863d96990a4d69c97> { deviceSerialNumber: F2LS90LGHG03 identifier: 3dc13714e21415898e8e2c2863d96990a4d69c97 deviceClass: iPhone deviceName: iPhone7P deviceIdentifier: 3dc13714e21415898e8e2c2863d96990a4d69c97 productVersion: 12.3.1 buildVersion: 16F203 deviceSoftwareVersion: 12.3.1 (16F203) deviceArchitecture: arm64 deviceTotalCapacity: 27497967616 deviceAvailableCapacity: 17424109568 deviceIsTransient: NO ignored: NO deviceIsBusy: NO deviceIsPaired: YES deviceIsActivated: YES deviceActivationState: Activated isPasscodeLocked: NO deviceType: <DVTDeviceType:0x7f9db275aca0 Xcode.DeviceType.iPhone> supportedDeviceFamilies: ( 1 ) applications: {( <DTDKApplication: 0x7f9db2fb3f20>: 善友筹 (/private/var/containers/Bundle/Application/339C5717-AC68-479E-8B59-BD8355376D98/shanyc.app), <DTDKApplication: 0x7f9db2f73d70>: 抖音短视频 (/private/var/containers/Bundle/Application/19026699-5B44-4CCC-85A0-D259648D7F7C/Aweme.app), <DTDKApplication: 0x7f9db3019470>: 途虎养车 (/private/var/containers/Bundle/Application/F04A9898-1A2D-4F07-9514-9F56689CCE13/Tuhu.app), <DTDKApplication: 0x7f9db2f781e0>: 链工宝 (/private/var/containers/Bundle/Application/E11C1310-9228-4285-80A7-D32105B8E7FE/链工宝.app), <DTDKApplication: 0x7f9db2f71810>: 大众点评 (/private/var/containers/Bundle/Application/1AD5404C-85C7-4646-82F0-69F32C37C0E4/DPScope.app), <DTDKApplication: 0x7f9db2c6a560>: 无忧筹 (/private/var/containers/Bundle/Application/96CAFD4E-99C4-4E02-B7DB-D19D6922CC65/无忧筹.app), <DTDKApplication: 0x7f9db306c680>: 京东金融 (/private/var/containers/Bundle/Application/9D6D5A0D-967F-4411-B1AE-E389C077DB8A/JDJRAppShell.app), <DTDKApplication: 0x7f9db2fc90e0>: 探探 (/private/var/containers/Bundle/Application/A01CE541-8E85-4F5E-96F8-91FEE048BBEA/putong.app), <DTDKApplication: 0x7f9db2f47200>: 轻松互助 (/private/var/containers/Bundle/Application/805B9CA7-EDB8-468A-8431-502875E4F3A1/EasyHealth.app), <DTDKApplication: 0x7f9db3002930>: QQ音乐 (/private/var/containers/Bundle/Application/5229AAD4-21A9-4498-9F68-31F1C41A41D5/QQMusic.app), <DTDKApplication: 0x7f9db3017ce0>: 个人所得税 (/private/var/containers/Bundle/Application/D8A6F478-0243-4049-8634-C8CA80D1993D/itis.app), <DTDKApplication: 0x7f9db2fb3e90>: 钉钉 (/private/var/containers/Bundle/Application/FB2830F2-9FF6-488B-A50D-854F612DD422/DingTalk.app), <DTDKApplication: 0x7f9db2fbffb0>: 米家 (/private/var/containers/Bundle/Application/F511AF81-D8D6-4DA9-AF23-CCB02190FFF9/MiHome.app), <DTDKApplication: 0x7f9db2f4aa40>: BOSS直聘 (/private/var/containers/Bundle/Application/22C0CCA3-9FAF-4F94-8EB0-2F0B157AF5AA/BossZP.app), <DTDKApplication: 0x7f9db306b690>: 交管12123 (/private/var/containers/Bundle/Application/9E7596EC-A131-46B7-8332-C24C452616B4/12123.app), <DTDKApplication: 0x7f9db2fb8300>: 网易云音乐 (/private/var/containers/Bundle/Application/DFFB6661-91FF-4701-A416-4076A1958BBA/neteasemusic.app), <DTDKApplication: 0x7f9db25d2030>: 百度 (/private/var/containers/Bundle/Application/25B4A4C2-F033-456B-8FD3-213B9E3D2F89/BaiduBoxApp.app), <DTDKApplication: 0x7f9db2fab480>: 康爱公社 (/private/var/containers/Bundle/Application/2855F714-DD67-4123-8CC2-DD8BBE2071FD/HBuilder.app), <DTDKApplication: 0x7f9db304e230>: 恒易贷 (/private/var/containers/Bundle/Application/0D4BC963-8720-4BEA-ADCD-9354278A1ED2/HC-HYD.app), <DTDKApplication: 0x7f9db2f51c80>: 微视 (/private/var/containers/Bundle/Application/39289F11-C815-4F5E-A033-C45545E9CE1E/microvision.app), <DTDKApplication: 0x7f9db2fa99b0>: 百度网盘 (/private/var/containers/Bundle/Application/55DA9613-CE34-4EB3-A626-90E8F66639DD/netdisk_iPhone.app), <DTDKApplication: 0x7f9db3070760>: 斑马AI课 (/private/var/containers/Bundle/Application/A3756E28-7E6F-4B62-A5C6-E10EAEC3BEF9/Zebstrika.app), <DTDKApplication: 0x7f9db2fbe5b0>: 蜻蜓FM (/private/var/containers/Bundle/Application/91332C9C-0806-4811-8E0C-998D44E9215B/QTTourAppStore.app), <DTDKApplication: 0x7f9db2fc0250>: 必要 (/private/var/containers/Bundle/Application/188708DC-68FE-4DF0-AD52-673DB3F0661A/必要.app), <DTDKApplication: 0x7f9db305f7f0>: 企业微信 (/private/var/containers/Bundle/Application/5248DF68-A629-4875-A46B-0DACAAC2252E/wework.app), <DTDKApplication: 0x7f9db2f8a080>: 爱思极速版 (/private/var/containers/Bundle/Application/EE21F185-9B01-4AC9-9452-13F5BBB1D348/AsTools.app), <DTDKApplication: 0x7f9db304fe80>: WebDriverAgentRunner-Runner (/private/var/containers/Bundle/Application/EA2BD82A-715E-4E61-82D5-722FD823DC53/WebDriverAgentRunner-Runner.app), <DTDKApplication: 0x7f9db2f8c7c0>: 淘宝特价版 (/private/var/containers/Bundle/Application/57F2E6B5-B7E5-4872-B5A4-BB60B627A744/LTao4iPhone.app), <DTDKApplication: 0x7f9db2fb2f90>: 微博 (/private/var/containers/Bundle/Application/F94DA4B1-1266-45EE-AFB4-1975D0699DCA/Weibo.app), <DTDKApplication: 0x7f9db2fa2240>: 益路同行 (/private/var/containers/Bundle/Application/7B25D8CC-FACA-4623-9CA2-449AF4D07F50/益路同行.app), <DTDKApplication: 0x7f9db2fc01c0>: 微信 (/private/var/containers/Bundle/Application/428C4331-432E-46EF-AA6B-7EDD3AC15B53/WeChat.app), <DTDKApplication: 0x7f9db306eb00>: 手机淘宝 (/private/var/containers/Bundle/Application/92D52F4E-7B0C-4162-94A1-18D17B0953FF/Taobao4iPhone.app), <DTDKApplication: 0x7f9db2f92960>: 酷狗音乐 (/private/var/containers/Bundle/Application/13815F3D-F704-42C6-9746-7FC6F1FF1998/kugou.app), <DTDKApplication: 0x7f9db305f5e0>: 梦幻花园 (/private/var/containers/Bundle/Application/9C01FC84-F9E5-420B-B949-CE37A6AFE3E2/g.app), <DTDKApplication: 0x7f9db2fb49c0>: 腾讯会议 (/private/var/containers/Bundle/Application/87EF88D3-ABD3-4974-8060-7D2E3BD44FBF/WeMeetApp.app), <DTDKApplication: 0x7f9db278bb40>: 梦幻西游网页版 (/private/var/containers/Bundle/Application/D3AC4BFC-7E27-4A27-B5CB-DAC050730A80/xyh5.app), <DTDKApplication: 0x7f9db300e130>: WPS Office (/private/var/containers/Bundle/Application/EAA526C3-80E5-43D5-89C7-3304C204ECB6/wpsoffice.app) )} provisioningProfiles: ( "iOS Team Provisioning Profile: com.crifan.WebDriverAgentRunner.xctrunner", "iOS Team Provisioning Profile: com.crifan.WebDriverAgentRunner", "iOS Team Provisioning Profile: com.crifan.WebDriverAgentRunner.xctrunner" ) hasInternalSupport: NO hasWritableSystem: NO isSupportedOS: YES bootArgs: (null) nextBootArgs: (null) connected: YES isWirelessEnabled: NO connectionType: direct hostname: (null) bonjourServiceName: 2c:f0:a2:e9:bd:0d@fe80::2ef0:a2ff:fee9:bd0d._apple-mobdev2._tcp.local. activeProxiedDevice: (null) } (12.3.1 (16F203)) 2020-06-29 17:13:30.526 xcodebuild[8651:165988] [MT] IDETestOperationsObserverDebug: (A0E2A831-B48F-43CB-9D52-B6E6759B49F9) Finished requesting crash reports. Continuing with testing. 2020-06-29 17:13:34.361943+0800 WebDriverAgentRunner-Runner[10301:4675270] Running tests... Restarting after unexpected exit or crash in UITestingUITests/testRunner; summary will include totals from previous launches. Test Suite 'Selected tests' started at 2020-06-29 17:13:35.049 Test Suite 'WebDriverAgentRunner.xctest' started at 2020-06-29 17:13:35.050 Test Suite 'WebDriverAgentRunner.xctest' failed at 2020-06-29 17:13:35.051. Executed 1 test, with 1 failure (0 unexpected) in 0.000 (0.001) seconds Test Suite 'WebDriverAgentLib.framework' started at 2020-06-29 17:13:35.054 Test Suite 'WebDriverAgentLib.framework' passed at 2020-06-29 17:13:35.055. Executed 0 tests, with 0 failures (0 unexpected) in 0.000 (0.001) seconds Test Suite 'Selected tests' failed at 2020-06-29 17:13:35.056. Executed 1 test, with 1 failure (0 unexpected) in 0.000 (0.007) seconds 2020-06-29 17:13:35.080 xcodebuild[8651:165988] [MT] IDETestOperationsObserverDebug: 53.560 elapsed -- Testing started completed. 2020-06-29 17:13:35.080 xcodebuild[8651:165988] [MT] IDETestOperationsObserverDebug: 0.000 sec, +0.000 sec -- start 2020-06-29 17:13:35.080 xcodebuild[8651:165988] [MT] IDETestOperationsObserverDebug: 53.560 sec, +53.559 sec -- end Test session results, code coverage, and logs: /Users/crifanli/Library/Developer/Xcode/DerivedData/WebDriverAgent-gnyekpyvnvazcmexpmwpnbequpft/Logs/Test/Test-WebDriverAgentRunner-2020.06.29_17-12-38-+0800.xcresult Failing tests: WebDriverAgentRunner: -[UITestingUITests testRunner] ** TEST FAILED **
所以,不要同时运行XCode和xcodebuild,只重新运行xcodebuild,估计就可以了。
果然就可以了。
至此,算是xcodebuild就正常运行了。
【总结】
此次macOS中运行
xcodebuild -project WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination "id=`idevice_id -l | head -n1`" test
报错:
Testing failed: No profiles for 'com.crifan.WebDriverAgentRunner.xctrunner' were found: Xcode couldn't find any iOS App Development provisioning profiles matching 'com.crifan.WebDriverAgentRunner.xctrunner'. Automatic signing is disabled and unable to generate a profile. To enable automatic signing, pass -allowProvisioningUpdates to xcodebuild. No signing certificate "iOS Development" found: No "iOS Development" signing certificate matching team ID "3WRHBBSBW4" with a private key was found. Testing cancelled because the build failed. ** TEST FAILED **
原因:XCode的项目WebDriverAgent.xcodeproj,是没有code sign(和生成对应provision file)
解决办法:
用XCode打开WebDriverAgent.xcodeproj,且登录Apple账号,然后去Download provision file,再去确认code sign已自动完成,即可正常用XCode编译和运行(测试)
了:Product-》Test,即可。
有了Xcode的第一次的正常编译和运行后,之后再去xcodebuild:
xcodebuild -project WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination "id=`idevice_id -l | head -n1`" test
就没问题了。
转载请注明:在路上 » 【已解决】Win中VMWare中macOS的wda直接用xcodebuild编译报错:error No profiles for were found Xcode couldn’t find any iOS App Development provisioning profiles