ios – 找不到架构x86_64的符号:“_ OBJC_CLASS _ $_ Mixpanel”,引自:AppDelegate.o中的__TMaCSo8Mixpanel

ios – 找不到架构x86_64的符号:“_ OBJC_CLASS _ $_ Mixpanel”,引自:AppDelegate.o中的__TMaCSo8Mixpanel,第1张

概述我正在安装Mixpanel正确知道(由于更大的问题,不使用 CocoaPods),一旦我尝试构建,我就遇到了这个问题.显然它在链接进度中: Ld /Users/zheref/Library/Developer/Xcode/DerivedData/Skillet-gyrvrgajwggdcmhhtxflcerwovjx/Build/Products/Debug-iphonesimulator/Ski 我正在安装Mixpanel正确知道(由于更大的问题,不使用 CocoaPods),一旦我尝试构建,我就遇到了这个问题.显然它在链接进度中:

Ld /Users/zheref/library/Developer/Xcode/DerivedData/Skillet-gyrvrgajwggdcmhhtxflcerwovjx/Build/Products/DeBUG-iphonesimulator/Skillet.app/Skillet normal x86_64cd /Users/zheref/Code/skillet/skillet-iosexport IPHONEOS_DEPLOYMENT_TARGET=8.1export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhonesimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhonesimulator.platform/Developer/SDKs/iPhonesimulator8.4.sdk -L/Users/zheref/library/Developer/Xcode/DerivedData/Skillet-gyrvrgajwggdcmhhtxflcerwovjx/Build/Products/DeBUG-iphonesimulator -L/Users/zheref/Code/skillet/skillet-ios/Pods/Brightcove-Player-SDK/library -L/Users/zheref/Code/skillet/skillet-ios/Pods/Google/librarIEs -L/Users/zheref/Code/skillet/skillet-ios/Pods/GoogleAppUtilitIEs/librarIEs -L/Users/zheref/Code/skillet/skillet-ios/Pods/GoogleAuthUtilitIEs/librarIEs -L/Users/zheref/Code/skillet/skillet-ios/Pods/GoogleNetworkingUtilitIEs/librarIEs -L/Users/zheref/Code/skillet/skillet-ios/Pods/GoogleSignIn/librarIEs -L/Users/zheref/Code/skillet/skillet-ios/Pods/GoogleSymbolUtilitIEs/librarIEs -L/Users/zheref/Code/skillet/skillet-ios/Pods/GoogleUtilitIEs/librarIEs -L/Users/zheref/Code/skillet/skillet-ios/Skillet -F/Users/zheref/library/Developer/Xcode/DerivedData/Skillet-gyrvrgajwggdcmhhtxflcerwovjx/Build/Products/DeBUG-iphonesimulator -F/Users/zheref/Code/skillet/skillet-ios -F/Users/zheref/Code/vendors/parse-library-1.7.5 -fileList /Users/zheref/library/Developer/Xcode/DerivedData/Skillet-gyrvrgajwggdcmhhtxflcerwovjx/Build/Intermediates/Skillet.build/DeBUG-iphonesimulator/Skillet.build/Objects-normal/x86_64/Skillet.linkfileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -objc_abi_version -Xlinker 2 -ObjC -lBCOVPlayerSDK -lGGLCore -lGGLSignIn -lGSDK_Overload -lGTMOAuth2_external -lGTMOAuth2_internal -lGTMSessionFetcher_core -lGTMSessionFetcher_full -lGTMStackTrace -lGTM_AddressBook -lGTM_DeBUGUtils -lGTM_GTMURLBuilder -lGTM_KVO -lGTM_NSDictionary+URLArguments -lGTM_NSScannerjson -lGTM_NsstringHTML -lGTM_NsstringXML -lGTM_Regex -lGTM_RoundedRectPath -lGTM_StringEnCoding -lGTM_SystemVersion -lGTM_UIFont+lineHeight -lGTM_core -lGTM_iPhone -lOpenInChrome -lPods-PaymentKit -lPods-Stripe -lSignIn -framework AVFoundation -framework AddressBook -framework CoreMedia -framework CoreText -framework Foundation -framework MediaPlayer -framework Security -framework StoreKit -framework SystemConfiguration -ObjC -lBCOVPlayerSDK -lGGLCore -lGGLSignIn -lGSDK_Overload -lGTMOAuth2_external -lGTMOAuth2_internal -lGTMSessionFetcher_core -lGTMSessionFetcher_full -lGTMStackTrace -lGTM_AddressBook -lGTM_DeBUGUtils -lGTM_GTMURLBuilder -lGTM_KVO -lGTM_NSDictionary+URLArguments -lGTM_NSScannerjson -lGTM_NsstringHTML -lGTM_NsstringXML -lGTM_Regex -lGTM_RoundedRectPath -lGTM_StringEnCoding -lGTM_SystemVersion -lGTM_UIFont+lineHeight -lGTM_core -lGTM_iPhone -lOpenInChrome -lPods-PaymentKit -lPods-Stripe -lSignIn -framework AVFoundation -framework AddressBook -framework CoreMedia -framework CoreText -framework Foundation -framework MediaPlayer -framework Security -framework StoreKit -framework SystemConfiguration -fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator -Xlinker -add_ast_path -Xlinker /Users/zheref/library/Developer/Xcode/DerivedData/Skillet-gyrvrgajwggdcmhhtxflcerwovjx/Build/Intermediates/Skillet.build/DeBUG-iphonesimulator/Skillet.build/Objects-normal/x86_64/Skillet.swiftmodule -mios-simulator-version-min=8.1 -licucore -framework QuartzCore -framework CoreGraphics -framework Accelerate -framework CoreTelephony -framework SystemConfiguration -framework Foundation -framework UIKit -framework Bolts -framework Social -framework Accounts -framework Crashlytics -framework AVFoundation -framework CoreMedia -framework Parse -framework CoreText -framework MediaAccessibility -framework MediaPlayer -framework CFNetwork -framework Security -framework AudioToolBox -framework CoreLocation -lsqlite3 -lz -framework MobileCoreServices -framework StoreKit -framework FBSDKShareKit -framework Fabric -framework FBSDKCoreKit -framework FBSDKLoginKit -lPods -Xlinker -dependency_info -Xlinker /Users/zheref/library/Developer/Xcode/DerivedData/Skillet-gyrvrgajwggdcmhhtxflcerwovjx/Build/Intermediates/Skillet.build/DeBUG-iphonesimulator/Skillet.build/Objects-normal/x86_64/Skillet_dependency_info.dat -o /Users/zheref/library/Developer/Xcode/DerivedData/Skillet-gyrvrgajwggdcmhhtxflcerwovjx/Build/Products/DeBUG-iphonesimulator/Skillet.app/SkilletUndefined symbols for architecture x86_64:  "_OBJC_CLASS_$_Mixpanel",referenced from:  __TMaCSo8Mixpanel in AppDelegate.old: symbol(s) not found for architecture x86_64clang: error: linker command Failed with exit code 1 (use -v to see invocation)

我正在使用Swift语言(根本不是Objective-C).

提前致谢.

更新1

当我放线时出现问题:
    Mixpanel.sharedInstanceWithToken(MIXPANEL_TOKEN);
而不是之前.

我在项目中安装Mixpanel代码时没有问题,即使我从桥接头导入它也没有问题.

解决方法 我有同样的问题,我只是尝试通过分别拖入我的项目重新添加框架文件.

不要直接拖动文件夹而只将文件拖到项目中.

另外不要忘记链接框架

SystemConfiguration,CoreTelephony,Accelerate,Security,CFNetwork,QuartzCore,libicucore.tbd

总结

以上是内存溢出为你收集整理的ios – 找不到架构x86_64的符号:“_ OBJC_CLASS _ $_ Mixpanel”,引自:AppDelegate.o中的__TMaCSo8Mixpanel全部内容,希望文章能够帮你解决ios – 找不到架构x86_64的符号:“_ OBJC_CLASS _ $_ Mixpanel”,引自:AppDelegate.o中的__TMaCSo8Mixpanel所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/1000314.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-21
下一篇 2022-05-21

发表评论

登录后才能评论

评论列表(0条)

保存