在OC項(xiàng)目中使用swift時(shí),遇到Cannot find protocol declaration for 'xxx'時(shí),可能需要在橋接文件中import相應(yīng)的頭文件,比如:Cannot find protocol declaration for 'SKPaymentTransactionObserver' 和 Cannot find protocol declaration for 'SKProductsRequestDelegate',我需要在橋接文件中添加#import <StoreKit/StoreKit.h>,再編譯就通過(guò)了.
記錄一下.