適用於iPhone的admob sdk使用專有的libAdMobNoThumb.a
庫和基於Objective-C源的TouchJSON庫。TouchJSON的Monotouch綁定?
有人知道TouchJSON的C#綁定,以便我們可以包含它嗎?
還是有人知道如何建立一個可以包含的庫?
我們用Xcode創建了一個iPhone Library項目並添加了完整的TouchJSON源代碼樹。我們已經比掛鉤導致測試iPhone應用程序libTouchJSON.a
具有以下gcc_flags:
-v -v -v -gcc_flags "-L${ProjectDir}/Lib -lAdMobNoThumb -lTouchJSON -force_load ${ProjectDir}/Lib/libAdMobNoThumb.a -force_load ${ProjectDir}/Lib/libTouchJSON.a"
這產生以下錯誤輸出(感謝-v -v -v):
Error 1: mtouch failed with the following message:
/var/folders/hF/hF42FIdhEUmY1y-pGRsu1k+++TI/-Tmp-/tmpe374af5.tmp/main.m: In function 'monotouch_debug_connect':
/var/folders/hF/hF42FIdhEUmY1y-pGRsu1k+++TI/-Tmp-/tmpe374af5.tmp/main.m:1779: warning: implicit declaration of function 'select'
/var/folders/hF/hF42FIdhEUmY1y-pGRsu1k+++TI/-Tmp-/tmpe374af5.tmp/main.m: In function 'main':
/var/folders/hF/hF42FIdhEUmY1y-pGRsu1k+++TI/-Tmp-/tmpe374af5.tmp/main.m:1821: warning: implicit declaration of function 'chdir'
/var/folders/hF/hF42FIdhEUmY1y-pGRsu1k+++TI/-Tmp-/tmpe374af5.tmp/main.m:1838: warning: implicit declaration of function 'monotouch_enable_debug_tracking'
/var/folders/hF/hF42FIdhEUmY1y-pGRsu1k+++TI/-Tmp-/tmpe374af5.tmp/main.m:1914: warning: implicit declaration of function 'dup2'
/var/folders/hF/hF42FIdhEUmY1y-pGRsu1k+++TI/-Tmp-/tmpe374af5.tmp/main.m:1921: warning: implicit declaration of function 'mini_get_debug_options'
/var/folders/hF/hF42FIdhEUmY1y-pGRsu1k+++TI/-Tmp-/tmpe374af5.tmp/main.m:1925: warning: implicit declaration of function 'mono_debugger_agent_parse_options'
/var/folders/hF/hF42FIdhEUmY1y-pGRsu1k+++TI/-Tmp-/tmpe374af5.tmp/main.m:2052: warning: implicit declaration of function 'getpagesize'
/var/folders/hF/hF42FIdhEUmY1y-pGRsu1k+++TI/-Tmp-/tmpe374af5.tmp/main.m:2055: warning: cast from pointer to integer of different size
/var/folders/hF/hF42FIdhEUmY1y-pGRsu1k+++TI/-Tmp-/tmpe374af5.tmp/main.m:2055: warning: initialization makes pointer from integer without a cast
Undefined symbols:
"_OBJC_CLASS_$_CJSONSerializer", referenced from:
objc-class-ref-to-CJSONSerializer in libAdMobNoThumb.a(AdMobAd.o)
objc-class-ref-to-CJSONSerializer in libAdMobNoThumb.a(AdMobWebView.o)
objc-class-ref-to-CJSONSerializer in libAdMobNoThumb.a(AdMobFlexWebView.o)
"_OBJC_CLASS_$_CJSONDeserializer", referenced from:
objc-class-ref-to-CJSONDeserializer in libAdMobNoThumb.a(AdMobOpener.o)
objc-class-ref-to-CJSONDeserializer in libAdMobNoThumb.a(AdMobSearchViewController.o)
objc-class-ref-to-CJSONDeserializer in libAdMobNoThumb.a(AdMobAd.o)
ld: symbol(s) not found
collect2: ld returned 1 exit status
(1) (AdMobber)
任何建議解決這個問題?
TIA,Mollyke。
傑夫,你是最好的例子!我們製作了一個不錯的模擬器libTouchJSON.a版本,並與它聯繫在一起,並與賓果遊戲相關聯。 – guivho 2010-11-25 08:08:43