Error in importing Bond Framework in iOS app -
i hope can me problem. i'm trying use dynamic uiimage in program supported bond framework. so, getting error (no such module 'bond') while importing bond framework. installed third party library cocoapods , integrated project.yet have same problem.
here sample of program code
import foundation import parse import bond
// 1 class post : pfobject, pfsubclassing {
var image: dynamic<uiimage?> = dynamic(nil) // dynamic image property var photouploadtask: uibackgroundtaskidentifier? // 2 @nsmanaged var imagefile: pffile? @nsmanaged var user: pfuser? //mark: pfsubclassing protocol // 3 static func parseclassname() -> string { return "post" } // 4 override init () { super.init() } override class func initialize() { var oncetoken : dispatch_once_t = 0; dispatch_once(&oncetoken) { // inform parse subclass self.registersubclass() } }
did follow cocoapods instructions? https://cocoapods.org/#get_started
your podfile should this:
platform :ios, '8.0' use_frameworks! target 'mytargetname' pod 'bond', '~> 3.9' end
where mytargetname
name of target.
after you've configured podfile, run following command same directory:
pod install
additionally, make sure open yourapp.xcworkspace instead of yourapp.xcodeproj.
Comments
Post a Comment