我通過jenkins將iOS應用存檔,作爲使用xcode作爲構建工具的持續集成過程的一部分。我們有三個與應用程序集成的框架。一切工作正常,但突然我在jenkins建設時遇到了下面的問題。Swift:無法在Jenkins中存檔時導入橋接標頭
Bridging-Header.h:25:9: error: 'xxx/xxy.h' file not found
import xxx/xxy.h
error: failed to import bridging header '/xxxx/xxxx/xxxx/xxxxxx_App-Bridging-Header.h'
** BUILD FAILED *****
當我在xcode(7.3.1)中單獨構建時構建成功,但通過jenkins失敗,出現上述錯誤。
您必須在構建設置中的目標C橋頭再次拖放橋文件。看完全教程:https://iosdevcenters.blogspot.com/2015/12/how-to-calling-objective-c-code-in-swift.html –
@kirit Sry它沒有工作。在xcode中,當我構建成功,但在jenkins中導入橋接頭時無法找到框架類文件。 – suresh
@suresh再次刪除您的橋接文件您可以再次執行本教程中的所有步驟,並在橋頭中添加您的框架和Objective-C文件。 –