前提・実現したいこと
cocoa podsを使って、SwiftでPhotoTweaksというObjective-Cのライブラリを利用したいと思っています。
しかしどのようにしてobjective-Cで書かれたライブラリを読み込ませればいいのかわからず苦戦しています。ご教授よろしくお願いします。
該当のソースコード
Podfile
1# Uncomment the next line to define a global platform for your project 2 platform :ios, '9.0' 3 4target 'challenge' do 5 # Comment the next line if you're not using Swift and don't want to use dynamic frameworks 6 use_frameworks! 7 8 # Pods for challenge 9pod 'PhotoTweaks' 10end 11
objectiveC
1<challenge-Bridging-Header.h> 2#ifndef challenge_Bridging_Header_h 3#define challenge_Bridging_Header_h 4 5#import "PhotoTweaks.h" 6#endif
Swift
1<PhotoT.swift> 2import UIKit 3import PhotoTweaks 4 5class PhotoT: UIViewController { 6 7 override func viewDidLoad() { 8 super.viewDidLoad() 9 // Do any additional setup after loading the view, typically from a nib. 10 } 11 12 13 override func didReceiveMemoryWarning() { 14 super.didReceiveMemoryWarning() 15 // Dispose of any resources that can be recreated. 16 } 17 18}
発生している問題・エラーメッセージ
<challenge-Bridging-Header.h>
#import "PhotoTweaks.h" ``` に対して、'PhotoTweaks.h' file not found というエラーが発生 ### 補足情報(FW/ツールのバージョンなど) [参考資料](https://qiita.com/yonell/items/dae698f0e3bc30930765) cocoa podsのインストールは[こちら](http://developers.goalist.co.jp/entry/2017/04/20/180931)を参考にしました。 Swiftのversionは4.1.2 Xcodeのversionは9.4.1
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2018/12/17 03:12