我有一個在 Xcode 13 上運行的 Swift 專案。該專案構建完美,沒有任何錯誤,但是當我嘗試存檔時,我收到與 Objective-c 橋相關的錯誤。

我的 .h 網橋檔案已正確創建。這就是為什么當我構建它時它可以完美運行。僅當我想存檔以進行發布時才會發生這種情況。
這是我的 .h 網橋檔案的內容:
#ifndef TestApp_TestApp_Bridging_Header_h
#define TestApp_TestApp_Bridging_Header_h
#import "ECSlidingViewController.h"
#import "DSLCalendarView.h"
#import "UINavigationController Orientation.h"
#endif
我的 Target - Build Settings 下也有對 Bridge 檔案的參考:

任何線索我可以嘗試什么。我需要這個來準備發布。
uj5u.com熱心網友回復:
您還需要在發布部分設定橋接頭路徑。
轉載請註明出處,本文鏈接:https://www.uj5u.com/gongcheng/426063.html
