start.xcodeproj内のstartTests.swift内部でのエラーです。
swift
1 import XCTest 2@testable import start 3 4class startTests: XCTestCase { 5 6 override func setUp() { 7 super.setUp() 8 // Put setup code here. This method is called before the invocation of each test method in the class. 9 } 10 11 override func tearDown() { 12 // Put teardown code here. This method is called after the invocation of each test method in the class. 13 super.tearDown() 14 } 15 16 func testExample() { 17 // This is an example of a functional test case. 18 // Use XCTAssert and related functions to verify your tests produce the correct results. 19 } 20 21 func testPerformanceExample() { 22 // This is an example of a performance test case. 23 24 self.measureBlock { 25 // Put the code you want to measure the time of here. 26 } 27 } 28 29} 30
self.measureBlock {の行に、
Value of type 'startTests' has no member 'measure'と言うエラーが発生しており、改善策を教えてください。
single view project作成後にpod installを行った際にエラーが出ました。
xcode ver:7.3.1
それだけでは判断できないので、もう少しコードを公開してください。
回答1件
あなたの回答
tips
プレビュー