2015-08-26 79 views
1

我有我的ios應用程序的問題。只要我集成了admob適配器,我遇到了一些問題。我能做什麼?架構arm64的重複符號 - ios

重複的符號_OBJC_IVAR _ $ _ CDataScanner.data在: /Users/Sven/Library/Developer/Xcode/DerivedData/TrackQuiz-fyuyditzrtsdmgbefbdoggekhfeg/Build/Intermediates/TrackQuiz.build/Debug-iphoneos/TrackQuiz.build/Objects - 正常/ arm64/CDataScanner.o /Users/Sven/Documents/GoogleMobileAdsSdkiOS7/AdMobMeditation/MobFox/AdMobAdapter/libAdapterSDKMobFox.a(CDataScanner.o)

duplicate symbol _OBJC_IVAR_$_CJSONScanner.nullObject in: 
    /Users/Sven/Library/Developer/Xcode/DerivedData/TrackQuiz-fyuyditzrtsdmgbefbdoggekhfeg/Build/Intermediates/TrackQuiz.build/Debug-iphoneos/TrackQuiz.build/Objects-normal/arm64/CJSONScanner.o 
    /Users/Sven/Documents/GoogleMobileAdsSdkiOS7/AdMobMeditation/MobFox/AdMobAdapter/libAdapterSDKMobFox.a(CJSONScanner.o) 
duplicate symbol _OBJC_IVAR_$_CJSONScanner.strictEscapeCodes in: 
    /Users/Sven/Library/Developer/Xcode/DerivedData/TrackQuiz-fyuyditzrtsdmgbefbdoggekhfeg/Build/Intermediates/TrackQuiz.build/Debug-iphoneos/TrackQuiz.build/Objects-normal/arm64/CJSONScanner.o 
    /Users/Sven/Documents/GoogleMobileAdsSdkiOS7/AdMobMeditation/MobFox/AdMobAdapter/libAdapterSDKMobFox.a(CJSONScanner.o) 
duplicate symbol _kJSONScannerErrorDomain in: 
    /Users/Sven/Library/Developer/Xcode/DerivedData/TrackQuiz-fyuyditzrtsdmgbefbdoggekhfeg/Build/Intermediates/TrackQuiz.build/Debug-iphoneos/TrackQuiz.build/Objects-normal/arm64/CJSONScanner.o 
    /Users/Sven/Documents/GoogleMobileAdsSdkiOS7/AdMobMeditation/MobFox/AdMobAdapter/libAdapterSDKMobFox.a(CJSONScanner.o) 
duplicate symbol _OBJC_IVAR_$_CJSONScanner.allowedEncoding in: 
    /Users/Sven/Library/Developer/Xcode/DerivedData/TrackQuiz-fyuyditzrtsdmgbefbdoggekhfeg/Build/Intermediates/TrackQuiz.build/Debug-iphoneos/TrackQuiz.build/Objects-normal/arm64/CJSONScanner.o 
    /Users/Sven/Documents/GoogleMobileAdsSdkiOS7/AdMobMeditation/MobFox/AdMobAdapter/libAdapterSDKMobFox.a(CJSONScanner.o) 
duplicate symbol _OBJC_IVAR_$_CJSONScanner.options in: 
    /Users/Sven/Library/Developer/Xcode/DerivedData/TrackQuiz-fyuyditzrtsdmgbefbdoggekhfeg/Build/Intermediates/TrackQuiz.build/Debug-iphoneos/TrackQuiz.build/Objects-normal/arm64/CJSONScanner.o 
    /Users/Sven/Documents/GoogleMobileAdsSdkiOS7/AdMobMeditation/MobFox/AdMobAdapter/libAdapterSDKMobFox.a(CJSONScanner.o) 
duplicate symbol _OBJC_CLASS_$_CJSONScanner in: 
    /Users/Sven/Library/Developer/Xcode/DerivedData/TrackQuiz-fyuyditzrtsdmgbefbdoggekhfeg/Build/Intermediates/TrackQuiz.build/Debug-iphoneos/TrackQuiz.build/Objects-normal/arm64/CJSONScanner.o 
    /Users/Sven/Documents/GoogleMobileAdsSdkiOS7/AdMobMeditation/MobFox/AdMobAdapter/libAdapterSDKMobFox.a(CJSONScanner.o) 
duplicate symbol _OBJC_METACLASS_$_CJSONScanner in: 
    /Users/Sven/Library/Developer/Xcode/DerivedData/TrackQuiz-fyuyditzrtsdmgbefbdoggekhfeg/Build/Intermediates/TrackQuiz.build/Debug-iphoneos/TrackQuiz.build/Objects-normal/arm64/CJSONScanner.o 
    /Users/Sven/Documents/GoogleMobileAdsSdkiOS7/AdMobMeditation/MobFox/AdMobAdapter/libAdapterSDKMobFox.a(CJSONScanner.o) 
duplicate symbol _OBJC_METACLASS_$_CJSONSerialization in: 
    /Users/Sven/Library/Developer/Xcode/DerivedData/TrackQuiz-fyuyditzrtsdmgbefbdoggekhfeg/Build/Intermediates/TrackQuiz.build/Debug-iphoneos/TrackQuiz.build/Objects-normal/arm64/CJSONSerialization.o 
    /Users/Sven/Documents/GoogleMobileAdsSdkiOS7/AdMobMeditation/MobFox/AdMobAdapter/libAdapterSDKMobFox.a(CJSONSerialization.o) 
duplicate symbol _OBJC_CLASS_$_CJSONSerialization in: 
    /Users/Sven/Library/Developer/Xcode/DerivedData/TrackQuiz-fyuyditzrtsdmgbefbdoggekhfeg/Build/Intermediates/TrackQuiz.build/Debug-iphoneos/TrackQuiz.build/Objects-normal/arm64/CJSONSerialization.o 
    /Users/Sven/Documents/GoogleMobileAdsSdkiOS7/AdMobMeditation/MobFox/AdMobAdapter/libAdapterSDKMobFox.a(CJSONSerialization.o) 
ld: 30 duplicate symbols for architecture arm64 
clang: error: linker command failed with exit code 1 (use -v to see invocation) 

任何幫助將是巨大的!對不起,但我不知道,我必須從這裏開始。

回答

0

檢查是否意外地#import'編.m文件,而不是.h文件。

+0

我該在哪裏檢查它? – LJSven

+0

您在何處導入AdMob適配器。 –

+0

適配器是一個.a文件 – LJSven

0

看來不止一個類有一個名爲data的類變量。

您可能希望在代碼中使其成爲完整屬性,或者更改重複變量的名稱,以免它們在編譯時發生衝突。

編輯:第二次看,看起來你有幾次碰撞......你有沒有在同一個文件上執行兩次#include?

也許#ifndef可能有用嗎?

+0

不,如果我單獨使用「兩個」功能,兩者都可以......但不能在一起使用。 – LJSven

+0

您有沒有可能在控制器中導入AdMob,還導入AdMob適配器,這恰好也會導入AdMob實施? – Lytic

+0

不能跟着你 – LJSven

相關問題