我在Xcode4(beta 5)中设置/定位输出文件时遇到问题.他们被安置在某处~/Library/Developer/ugly_path/....我甚至无法在我的产品上选择"show in finder".对于简单的C项目,Foundation工具甚至Cocoa包也是如此.调试工作正常.
你能否指出我在哪里以及如何设置/构建输出目录?(我知道这听起来很愚蠢,我已经在Xcode3中编写了好几个月,但我无法在Xcode4测试版中找到它).
非常感谢.
我正在尝试为我的项目设置单元测试.它是一个现有的Objective-C应用程序,我最近添加了一个Swift类.我已经设置了'MyProject-Swift.h'和Swift Bridging文件('MyProject'和'MyProjectTest'),我能够使用Objective-C和Swift代码构建和运行应用程序.
但是,现在我想在新的Swift类上运行一些单元测试.我设置了我的测试文件,它看起来如下:
MySwiftClassTests.swift:
import UIKit
import XCTest
import MyProject
class MySwiftClassTests: XCTestCase {
override func setUp() {
super.setUp()
// Put setup code here. This method is called before the invocation of each test method in the class.
}
override func tearDown() {
// Put teardown code here. This method is called after the invocation of each test method in the class.
super.tearDown()
}
func testExample() {
// This is an example of a functional test case.
XCTAssert(true, "Pass")
} …Run Code Online (Sandbox Code Playgroud)