【发布时间】:2021-09-14 23:53:21
【问题描述】:
我刚开始在我的 Unity 2D 项目中使用 firebase 分析,它在 android 中运行,但是当涉及到 ios 时,我收到以下错误,我已经更新了目录中的 pod 文件强>
Unity 版本:2020.3.12f1 | X 代码版本:12.5.1 | 使用的包:FirebaseAnalytics.unitypackage-dotnet4
链接 UnityFramework(arm64):
Ld /Users/gopichand/Library/Developer/Xcode/DerivedData/Unity-iPhone-cdvtsqnzxcohbkezwznlaliqctzr/Build/Products/ReleaseForRunning-iphoneos/UnityFramework.framework/UnityFramework 正常(在项目“Unity-iPhone”的目标“UnityFramework”中) cd /Users/gopichand/Desktop/Unity/Build\ IOS /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -target arm64-apple-ios12.0 -dynamiclib -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS。 platform/Developer/SDKs/iPhoneOS14.5.sdk -L/Users/gopichand/Library/Developer/Xcode/DerivedData/Unity-iPhone-cdvtsqnzxcohbkezwznlaliqctzr/Build/Products/ReleaseForRunning-iphoneos -L/Users/gopichand/Desktop/Unity/ Build\ IOS/Libraries -L/Users/gopichand/Desktop/Unity/Build\ IOS/Libraries/Plugins/iOS/Firebase -F/Users/gopichand/Library/Developer/Xcode/DerivedData/Unity-iPhone-cdvtsqnzxcohbkezwznlaliqctzr/Build/ Products/ReleaseForRunning-iphoneos -F/Users/gopichand/Library/Developer/Xcode/DerivedData/Unity-iPhone-cdvtsqnzxcohbkezwznlaliqctzr/Build/Products/ReleaseForRunning-iphoneos/FirebaseCore -F/Users/gopichand/Library/Developer/Xcode/DerivedData/ Unity-iPhone-cdvtsqnzxcohbkezwznlaliqctzr/Build/Products/ReleaseForRunning-iphoneos/FirebaseCoreDiagnostics -F/Users/gopichand/Library/Dev eloper/Xcode/DerivedData/Unity-iPhone-cdvtsqnzxcohbkezwznlaliqctzr/Build/Products/ReleaseForRunning-iphoneos/FirebaseInstallations -F/Users/gopichand/Library/Developer/Xcode/DerivedData/Unity-iPhone-cdvtsqnzxcohbkezwznlaliqctzr/Build/Products/ReleaseForRunning-iphoneos/ GoogleDataTransport -F/Users/gopichand/Library/Developer/Xcode/DerivedData/Unity-iPhone-cdvtsqnzxcohbkezwznlaliqctzr/Build/Products/ReleaseForRunning-iphoneos/GoogleUtilities -F/Users/gopichand/Library/Developer/Xcode/DerivedData/Unity-iPhone- cdvtsqnzxcohbkezwznlaliqctzr/Build/Products/ReleaseForRunning-iphoneos/PromisesObjC -F/Users/gopichand/Library/Developer/Xcode/DerivedData/Unity-iPhone-cdvtsqnzxcohbkezwznlaliqctzr/Build/Products/ReleaseForRunning-iphoneos/nanopb -F/Users/gopichand/Desktop Unity/Build\ IOS/Pods/FirebaseAnalytics/Frameworks -F/Users/gopichand/Desktop/Unity/Build\ IOS/Pods/GoogleAppMeasurement/Frameworks -F/Users/gopichand/Library/Developer/Xcode/DerivedData/Unity-iPhone- cdvtsqnzxcohbkezwznlaliqctzr/B uild/Products/ReleaseForRunning-iphoneos/XCFrameworkIntermediates/FirebaseAnalytics -F/Users/gopichand/Library/Developer/Xcode/DerivedData/Unity-iPhone-cdvtsqnzxcohbkezwznlaliqctzr/Build/Products/ReleaseForRunning-iphoneos/XCFrameworkIntermediates/GoogleAppMeasurement-filelist/Users/gopichand/库/开发人员/Xcode/DerivedData/Unity-iPhone-cdvtsqnzxcohbkezwznlaliqctzr/Build/Intermediates.noindex/Unity-iPhone.build/ReleaseForRunning-iphoneos/UnityFramework.build/Objects-normal/arm64/UnityFramework.LinkFileList -install_name @rpath/UnityFramework。框架/UnityFramework -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -Xlinker -rpath -Xlinker @executable_path/../../Frameworks -Xlinker -rpath -Xlinker @executable_path/Frameworks - Xlinker -rpath -Xlinker @loader_path/Frameworks -Xlinker -map -Xlinker /Users/gopichand/Library/Developer/Xcode/DerivedData/Unity-iPhone-cdvtsqnzxcohbkezwznlaliqctzr/Build/Intermediates.noindex/Unity-iPhone .build/ReleaseForRunning-iphoneos/UnityFramework.build/UnityFramework-LinkMap-normal-arm64.txt -dead_strip -Xlinker -object_path_lto -Xlinker /Users/gopichand/Library/Developer/Xcode/DerivedData/Unity-iPhone-cdvtsqnzxcohbkezwznlaliqctzr/Build/Intermediates .noindex/Unity-iPhone.build/ReleaseForRunning-iphoneos/UnityFramework.build/Objects-normal/arm64/UnityFramework_lto.o -fembed-bitcode-marker -stdlib=libc++ -fobjc-arc -fobjc-link-runtime -lc++ -lsqlite3 -lz -framework CoreTelephony -framework FBLPromises -framework FirebaseAnalytics -framework FirebaseCore -framework FirebaseCoreDiagnostics -framework FirebaseInstallations -framework Foundation -framework GoogleAppMeasurement -framework GoogleDataTransport -framework GoogleUtilities -framework Security -framework StoreKit -framework SystemConfiguration -framework UIKit -framework nanopb -weak_framework CoreMotion -weak-lSystem -liPhone-lib -framework Metal -framework Security -framework MediaToolbox -framework CoreText -framework Audi oToolbox -weak_framework AVFoundation -framework AVKit -framework CFNetwork -framework CoreGraphics -framework CoreMedia -weak_framework CoreMotion -framework CoreVideo -framework Foundation -framework OpenAL -framework QuartzCore -framework SystemConfiguration -framework UIKit -liconv.2 -lil2cpp /Users/gopichand/Desktop/ Unity/Build\ IOS/Libraries/baselib.a -lFirebaseCppAnalytics -lFirebaseCppApp -weak_framework GameController -framework Pods_UnityFramework -Xlinker -dependency_info -Xlinker /Users/gopichand/Library/Developer/Xcode/DerivedData/Unity-iPhone-cdvtsqnzxcohbkezwznlaliqctzr/Build/Intermediates。 noindex/Unity-iPhone.build/ReleaseForRunning-iphoneos/UnityFramework.build/Objects-normal/arm64/UnityFramework_dependency_info.dat -o /Users/gopichand/Library/Developer/Xcode/DerivedData/Unity-iPhone-cdvtsqnzxcohbkezwznlaliqctzr/Build/Products/ ReleaseForRunning-iphoneos/UnityFramework.framework/UnityFramework
ld:警告:找不到选项“-F/Users/gopichand/Library/Developer/Xcode/DerivedData/Unity-iPhone-cdvtsqnzxcohbkezwznlaliqctzr/Build/Products/ReleaseForRunning-iphoneos/FirebaseCore”的目录 ld:警告:找不到选项“-F/Users/gopichand/Library/Developer/Xcode/DerivedData/Unity-iPhone-cdvtsqnzxcohbkezwznlaliqctzr/Build/Products/ReleaseForRunning-iphoneos/FirebaseCoreDiagnostics”的目录 ld:警告:找不到选项“-F/Users/gopichand/Library/Developer/Xcode/DerivedData/Unity-iPhone-cdvtsqnzxcohbkezwznlaliqctzr/Build/Products/ReleaseForRunning-iphoneos/FirebaseInstallations”的目录 ld:警告:找不到选项“-F/Users/gopichand/Library/Developer/Xcode/DerivedData/Unity-iPhone-cdvtsqnzxcohbkezwznlaliqctzr/Build/Products/ReleaseForRunning-iphoneos/GoogleDataTransport”的目录 ld:警告:找不到选项“-F/Users/gopichand/Library/Developer/Xcode/DerivedData/Unity-iPhone-cdvtsqnzxcohbkezwznlaliqctzr/Build/Products/ReleaseForRunning-iphoneos/GoogleUtilities”的目录 ld:警告:找不到选项“-F/Users/gopichand/Library/Developer/Xcode/DerivedData/Unity-iPhone-cdvtsqnzxcohbkezwznlaliqctzr/Build/Products/ReleaseForRunning-iphoneos/PromisesObjC”的目录 ld:警告:找不到选项“-F/Users/gopichand/Library/Developer/Xcode/DerivedData/Unity-iPhone-cdvtsqnzxcohbkezwznlaliqctzr/Build/Products/ReleaseForRunning-iphoneos/nanopb”的目录 ld:警告:找不到选项“-F/Users/gopichand/Library/Developer/Xcode/DerivedData/Unity-iPhone-cdvtsqnzxcohbkezwznlaliqctzr/Build/Products/ReleaseForRunning-iphoneos/XCFrameworkIntermediates/FirebaseAnalytics”的目录 ld:警告:找不到选项“-F/Users/gopichand/Library/Developer/Xcode/DerivedData/Unity-iPhone-cdvtsqnzxcohbkezwznlaliqctzr/Build/Products/ReleaseForRunning-iphoneos/XCFrameworkIntermediates/GoogleAppMeasurement”的目录 ld: 未找到框架 FBLPromises clang:错误:链接器命令失败,退出代码为 1(使用 -v 查看调用)
【问题讨论】:
标签: ios swift firebase unity3d firebase-analytics