2013-05-29 34 views
0

我想在我的項目中使用Muhku Calendar。當我導入所有文件並想運行時,會出現2個錯誤;進口muhku庫

1: Undefined symbols for architecture i386: "_OBJC_CLASS_$_EKEventStore", referenced from: objc-class-ref in MAEventKitDataSource.o ld: symbol(s) not found for architecture i386

2: clang: error: linker command failed with exit code 1 (use -v to see invocation)

有沒有人能幫助我?

回答

1

從錯誤消息中,可能會猜測您需要將EventKit框架添加到您的項目中。我可以告訴你,因爲文檔告訴我EKEventStore是EventKit框架中的一個類。在Xcode中:

  • 選擇目標
  • 去構建階段
  • 點擊旁邊的
  • 滾動鏈接二進制與圖書館的底部
  • 點擊「+」按鈕來添加三角形新框架
  • 從列表中選擇EventKit.framework
  • 單擊添加按鈕
+0

你好迦勒,你是一個絕對的天才:-)謝謝隊友 –