遇到问题一:
解决方法:
team中选择开发者账号
遇到问题二:
解决方法:
build settings中修改product bundle identifier
遇到问题三:
UI Test Activity:
Assertion Failure: <unknown>:0: failed: caught "NSInvalidArgumentException", "-[UITestingUITests internalImplementation]: unrecognized selector sent to instance 0x1c01d7ac0"
(
0 CoreFoundation 0x0000000182b29d1c <redacted> + 148
1 libobjc.A.dylib 0x0000000181d78528 objc_exception_throw + 56
2 CoreFoundation 0x0000000182b371c8 <redacted> + 0
3 CoreFoundation 0x0000000182b2f6b0 <redacted> + 1380
4 CoreFoundation 0x0000000182a1501c _CF_forwarding_prep_0 + 92
5 WebDriverAgentLib 0x000000010bd79378 -[FBFailureProofTestCase setUp] + 96
6 XCTest 0x0000000104c72c88 __48-[XCTestCase _performSetUpSequenceWithSelector:]_block_invoke_2 + 492
7 XCTest 0x0000000104cc80d8 +[XCTestCase(Failures) performFailableBlock:testCase:testCaseRun:shouldInterruptTest:] + 84
8 XCTest 0x0000000104cc7fdc -[XCTestCase(Failures) _performTurningExceptionsIntoFailuresInterruptAfterHandling:block:] + 132
9 XCTest 0x0000000104c72a7c __48-[XCTestCase _performSetUpSequenceWithSelector:]_block_invoke + 116
10 XCTest 0x0000000104cd9d7c -[XCTContext _runActivityNamed:type:block:] + 248
11 XCTest 0x0000000104c7b480 -[XCTestCase startActivityWithTitle:type:block:] + 200
12 XCTest 0x0000000104c7b630 -[XCTestCase startActivityWithTitle:block:] + 72
13 XCTest 0x0000000104c729f8 -[XCTestCase _performSetUpSequenceWithSelector:] + 108
14 XCTest 0x0000000104c70d68 -[XCTestCase invokeTest] + 728
15 XCTest 0x0000000104c728b8 __26-[XCTestCase performTest:]_block_invoke_2 + 44
16 XCTest 0x0000000104cc80d8 +[XCTestCase(Failures) performFailableBlock:testCase:testCaseRun:shouldInterruptTest:] + 84
17 XCTest 0x0000000104cc7fdc -[XCTestCase(Failures) _performTurningExceptionsIntoFailuresInterruptAfterHandling:block:] + 132
18 XCTest 0x0000000104c727f0 __26-[XCTestCase performTest:]_block_invoke.366 + 96
19 XCTest 0x0000000104cda48c +[XCTContext runInContextForTestCase:block:] + 212
20 XCTest 0x0000000104c720dc -[XCTestCase performTest:] + 540
21 XCTest 0x0000000104cb586c -[XCTest runTest] + 60
22 XCTest 0x0000000104c6c5c8 __27-[XCTestSuite performTest:]_block_invoke + 268
23 XCTest 0x0000000104c6be58 __59-[XCTestSuite _performProtectedSectionForTest:testSection:]_block_invoke + 40
24 XCTest 0x0000000104cda48c +[XCTContext runInContextForTestCase:block:] + 212
25 XCTest 0x0000000104c6be00 -[XCTestSuite _performProtectedSectionForTest:testSection:] + 156
26 XCTest 0x0000000104c6c150 -[XCTestSuite performTest:] + 320
27 XCTest 0x0000000104cb586c -[XCTest runTest] + 60
28 XCTest 0x0000000104c6c5c8 __27-[XCTestSuite performTest:]_block_invoke + 268
29 XCTest 0x0000000104c6be58 __59-[XCTestSuite _performProtectedSectionForTest:testSection:]_block_invoke + 40
30 XCTest 0x0000000104cda48c +[XCTContext runInContextForTestCase:block:] + 212
31 XCTest 0x0000000104c6be00 -[XCTestSuite _performProtectedSectionForTest:testSection:] + 156
32 XCTest 0x0000000104c6c150 -[XCTestSuite performTest:] + 320
33 XCTest 0x0000000104cb586c -[XCTest runTest] + 60
34 XCTest 0x0000000104c6c5c8 __27-[XCTestSuite performTest:]_block_invoke + 268
35 XCTest 0x0000000104c6be58 __59-[XCTestSuite _performProtectedSectionForTest:testSection:]_block_invoke + 40
36 XCTest 0x0000000104cda48c +[XCTContext runInContextForTestCase:block:] + 212
37 XCTest 0x0000000104c6be00 -[XCTestSuite _performProtectedSectionForTest:testSection:] + 156
38 XCTest 0x0000000104c6c150 -[XCTestSuite performTest:] + 320
39 XCTest 0x0000000104cb586c -[XCTest runTest] + 60
40 XCTest 0x0000000104cec5f0 __44-[XCTTestRunSession runTestsAndReturnError:]_block_invoke + 176
41 XCTest 0x0000000104cec6f0 __44-[XCTTestRunSession runTestsAndReturnError:]_block_invoke.100 + 108
42 XCTest 0x0000000104c86354 -[XCTestObservationCenter _observeTestExecutionForBlock:] + 588
43 XCTest 0x0000000104cec388 -[XCTTestRunSession runTestsAndReturnError:] + 592
44 XCTest 0x0000000104c50bbc -[XCTestDriver runTestsAndReturnError:] + 428
45 XCTest 0x0000000104cd6424 _XCTestMain + 2396
46 WebDriverAgentRunner-Runner 0x0000000104927818 -[_XCTRunnerAppDelegate applicationWillResignActive:] + 0
47 WebDriverAgentRunner-Runner 0x0000000104927720 _XCTRunnerRunTests + 0
48 CoreFoundation 0x0000000182ad20fc <redacted> + 20
49 CoreFoundation 0x0000000182ad19cc <redacted> + 288
50 CoreFoundation 0x0000000182acf6dc <redacted> + 1068
51 CoreFoundation 0x00000001829effb8 CFRunLoopRunSpecific + 436
52 GraphicsServices 0x0000000184887f84 GSEventRunModal + 100
53 UIKit 0x000000018bfc42e8 UIApplicationMain + 208
54 WebDriverAgentRunner-Runner 0x00000001049279e4 main + 192
55 libdyld.dylib 0x000000018251256c <redacted> + 4
)
解决方法:
xcode降级到11.3.1
官方下载xcode11.3.1的xip包,本地双击打开会自动导入到xcode中
下载地址:https://developer.apple.com/download/more/
导入完成后,在Xcode-preferences-locations-command line tools中选中xcode11.3.1