質問編集履歴
2
ソースコード追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -1,15 +1,38 @@
|
|
1
1
|
start.xcodeproj内のstartTests.swift内部でのエラーです。
|
2
2
|
|
3
3
|
```swift
|
4
|
+
import XCTest
|
5
|
+
@testable import start
|
6
|
+
|
7
|
+
class startTests: XCTestCase {
|
8
|
+
|
9
|
+
override func setUp() {
|
10
|
+
super.setUp()
|
11
|
+
// Put setup code here. This method is called before the invocation of each test method in the class.
|
12
|
+
}
|
13
|
+
|
14
|
+
override func tearDown() {
|
15
|
+
// Put teardown code here. This method is called after the invocation of each test method in the class.
|
16
|
+
super.tearDown()
|
17
|
+
}
|
18
|
+
|
19
|
+
func testExample() {
|
20
|
+
// This is an example of a functional test case.
|
21
|
+
// Use XCTAssert and related functions to verify your tests produce the correct results.
|
22
|
+
}
|
23
|
+
|
4
|
-
|
24
|
+
func testPerformanceExample() {
|
5
25
|
// This is an example of a performance test case.
|
6
26
|
|
7
27
|
self.measureBlock {
|
8
28
|
// Put the code you want to measure the time of here.
|
9
29
|
}
|
10
30
|
}
|
31
|
+
|
32
|
+
}
|
11
33
|
|
12
34
|
```
|
13
35
|
self.measureBlock {の行に、
|
14
36
|
Value of type 'startTests' has no member 'measure'と言うエラーが発生しており、改善策を教えてください。
|
37
|
+
single view project作成後にpod installを行った際にエラーが出ました。
|
15
38
|
xcode ver:7.3.1
|
1
問題箇所の詳細
title
CHANGED
File without changes
|
body
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
start.xcodeproj内のstartTests.swift内部でのエラーです。
|
2
|
+
|
1
3
|
```swift
|
2
4
|
func testPerformanceExample() {
|
3
5
|
// This is an example of a performance test case.
|