作者热门文章
- mongodb - 在 MongoDB mapreduce 中,如何展平值对象?
- javascript - 对象传播与 Object.assign
- html - 输入类型 ="submit"Vs 按钮标签它们可以互换吗?
- sql - 使用 MongoDB 而不是 MS SQL Server 的优缺点
什么是伞头?它的用途是什么?我收到如下所示的警告。这是什么意思?
<module-includes>:1:1: warning: umbrella header for module 'XCTest' does not include header 'XCTextCase+AsynchronousTesting.h' [-Wincomplete-umbrella]
#import "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Frameworks/XCTest.framework/Headers/XCTest.h"
最佳答案
umbrella header是框架的“主”头文件。它的用途是你可以写
#import <UIKit/UIKit.h>
而不是
#import <UIKit/UIViewController.h>
#import <UIKit/UILabel.h>
#import <UIKit/UIButton.h>
#import <UIKit/UIDatePicker.h>
等等。
对我来说,<XCTest/XCTestCase+AsynchronousTesting.h>
包含在 <XCTest/XCTest.h>
中.也许它不适合你?在这种情况下,添加
#import <XCTest/XCTestCase+AsynchronousTesting.h>
手动。
关于ios - 什么是伞头?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31238761/
我不确定何时使用mix和何时使用phoenix创建伞形应用程序。 我已经在网上阅读了很多文章,但是他们不清楚在phoenix上使用mix的理由,反之亦然。 混合给出: - apps/ - config
我是一名优秀的程序员,十分优秀!