xcode 7 beta在进行Google集成时显示链接器错误

时间:2015-09-18 08:05:38

标签: ios xcode swift google-login

我正在尝试集成谷歌标志,但许多链接器错误在Xcode7 beta中引发

错误:

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <xsl:output method="xml" indent="yes" />

    <xsl:template match="table">
      <table>
        <thead>
          <xsl:apply-templates select="(.//tr)[1]" />
        </thead>
        <tbody>
          <xsl:apply-templates select="(.//tr)[position() > 1]" />
        </tbody>
      </table>
    </xsl:template>

    <xsl:template match="@*|node()">
        <xsl:copy>
            <xsl:apply-templates select="@*|node()"/>
        </xsl:copy>
    </xsl:template>
</xsl:stylesheet>

它声明它在AppDelegate.h文件中有未定义的符号我无法解决它

这是我的AppDelegate.swift

Ld /Users/ajeyraj/Library/Developer/Xcode/DerivedData/fb_login-fyenitgjyzxqdnaelggrvofnteki/Build/Products/Debug-iphoneos/fb\ login.app/fb\ login normal arm64
cd "/Users/ajeyraj/Documents/my app/untitled folder/video gyan activities/fb login"
export IPHONEOS_DEPLOYMENT_TARGET=8.2
export PATH="/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode-beta.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch arm64 -isysroot /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk -L/Users/ajeyraj/Library/Developer/Xcode/DerivedData/fb_login-fyenitgjyzxqdnaelggrvofnteki/Build/Products/Debug-iphoneos -L/Users/ajeyraj/Documents/my\ app/untitled\ folder/video\ gyan\ activities/fb\ login/Pods/GGLInstanceID/Libraries -L/Users/ajeyraj/Documents/my\ app/untitled\ folder/video\ gyan\ activities/fb\ login/Pods/Google/Libraries -L/Users/ajeyraj/Documents/my\ app/untitled\ folder/video\ gyan\ activities/fb\ login/Pods/GoogleAnalytics/Libraries -L/Users/ajeyraj/Documents/my\ app/untitled\ folder/video\ gyan\ activities/fb\ login/Pods/GoogleAppUtilities/Libraries -L/Users/ajeyraj/Documents/my\ app/untitled\ folder/video\ gyan\ activities/fb\ login/Pods/GoogleAuthUtilities/Libraries -L/Users/ajeyraj/Documents/my\ app/untitled\ folder/video\ gyan\ activities/fb\ login/Pods/GoogleCloudMessaging/Libraries -L/Users/ajeyraj/Documents/my\ app/untitled\ folder/video\ gyan\ activities/fb\ login/Pods/GoogleInterchangeUtilities/Libraries -L/Users/ajeyraj/Documents/my\ app/untitled\ folder/video\ gyan\ activities/fb\ login/Pods/GoogleNetworkingUtilities/Libraries -L/Users/ajeyraj/Documents/my\ app/untitled\ folder/video\ gyan\ activities/fb\ login/Pods/GoogleParsingUtilities/Libraries -L/Users/ajeyraj/Documents/my\ app/untitled\ folder/video\ gyan\ activities/fb\ login/Pods/GooglePlusUtilities/Libraries -L/Users/ajeyraj/Documents/my\ app/untitled\ folder/video\ gyan\ activities/fb\ login/Pods/GoogleSignIn/Libraries -L/Users/ajeyraj/Documents/my\ app/untitled\ folder/video\ gyan\ activities/fb\ login/Pods/GoogleSymbolUtilities/Libraries -L/Users/ajeyraj/Documents/my\ app/untitled\ folder/video\ gyan\ activities/fb\ login/Pods/GoogleUtilities/Libraries -F/Users/ajeyraj/Library/Developer/Xcode/DerivedData/fb_login-fyenitgjyzxqdnaelggrvofnteki/Build/Products/Debug-iphoneos -F/Users/ajeyraj/Documents/my\ app/untitled\ folder/video\ gyan\ activities/fb\ login/Pods/AppInvites/Frameworks -F/Users/ajeyraj/Documents/my\ app/untitled\ folder/video\ gyan\ activities/fb\ login/Pods/GPPCore/Frameworks -F/Users/ajeyraj/Documents/my\ app/untitled\ folder/video\ gyan\ activities/fb\ login/Pods/GoogleMobileAds/Frameworks -F/Users/ajeyraj/Downloads/FacebookSDKs-iOS-20150910 -F/Users/ajeyraj/Documents/my\ app/untitled\ folder/video\ gyan\ activities/fb\ login -filelist /Users/ajeyraj/Library/Developer/Xcode/DerivedData/fb_login-fyenitgjyzxqdnaelggrvofnteki/Build/Intermediates/fb\ login.build/Debug-iphoneos/fb\ login.build/Objects-normal/arm64/fb\ login.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -miphoneos-version-min=8.2 -dead_strip -ObjC -L/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos -Xlinker -add_ast_path -Xlinker /Users/ajeyraj/Library/Developer/Xcode/DerivedData/fb_login-fyenitgjyzxqdnaelggrvofnteki/Build/Intermediates/fb\ login.build/Debug-iphoneos/fb\ login.build/Objects-normal/arm64/fb_login.swiftmodule -framework Foundation -framework CoreSpotlight -framework Social -framework CoreMotion -framework CoreLocation -framework AssetsLibrary -framework Accounts -framework MediaPlayer -framework CoreMedia -framework AVFoundation -framework StoreKit -framework SystemConfiguration -framework AddressBook -framework FBSDKMessengerShareKit -framework GoogleSignIn -framework Bolts -framework FBSDKShareKit -framework FBSDKLoginKit -framework FBSDKCoreKit -lPods -Xlinker -dependency_info -Xlinker /Users/ajeyraj/Library/Developer/Xcode/DerivedData/fb_login-fyenitgjyzxqdnaelggrvofnteki/Build/Intermediates/fb\ login.build/Debug-iphoneos/fb\ login.build/Objects-normal/arm64/fb\ login_dependency_info.dat -o /Users/ajeyraj/Library/Developer/Xcode/DerivedData/fb_login-fyenitgjyzxqdnaelggrvofnteki/Build/Products/Debug-iphoneos/fb\ login.app/fb\ login

Undefined symbols for architecture arm64:
"_OBJC_CLASS_$_GGLContext", referenced from:
type metadata accessor for ObjectiveC.GGLContext in AppDelegate.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

1 个答案:

答案 0 :(得分:0)

您必须关联 libGGLAnalytics.a libGGLCore.a 才能使GA工作。

libGGLAnalytics

将其链接到您应用的目标构建阶段

Link Binary With Libraries