簡體   English   中英

在向現有項目中添加新pod時,“無法發出預編譯頭文件”

[英]'failed to emit precompiled header' while adding new pod into existing Project

我在Obj-C中有一個項目。

因為我面臨的問題是在向Project中添加新pod后無法發出預編譯的標頭。

在Project中,我正在使用Bridging標頭同時處理obj-C和swift。

在Pod文件中,我添加了SendBird

我的Pod文件是:

Podfile

平台:ios,“ 9.0”

abstract_target'Virgla'做use_frameworks!

pod 'ACKategories', :git => 'https://github.com/AckeeCZ/ACKategories.git', :tag => '2.3'    
pod 'FlurrySDK'
pod 'Fabric'
pod 'Crashlytics'

pod 'SSZipArchive'
pod 'SVProgressHUD'
pod 'MWFeedParser'
pod 'SDWebImage', '~> 3.7'
pod 'UIActivityIndicator-for-SDWebImage', '1.2'
pod 'RestKit', '~> 0.24' #was 0.20.3
pod 'MagicalRecord', '2.2'
pod 'MSCellAccessory'
pod 'UIAlertView+Blocks'
pod 'RMPickerViewController', '2.0.3'
pod 'Masonry', '1.0.2'
pod 'DateTools'
pod 'Parse', '~> 1.6'
pod 'TTTAttributedLabel', '2.0.0'
pod 'AFNetworking', '~> 2.6'

pod 'SendBirdSDK'


target 'SoMinn' do
end

target 'GrandAuto' do
end

target 'Tests' do
    inherit! :search_paths

    pod 'Kiwi'
    # pod 'Kiwi/XCTest'
end

同時添加無法建立這個錯誤

第一個錯誤:

/Users/narvind/Desktop/Project/Project-Bridging-Header.h:34:9:找不到“ AFNetworking.h”文件

如果我從橋接頭中刪除了它,那么它將移至下一個,如果我也將其刪除了,則移至下一個。

第二次錯誤:

無法發出預編譯的標頭'/Users/narvind/Library/Developer/Xcode/DerivedData/Virgla-fqsvarxwchjhswedkkofchexhztp/Build/Intermediates.noindex/PrecompiledHeaders/Project_1-Bridging-Header-swift_108K1J1Z1C1F1 narvind /桌面/項目/ PROJECT_1橋接-Header.h”

這是解決failed to emit precompiled header警告的方法:

NetworkingHelper.h (我的網絡管理員)中,使用@import AFNetworking; 而不是#import "AFHTTPSessionManager.h"

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM