これが私のポッドファイルです:
platform :ios, '8.0'
use_frameworks!
target 'myApp' do
pod 'PureLayout', '~> 2.0.6'
pod 'MMDrawerController', '~> 0.5.7'
pod 'SwiftyJSON', '~> 2.2.0'
end
そして、ここに私のブライダルヘッダーがあります:
#import <PureLayout/PureLayout.h>
#import <MMDrawerController/MMDrawerController.h>
#import <MMDrawerController/MMDrawerVisualState.h>
この変数を設定するとvar drawerController: MMDrawerController!
、次のエラーが発生します。
Use of undeclared type 'MMDrawerController'
すべてのポッドを削除して実行しpod install
、クリアしてpod cache
実行しようとしましたがpod update
、まだ運がありません。どんな助けでも大歓迎です:)
これらの行を完全に削除できるため、ブリッジヘッダーに何か問題があるに違いありません。
#import <MMDrawerController/MMDrawerController.h>
#import <MMDrawerController/MMDrawerVisualState.h>
MMDrawerController
そして、プログラムを使用しているファイルをインポートする限り、プログラムは正常に実行されます。ただし、これは逆に機能しません