2017-06-06 50 views
1

的CocoaPods總是產生含有沒有辦法在CocoaPods中禁用默認的pch文件?

#ifdef __OBJC__ 
#import <UIKit/UIKit.h> 
#else 
#ifndef FOUNDATION_EXPORT 
#if defined(__cplusplus) 
#define FOUNDATION_EXPORT extern "C" 
#else 
#define FOUNDATION_EXPORT extern 
#endif 
#endif 
#endif 

構建庫中的默認的PCH文件。我發現prefix_header_file選項將文件附加到默認值。

我想在CocoaPods內部和外部構建庫並避免pch文件。

有沒有辦法在CocoaPods中完全禁用pch文件?

+0

參見HTTPS:/ /github.com/CocoaPods/CocoaPods/pull/7044 –

回答

0

經過更多研究,我發現CocoaPods沒有禁用prefix_header生成的選項。

我寄了一個Pull Request使它成爲可能,它最近合併。

下一的CocoaPods後1.4.0測試,將有可能通過podspec屬性prefix_header_file設置爲false禁用prefix_header代:

spec.prefix_header_file =假

相關問題