google / google/GoogleSignIn-iOS

Undefined symbol: __llvm_profile_runtime when running unit/UI tests

未关闭
#180 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Objective-C
星标
750
派生
282
平均合并
2 天 15 小时
30 天内合并 PR
9

描述

If I try to run my unit/UI tests, after I installed the GoogleSignIn package with the swift package manager I get this error:

`CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler (in target 'CioMessagingPush' from project 'Customer.io')
cd /Users/ramy/Library/Developer/Xcode/DerivedData/FavouritesPlus-ebpbztniqhhdnzguteiyrzhmjwoj/SourcePackages/checkouts/customerio-ios
export DEVELOPER_DIR\=/Applications/Xcode.app/Contents/Developer
export SDKROOT\=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.4.sdk
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc -incremental -module-name CioMessagingPush -Onone -enable-batch-mode -enforce-exclusivity\=checked @/Users/ramy/Library/Developer/Xcode/DerivedData/FavouritesPlus-ebpbztniqhhdnzguteiyrzhmjwoj/Build/Intermediates.noindex/Customer.io.build/Debug-iphonesimulator/CioMessagingPush.build/Objects-normal/arm64/CioMessagingPush.SwiftFileList -DSWIFT_PACKAGE -DDEBUG -DXcode -sdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.4.sdk -target arm64-apple-ios13.0-simulator -g -module-cache-path /Users/ramy/Library/Developer/Xcode/DerivedData/ModuleCache.noindex -Xfrontend -serialize-debugging-options -profile-coverage-mapping -profile-generate -enable-testing -index-store-path /Users/ramy/Library/Developer/Xcode/DerivedData/FavouritesPlus-ebpbztniqhhdnzguteiyrzhmjwoj/Index/DataStore -swift-version 5 -I /Users/ramy/Library/Developer/Xcode/DerivedData/FavouritesPlus-ebpbztniqhhdnzguteiyrzhmjwoj/Build/Products/Debug-iphonesimulator -I /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/lib -F /Users/ramy/Library/Developer/Xcode/DerivedData/FavouritesPlus-ebpbztniqhhdnzguteiyrzhmjwoj/Build/Products/Debug-iphonesimulator/PackageFrameworks -F /Users/ramy/Library/Developer/Xcode/DerivedData/FavouritesPlus-ebpbztniqhhdnzguteiyrzhmjwoj/Build/Products/Debug-iphonesimulator -F /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Frameworks -F /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.4.sdk/Developer/Library/Frameworks -c -j8 -output-file-map /Users/ramy/Library/Developer/Xcode/DerivedData/FavouritesPlus-ebpbztniqhhdnzguteiyrzhmjwoj/Build/Intermediates.noindex/Customer.io.build/Debug-iphonesimulator/CioMessagingPush.build/Objects-normal/arm64/CioMessagingPush-OutputFileMap.json -parseable-output -serialize-diagnostics -emit-dependencies -emit-module -emit-module-path /Users/ramy/Library/Developer/Xcode/DerivedData/FavouritesPlus-ebpbztniqhhdnzguteiyrzhmjwoj/Build/Intermediates.noindex/Customer.io.build/Debug-iphonesimulator/CioMessagingPush.build/Objects-normal/arm64/CioMessagingPush.swiftmodule -Xcc -I/Users/ramy/Library/Developer/Xcode/DerivedData/FavouritesPlus-ebpbztniqhhdnzguteiyrzhmjwoj/Build/Intermediates.noindex/Customer.io.build/Debug-iphonesimulator/CioMessagingPush.build/swift-overrides.hmap -Xcc -I/Users/ramy/Library/Developer/Xcode/DerivedData/FavouritesPlus-ebpbztniqhhdnzguteiyrzhmjwoj/Build/Products/Debug-iphonesimulator/include -Xcc -I/Users/ramy/Library/Developer/Xcode/DerivedData/FavouritesPlus-ebpbztniqhhdnzguteiyrzhmjwoj/Build/Intermediates.noindex/Customer.io.build/Debug-iphonesimulator/CioMessagingPush.build/DerivedSources-normal/arm64 -Xcc -I/Users/ramy/Library/Developer/Xcode/DerivedData/FavouritesPlus-ebpbztniqhhdnzguteiyrzhmjwoj/Build/Intermediates.noindex/Customer.io.build/Debug-iphonesimulator/CioMessagingPush.build/DerivedSources/arm64 -Xcc -I/Users/ramy/Library/Developer/Xcode/DerivedData/FavouritesPlus-ebpbztniqhhdnzguteiyrzhmjwoj/Build/Intermediates.noindex/Customer.io.build/Debug-iphonesimulator/CioMessagingPush.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -emit-objc-header -emit-objc-header-path /Users/ramy/Library/Developer/Xcode/DerivedData/FavouritesPlus-ebpbztniqhhdnzguteiyrzhmjwoj/Build/Intermediates.noindex/Customer.io.build/Debug-iphonesimulator/CioMessagingPush.build/Objects-normal/arm64/CioMessagingPush-Swift.h -working-directory /Users/ramy/Library/Developer/Xcode/DerivedData/FavouritesPlus-ebpbztniqhhdnzguteiyrzhmjwoj/SourcePackages/checkouts/customerio-ios

Command CompileSwiftSources failed with a nonzero exit code
`

Plus if I check the info panel in xCode I see the error: "Undefined symbol: __llvm_profile_runtime" until the GMTSessionFetcherCore target.

I am compiling with the flag '-fprofile-instr-generate'.

I also tried to enable code coverage for my target and for GTMSessionFetcherCore in my scheme, but I still get the error. Anybody has it? Any solution/workaround?

贡献指南

打开贡献指南

调研方向

Start by reproducing the unit/UI test build after installing GoogleSignIn through Swift Package Manager with the reported -fprofile-instr-generate flag. Inspect the GTMSessionFetcherCore target and the CioMessagingPush compile step in the Xcode output. Done means the tests build without the __llvm_profile_runtime linker error and the required coverage configuration or workaround is identified.

由索引模型根据 Issue 内容生成。

评估

技术栈
objective-c, swift
领域
authentication, mobile-dev
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。