2017-02-07 74 views
0

我試圖將VKVideoPlayer CocoaPod添加到NativeScript應用程序,但生成失敗,'DDLog.h' file not found with <angled> include; use "quotes" insteadNativeScript「文件找不到角度包含;使用'quote'而不是」

這包括在VKVideoPlayer引用的庫(VKFoundation)中。這個VKFoundation.h文件又引用DDLog.h(來自CocoaLumberjack)和DTCoreText.h(來自DTCoreText)。

所有這些庫都被VKVideoPlayer Pod引入。

這是命令行相關的錯誤......

/Users/burkeholland/dev/burkeholland/nativescript-video-player/demo/platforms/ios/Pods/VKFoundation/Classes/ios/VKFoundation.h:6:9: error: 
     'DDLog.h' file not found with <angled> include; use "quotes" instead 
#import <DDLog.h> 
     ^~~~~~~~~ 
     "DDLog.h" 
/Users/burkeholland/dev/burkeholland/nativescript-video-player/demo/platforms/ios/Pods/VKFoundation/Classes/ios/VKFoundation.h:7:9: error: 
     'DTCoreText.h' file not found with <angled> include; use "quotes" instead 
#import <DTCoreText.h> 
     ^~~~~~~~~~~~~~ 
     "DTCoreText.h" 
2 errors generated. 

錯誤可以從這個GitHub project轉載。

回答

0

該錯誤本身表示引用的頭文件(DDLog.h)中的一個引用了<,但編譯器找不到它。所以它建議你嘗試使用"而不是角度(<)。這是XCode無法找到引用標題時引發的常見錯誤。 根據你的問題,我相信問題是VKFoundation Cocoapod,它是VKVideoPlayer Pod的依賴。這裏有一個相關的問題: https://github.com/viki-org/VKFoundation/issues/5

你可以嘗試使用建議的Podfile,看看它是否適合你。

+0

這種類型的問題解決了這個問題,但是產生了一個單獨的錯誤,包括'在模塊頭中包含非模塊化頭'Reachability.Reachability''。這似乎是通過在Podfile中設置'['CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES'] ='YES'來解決的,但是這帶來了'包含錯誤'找不到的文件。一種瘋狂的圈子。我已經用我最新的Podfile更新了Github項目。 –