2013-05-02 40 views
0

我在包含adWhirl/adMod SDK後編譯xcode cocos2d項目。但當我沒有任何線索時,我正在低於錯誤。有人看到類似的錯誤?添加adWhirl/adMod SDK後xcode出錯

重複的符號_main在: /用戶/ rameshjangama /庫/開發商/ Xcode中/ DerivedData/Smarty_SG-bevjqrzchdoqlherhrgqjvyiscvk /編譯/中間體/ Smarty的SG.build/Debug-iphonesimulator/Smarty SG.build/Objects-normal/i386 /main-1C64DB92F3446C47.o /Users/rameshjangama/Library/Developer/Xcode/DerivedData/Smarty_SG-bevjqrzchdoqlherhrgqjvyiscvk/Build/Intermediates/Smarty SG.build/Debug-iphonesimulator/Smarty SG.build/Objects-normal/i386/main- ED4E1B3DCBD8732E.o 重複的符號_OBJC_CLASS _ $ _ RootViewController在: /Users/rameshjangama/Library/Developer/Xcode/DerivedData/Smarty_SG-bevjqrzchdoqlherhrgqjvyiscvk/Build/Intermediates/Smarty SG.build/Debug -iphonesimulator/Smarty SG.build/Objects-normal /i386/RootViewController-214B0A37FE12675B.o /Users/rameshjangama/Library/Developer/Xcode/DerivedData/Smarty_SG-bevjqrzchdoqlherhrgqjvyiscvk/Build/Intermediates/Smarty SG.build/Debug-iphonesimulator/Smarty SG.build/Objects-normal/i386/RootViewController-6E15F3A1FAEF641D.o 重複符號_OBJC_METACLASS _ $ _ RootViewController在: /Users/rameshjangama/Library/Developer/Xcode/DerivedData/Smarty_SG-bevjqrzchdoqlherhrgqjvyiscvk/Build/Intermediates/Smarty SG.build/Debug-ihonesimulator/Smarty SG.build/Objects-normal/i386/RootViewController-214B0A37FE12675B .o /Users/rameshjangama/Library/Developer/Xcode/DerivedData/Smarty_SG-bevjqrzchdoqlherhrgqjvyiscvk/Build/Intermediates/Smarty SG.build/Debug-iphonesimulator/Smarty SG.build/Objects-normal/i386/RootViewController-6E15F3A1FAEF641D.o ld:3個重複的符號用於架構i386 clang:error:linker comman d失敗,退出代碼1(使用-v查看調用)

回答

0

看起來您已經向項目添加了兩次adWhirl/adMod SDK。請仔細檢查左側窗格中項目的所有分支。

此外,藉助以下內容執行清理項目:頂級菜單 - >產品 - >清理。之後,執行相同的步驟,但在此之前,按住Alt鍵。

0

我明白了,我將adMob文件夾拖放到xcode中的項目文件夾中。該adMob文件夾中的另一個示例示例xcode項目存在導致「主要」衝突。我從adMob中刪除了示例應用程序,並重新編譯並正常運行。 Infog,這對你的回覆很重要。