|
您好,这是xcode的一个Bug,解决方案如下:
1、添加如下代码到AppDelegate.h:- #ifdef DEBUG
- FILE *fopen$UNIX2003(const char *filename, const char *mode);
- size_t fwrite$UNIX2003(const void *ptr, size_t size, size_t nitems, FILE *stream);
- #endif
复制代码 2、添加如下代码到AppDelegate.m:- #ifdef DEBUG
- FILE *fopen$UNIX2003(const char *filename, const char *mode) {
- return fopen(filename, mode);
- }
- size_t fwrite$UNIX2003(const void *ptr, size_t size, size_t nitems, FILE *stream) {
- return fwrite(ptr, size, nitems, stream);
- }
- #endif
复制代码 可参考:
Code coverage with Xcode 4.2 - Missing files
http://stackoverflow.com/questio ... e-4-2-missing-files
Xcode6_beta Build Fix: Undefined Symbols _fwrite$UNIX2003
http://blog.ready4go.com/blog/2014/06/06/xcode6-beta-build-fix/
iOS dev: How to setup quality metrics on your Jenkins job?
http://blog.octo.com/en/jenkins- ... rd-ios-development/
|
|