相关疑难解决方法(0)

Xcode 4 - 构建输出目录

我在Xcode4(beta 5)中设置/定位输出文件时遇到问题.他们被安置在某处~/Library/Developer/ugly_path/....我甚至无法在我的产品上选择"show in finder".对于简单的C项目,Foundation工具甚至Cocoa包也是如此.调试工作正常.

你能否指出我在哪里以及如何设置/构建输出目录?(我知道这听起来很愚蠢,我已经在Xcode3中编写了好几个月,但我无法在Xcode4测试版中找到它).

非常感谢.

ide xcode4

216
推荐指数
6
解决办法
16万
查看次数

iOS - 运行Swift的单元测试时找不到'MyProject-Swift.h'文件

我正在尝试为我的项目设置单元测试.它是一个现有的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)

unit-testing header ios swift

91
推荐指数
4
解决办法
2万
查看次数

标签 统计

header ×1

ide ×1

ios ×1

swift ×1

unit-testing ×1

xcode4 ×1