疑似static library用到的framework沒連進來?

12 views
Skip to first unread message

JmeHsieh

unread,
Mar 5, 2012, 11:47:26 PM3/5/12
to cocoah...@googlegroups.com
以下是我最近要使用一個open source的static library的狀況

我用Xcode 4.2

我把clone下來的專案複製進我的project資料夾,打開其資料夾並把把他的.xcodeproj拖拉進我的專案裡 (in Xcode)

有在target/build phase中link staticLibrary.a了

有在target/Header Search Paths設定好source header files了

但是build的時候出現了

Undefined symbols for architecture i386:
  "_OBJC_CLASS_$_MFMailComposeViewController", referenced from:

仔細查看我用的static library裡面某個source檔有用到MessageUI.framework

於是我在自己的target中手動加入MessageUI.framework

就build過了...然後一切就可以正常使用

也就是說static library用到的MessageUI.framework我沒有連上?

所以是不是我少設定了什麼導致static library用到framework我沒連進來?
Reply all
Reply to author
Forward
0 new messages