bazel-xcode / PodToBUILD

An easy way to integrate CocoaPods into Bazel
Apache License 2.0
323 stars 69 forks source link

Header file not found #118

Open zhangrenfeng opened 4 years ago

zhangrenfeng commented 4 years ago

Hey, Thank you so much for developing such a great tool!

Probably because I am not familiar with bazel, I just want to simply use the open source library "FBMemoryProfiler" in the project, but when I execute the command bazel build //:PodToBuild-Example --sandbox_debug --keep_going, the following error will be reported:

截屏2020-02-27上午10 11 08
While building module 'FBRetainCycleDetector' imported from bazel-out/ios-x86_64-min9.0-applebin_ios-ios_x86_64-fastbuild/bin/external/FBMemoryProfiler/FBMemoryProfiler_module_map/../../../../../../external/FBMemoryProfiler/FBMemoryProfiler/FBMemoryProfiler.h:22:
In file included from <module-includes>:1:
bazel-out/ios-x86_64-min9.0-applebin_ios-ios_x86_64-fastbuild/bin/external/FBRetainCycleDetector/FBRetainCycleDetector_module_map/../../../../../../external/FBRetainCycleDetector/FBRetainCycleDetector/Layout/Classes/Parser/BaseType.h:12:9: fatal error: 'string' file not found
#import <string>
        ^~~~~~~~
While building module 'FBMemoryProfiler' imported from external/FBMemoryProfiler/FBMemoryProfiler/RetainCycles/FBRetainCyclePresenter.m:9:
In file included from <module-includes>:1:
bazel-out/ios-x86_64-min9.0-applebin_ios-ios_x86_64-fastbuild/bin/external/FBMemoryProfiler/FBMemoryProfiler_module_map/../../../../../../external/FBMemoryProfiler/FBMemoryProfiler/FBMemoryProfiler.h:22:9: fatal error: could not build module 'FBRetainCycleDetector'
#import <FBRetainCycleDetector/FBObjectGraphConfiguration.h>
 ~~~~~~~^
external/FBMemoryProfiler/FBMemoryProfiler/RetainCycles/FBRetainCyclePresenter.m:9:9: fatal error: could not build module 'FBMemoryProfiler'
#import "FBRetainCyclePresenter.h"
 ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
3 errors generated.
ERROR: /private/var/tmp/_bazel_bytedance/f40f007aea084906eed728c98ae31477/external/FBMemoryProfiler/BUILD.bazel:234:1: Couldn't build file external/FBMemoryProfiler/_objs/FBMemoryProfiler/arc/FBMemoryProfilerViewController.o: C++ compilation of rule '@FBMemoryProfiler//:FBMemoryProfiler' failed (Exit 1) sandbox-exec failed: error executing command
  (cd /private/var/tmp/_bazel_bytedance/f40f007aea084906eed728c98ae31477/sandbox/darwin-sandbox/163/execroot/__main__ && \
  exec env - \
    APPLE_SDK_PLATFORM=iPhoneSimulator \
    APPLE_SDK_VERSION_OVERRIDE=13.2 \
    DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer \
    PATH='/Users/bytedance/.rvm/gems/ruby-2.5.0/bin:/Users/bytedance/.rvm/gems/ruby-2.5.0@global/bin:/Users/bytedance/.rvm/rubies/ruby-2.5.0/bin:/usr/local/sbin:/usr/local/opt/coreutils/libexec/gnubin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:$HOME/bin:/opt/puppetlabs/bin:/usr/local/munki:/bin:/usr/local/opt/fzf/bin:/Users/bytedance/go/bin:/Users/bytedance/.rvm/bin:/Users/bytedance/bin:/Users/bytedance/.rvm/bin' \
    SDKROOT=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk \
    TMPDIR=/var/folders/2d/glwc0r6d3lv498516d9yqyl80000gp/T/ \
    XCODE_VERSION_OVERRIDE=11.3.1.11C504 \
  /usr/bin/sandbox-exec -f /private/var/tmp/_bazel_bytedance/f40f007aea084906eed728c98ae31477/sandbox/darwin-sandbox/163/sandbox.sb /var/tmp/_bazel_bytedance/install/7afe40059062a3d2a6e3d7dae41ab49a/process-wrapper '--timeout=0' '--kill_delay=15' external/local_config_cc/wrapped_clang -arch x86_64 '-D_FORTIFY_SOURCE=1' -fstack-protector -fcolor-diagnostics -Wall -Wthread-safety -Wself-assign -fno-omit-frame-pointer -O0 -DDEBUG -Wshorten-64-to-32 -Wbool-conversion -Wconstant-conversion -Wduplicate-method-match -Wempty-body -Wenum-conversion -Wint-conversion -Wunreachable-code -Wmismatched-return-types -Wundeclared-selector -Wuninitialized -Wunused-function -Wunused-variable -iquote external/FBMemoryProfiler -iquote bazel-out/ios-x86_64-min9.0-applebin_ios-ios_x86_64-fastbuild/bin/external/FBMemoryProfiler -iquote bazel-out/ios-x86_64-min9.0-applebin_ios-ios_x86_64-fastbuild/bin -Iexternal/FBAllocationTracker/pod_support/Headers/Public -Ibazel-out/ios-x86_64-min9.0-applebin_ios-ios_x86_64-fastbuild/bin/external/FBAllocationTracker/FBAllocationTracker_module_map -Iexternal/FBAllocationTracker/FBAllocationTracker_module_map -Iexternal/FBRetainCycleDetector/pod_support/Headers/Public -Ibazel-out/ios-x86_64-min9.0-applebin_ios-ios_x86_64-fastbuild/bin/external/FBRetainCycleDetector/FBRetainCycleDetector_module_map -Iexternal/FBRetainCycleDetector/FBRetainCycleDetector_module_map -Iexternal/FBMemoryProfiler/pod_support/Headers/Public -Ibazel-out/ios-x86_64-min9.0-applebin_ios-ios_x86_64-fastbuild/bin/external/FBMemoryProfiler/FBMemoryProfiler_module_map -Iexternal/FBMemoryProfiler/FBMemoryProfiler_module_map -MD -MF bazel-out/ios-x86_64-min9.0-applebin_ios-ios_x86_64-fastbuild/bin/external/FBMemoryProfiler/_objs/FBMemoryProfiler/arc/FBMemoryProfilerViewController.d -DOS_IOS -fno-autolink -isysroot __BAZEL_XCODE_SDKROOT__ -F__BAZEL_XCODE_SDKROOT__/System/Library/Frameworks -F__BAZEL_XCODE_DEVELOPER_DIR__/Platforms/iPhoneSimulator.platform/Developer/Library/Frameworks -fobjc-arc '-mios-simulator-version-min=9.0' -fexceptions -fasm-blocks '-fobjc-abi-version=2' -fobjc-legacy-dispatch -Wnon-modular-include-in-framework-module -g '-stdlib=libc++' '-DCOCOAPODS=1' '-DOBJC_OLD_DISPATCH_PROTOTYPES=0' -fdiagnostics-show-note-include-stack -fno-common -fembed-bitcode-marker '-fmessage-length=0' -fpascal-strings -fstrict-aliasing '-Wno-error=nonportable-include-path' '-DPOD_CONFIGURATION_RELEASE=0' -Iexternal/FBMemoryProfiler/pod_support/Headers/Public/FBMemoryProfiler/ '-fmodule-name=FBMemoryProfiler_pod_module' -fmodules '-fmodules-cache-path=bazel-out/ios-x86_64-min9.0-applebin_ios-ios_x86_64-fastbuild/bin/_objc_module_cache' -O0 '-DDEBUG=1' -c external/FBMemoryProfiler/FBMemoryProfiler/Controllers/FBMemoryProfilerViewController.m -o bazel-out/ios-x86_64-min9.0-applebin_ios-ios_x86_64-fastbuild/bin/external/FBMemoryProfiler/_objs/FBMemoryProfiler/arc/FBMemoryProfilerViewController.o)
While building module 'FBMemoryProfiler' imported from external/FBMemoryProfiler/FBMemoryProfiler/Controllers/FBMemoryProfilerViewController.m:9:
While building module 'FBRetainCycleDetector' imported from bazel-out/ios-x86_64-min9.0-applebin_ios-ios_x86_64-fastbuild/bin/external/FBMemoryProfiler/FBMemoryProfiler_module_map/../../../../../../external/FBMemoryProfiler/FBMemoryProfiler/FBMemoryProfiler.h:22:
In file included from <module-includes>:1:
bazel-out/ios-x86_64-min9.0-applebin_ios-ios_x86_64-fastbuild/bin/external/FBRetainCycleDetector/FBRetainCycleDetector_module_map/../../../../../../external/FBRetainCycleDetector/FBRetainCycleDetector/Layout/Classes/Parser/BaseType.h:12:9: fatal error: 'string' file not found
#import <string>

The example project I used is as follows: Example.zip

Is there something straightforward I'm missing here? It feels like this should be mostly parallel to PINOperation, but that example works fine.

Thanks so much !

rahul-malik commented 4 years ago

Did you try using generate_module_map = False in your declaration of FBMemoryProfiler?

zhangrenfeng commented 4 years ago

generate_module_map = False

@rahul-malik

I just tried to modify it as follows:

new_pod_repository(
  name = "FBMemoryProfiler",
  url = "https://github.com/facebook/FBMemoryProfiler/archive/0.1.2.zip",
  generate_module_map = False
)

new_pod_repository(
  name = "FBAllocationTracker",
  url = "https://github.com/facebook/FBAllocationTracker/archive/0.1.5.zip",
  generate_module_map = False
)

new_pod_repository(
  name = "FBRetainCycleDetector",
  url = "https://github.com/facebook/FBRetainCycleDetector/archive/0.1.4.zip",
  generate_module_map = False
)

This time the error is as follows:

4 warnings generated.
ERROR: /Users/bytedance/people/PodToBuild/Example/BUILD:20:1: Couldn't build file PodToBuild-Example.__internal__.apple_binary_bin: Linking of rule '//:PodToBuild-Example.__internal__.apple_binary' failed (Exit 1) sandbox-exec failed: error executing command
  (cd /private/var/tmp/_bazel_bytedance/f40f007aea084906eed728c98ae31477/sandbox/darwin-sandbox/110/execroot/__main__ && \
  exec env - \
    APPLE_SDK_PLATFORM=iPhoneSimulator \
    APPLE_SDK_VERSION_OVERRIDE=13.2 \
    DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer \
    PATH='/Users/bytedance/.rvm/gems/ruby-2.5.0/bin:/Users/bytedance/.rvm/gems/ruby-2.5.0@global/bin:/Users/bytedance/.rvm/rubies/ruby-2.5.0/bin:/usr/local/sbin:/usr/local/opt/coreutils/libexec/gnubin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:$HOME/bin:/opt/puppetlabs/bin:/usr/local/munki:/bin:/usr/local/opt/fzf/bin:/Users/bytedance/go/bin:/Users/bytedance/.rvm/bin:/Users/bytedance/bin:/Users/bytedance/.rvm/bin' \
    SDKROOT=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk \
    TMPDIR=/var/folders/2d/glwc0r6d3lv498516d9yqyl80000gp/T/ \
    XCODE_VERSION_OVERRIDE=11.3.1.11C504 \
  /usr/bin/sandbox-exec -f /private/var/tmp/_bazel_bytedance/f40f007aea084906eed728c98ae31477/sandbox/darwin-sandbox/110/sandbox.sb /var/tmp/_bazel_bytedance/install/7afe40059062a3d2a6e3d7dae41ab49a/process-wrapper '--timeout=0' '--kill_delay=15' external/local_config_cc/wrapped_clang_pp '-stdlib=libc++' '-std=gnu++11' -arch x86_64 -Xlinker -objc_abi_version -Xlinker 2 -fobjc-link-runtime -ObjC -framework Foundation -framework SystemConfiguration -framework Security -framework MobileCoreServices -framework CoreGraphics -framework UIKit -lc++ -filelist bazel-out/ios-x86_64-min9.0-applebin_ios-ios_x86_64-fastbuild/bin/PodToBuild-Example.__internal__.apple_binary-linker.objlist -o bazel-out/ios-x86_64-min9.0-applebin_ios-ios_x86_64-fastbuild/bin/PodToBuild-Example.__internal__.apple_binary_bin -Wl,-rpath -Wl,@executable_path/Frameworks -lc++ -Wl,-S -isysroot __BAZEL_XCODE_SDKROOT__ -F__BAZEL_XCODE_SDKROOT__/System/Library/Frameworks -F__BAZEL_XCODE_DEVELOPER_DIR__/Platforms/iPhoneSimulator.platform/Developer/Library/Frameworks -headerpad_max_install_names -no-canonical-prefixes -target x86_64-apple-ios '-mios-simulator-version-min=9.0' -framework Foundation -framework UIKit)
duplicate symbol '_OBJC_IVAR_$_FBMemoryProfiler._memoryProfilerWindow' in:
    bazel-out/ios-x86_64-min9.0-applebin_ios-ios_x86_64-fastbuild/bin/external/FBMemoryProfiler/libFBMemoryProfiler.a(FBMemoryProfiler_b83962986f239db06f3b2d80c210c18d.o)
    bazel-out/ios-x86_64-min9.0-applebin_ios-ios_x86_64-fastbuild/bin/external/FBMemoryProfiler/libFBMemoryProfiler_cxx.a(FBMemoryProfiler_356b632f7213e6a9d2ce1391c8c55bb1.o)
duplicate symbol '_OBJC_IVAR_$_FBMemoryProfiler._options' in:
    bazel-out/ios-x86_64-min9.0-applebin_ios-ios_x86_64-fastbuild/bin/external/FBMemoryProfiler/libFBMemoryProfiler.a(FBMemoryProfiler_b83962986f239db06f3b2d80c210c18d.o)
    bazel-out/ios-x86_64-min9.0-applebin_ios-ios_x86_64-fastbuild/bin/external/FBMemoryProfiler/libFBMemoryProfiler_cxx.a(FBMemoryProfiler_356b632f7213e6a9d2ce1391c8c55bb1.o)
duplicate symbol '_OBJC_IVAR_$_FBMemoryProfiler._containerViewController' in:
    bazel-out/ios-x86_64-min9.0-applebin_ios-ios_x86_64-fastbuild/bin/external/FBMemoryProfiler/libFBMemoryProfiler.a(FBMemoryProfiler_b83962986f239db06f3b2d80c210c18d.o)
    bazel-out/ios-x86_64-min9.0-applebin_ios-ios_x86_64-fastbuild/bin/external/FBMemoryProfiler/libFBMemoryProfiler_cxx.a(FBMemoryProfiler_356b632f7213e6a9d2ce1391c8c55bb1.o)
duplicate symbol '_OBJC_IVAR_$_FBMemoryProfiler._profilerViewController' in:
    bazel-out/ios-x86_64-min9.0-applebin_ios-ios_x86_64-fastbuild/bin/external/FBMemoryProfiler/libFBMemoryProfiler.a(FBMemoryProfiler_b83962986f239db06f3b2d80c210c18d.o)
    bazel-out/ios-x86_64-min9.0-applebin_ios-ios_x86_64-fastbuild/bin/external/FBMemoryProfiler/libFBMemoryProfiler_cxx.a(FBMemoryProfiler_356b632f7213e6a9d2ce1391c8c55bb1.o)
duplicate symbol '_OBJC_IVAR_$_FBMemoryProfiler._floatingButtonController' in:
    bazel-out/ios-x86_64-min9.0-applebin_ios-ios_x86_64-fastbuild/bin/external/FBMemoryProfiler/libFBMemoryProfiler.a(FBMemoryProfiler_b83962986f239db06f3b2d80c210c18d.o)
    bazel-out/ios-x86_64-min9.0-applebin_ios-ios_x86_64-fastbuild/bin/external/FBMemoryProfiler/libFBMemoryProfiler_cxx.a(FBMemoryProfiler_356b632f7213e6a9d2ce1391c8c55bb1.o)
duplicate symbol '_OBJC_CLASS_$_FBMemoryProfiler' in:
    bazel-out/ios-x86_64-min9.0-applebin_ios-ios_x86_64-fastbuild/bin/external/FBMemoryProfiler/libFBMemoryProfiler.a(FBMemoryProfiler_b83962986f239db06f3b2d80c210c18d.o)
    bazel-out/ios-x86_64-min9.0-applebin_ios-ios_x86_64-fastbuild/bin/external/FBMemoryProfiler/libFBMemoryProfiler_cxx.a(FBMemoryProfiler_356b632f7213e6a9d2ce1391c8c55bb1.o)
duplicate symbol '_OBJC_METACLASS_$_FBMemoryProfiler' in:
    bazel-out/ios-x86_64-min9.0-applebin_ios-ios_x86_64-fastbuild/bin/external/FBMemoryProfiler/libFBMemoryProfiler.a(FBMemoryProfiler_b83962986f239db06f3b2d80c210c18d.o)
    bazel-out/ios-x86_64-min9.0-applebin_ios-ios_x86_64-fastbuild/bin/external/FBMemoryProfiler/libFBMemoryProfiler_cxx.a(FBMemoryProfiler_356b632f7213e6a9d2ce1391c8c55bb1.o)
duplicate symbol '_OBJC_IVAR_$_FBMemoryProfiler._retainCycleDetectorConfiguration' in:
    bazel-out/ios-x86_64-min9.0-applebin_ios-ios_x86_64-fastbuild/bin/external/FBMemoryProfiler/libFBMemoryProfiler.a(FBMemoryProfiler_b83962986f239db06f3b2d80c210c18d.o)
    bazel-out/ios-x86_64-min9.0-applebin_ios-ios_x86_64-fastbuild/bin/external/FBMemoryProfiler/libFBMemoryProfiler_cxx.a(FBMemoryProfiler_356b632f7213e6a9d2ce1391c8c55bb1.o)
duplicate symbol '_OBJC_IVAR_$_FBMemoryProfiler._presentationMode' in:
    bazel-out/ios-x86_64-min9.0-applebin_ios-ios_x86_64-fastbuild/bin/external/FBMemoryProfiler/libFBMemoryProfiler.a(FBMemoryProfiler_b83962986f239db06f3b2d80c210c18d.o)
    bazel-out/ios-x86_64-min9.0-applebin_ios-ios_x86_64-fastbuild/bin/external/FBMemoryProfiler/libFBMemoryProfiler_cxx.a(FBMemoryProfiler_356b632f7213e6a9d2ce1391c8c55bb1.o)
duplicate symbol '_OBJC_IVAR_$_FBMemoryProfiler._enabled' in:
    bazel-out/ios-x86_64-min9.0-applebin_ios-ios_x86_64-fastbuild/bin/external/FBMemoryProfiler/libFBMemoryProfiler.a(FBMemoryProfiler_b83962986f239db06f3b2d80c210c18d.o)
    bazel-out/ios-x86_64-min9.0-applebin_ios-ios_x86_64-fastbuild/bin/external/FBMemoryProfiler/libFBMemoryProfiler_cxx.a(FBMemoryProfiler_356b632f7213e6a9d2ce1391c8c55bb1.o)
duplicate symbol '_OBJC_IVAR_$_FBNodeEnumerator._retainedObjectsSnapshot' in:
    bazel-out/ios-x86_64-min9.0-applebin_ios-ios_x86_64-fastbuild/bin/external/FBRetainCycleDetector/libFBRetainCycleDetector.a(FBNodeEnumerator_9ec17ad49a0cc26d6fa51e8f6af5d78d.o)
    bazel-out/ios-x86_64-min9.0-applebin_ios-ios_x86_64-fastbuild/bin/external/FBRetainCycleDetector/libFBRetainCycleDetector_cxx.a(FBNodeEnumerator_a8aaef0a893d9d1bc5892c0fbd06664f.o)
duplicate symbol '_OBJC_IVAR_$_FBNodeEnumerator._object' in:
    bazel-out/ios-x86_64-min9.0-applebin_ios-ios_x86_64-fastbuild/bin/external/FBRetainCycleDetector/libFBRetainCycleDetector.a(FBNodeEnumerator_9ec17ad49a0cc26d6fa51e8f6af5d78d.o)
    bazel-out/ios-x86_64-min9.0-applebin_ios-ios_x86_64-fastbuild/bin/external/FBRetainCycleDetector/libFBRetainCycleDetector_cxx.a(FBNodeEnumerator_a8aaef0a893d9d1bc5892c0fbd06664f.o)
duplicate symbol '_OBJC_IVAR_$_FBNodeEnumerator._enumerator' in:
    bazel-out/ios-x86_64-min9.0-applebin_ios-ios_x86_64-fastbuild/bin/external/FBRetainCycleDetector/libFBRetainCycleDetector.a(FBNodeEnumerator_9ec17ad49a0cc26d6fa51e8f6af5d78d.o)
    bazel-out/ios-x86_64-min9.0-applebin_ios-ios_x86_64-fastbuild/bin/external/FBRetainCycleDetector/libFBRetainCycleDetector_cxx.a(FBNodeEnumerator_a8aaef0a893d9d1bc5892c0fbd06664f.o)
duplicate symbol '_OBJC_CLASS_$_FBNodeEnumerator' in:
    bazel-out/ios-x86_64-min9.0-applebin_ios-ios_x86_64-fastbuild/bin/external/FBRetainCycleDetector/libFBRetainCycleDetector.a(FBNodeEnumerator_9ec17ad49a0cc26d6fa51e8f6af5d78d.o)
    bazel-out/ios-x86_64-min9.0-applebin_ios-ios_x86_64-fastbuild/bin/external/FBRetainCycleDetector/libFBRetainCycleDetector_cxx.a(FBNodeEnumerator_a8aaef0a893d9d1bc5892c0fbd06664f.o)
duplicate symbol '_OBJC_METACLASS_$_FBNodeEnumerator' in:
    bazel-out/ios-x86_64-min9.0-applebin_ios-ios_x86_64-fastbuild/bin/external/FBRetainCycleDetector/libFBRetainCycleDetector.a(FBNodeEnumerator_9ec17ad49a0cc26d6fa51e8f6af5d78d.o)
    bazel-out/ios-x86_64-min9.0-applebin_ios-ios_x86_64-fastbuild/bin/external/FBRetainCycleDetector/libFBRetainCycleDetector_cxx.a(FBNodeEnumerator_a8aaef0a893d9d1bc5892c0fbd06664f.o)
duplicate symbol '_OBJC_IVAR_$_FBRetainCycleDetector._objectSet' in:
    bazel-out/ios-x86_64-min9.0-applebin_ios-ios_x86_64-fastbuild/bin/external/FBRetainCycleDetector/libFBRetainCycleDetector.a(FBRetainCycleDetector_195cb225e3ee3730b68e5278e9f9de18.o)
    bazel-out/ios-x86_64-min9.0-applebin_ios-ios_x86_64-fastbuild/bin/external/FBRetainCycleDetector/libFBRetainCycleDetector_cxx.a(FBRetainCycleDetector_a18959c640fd874d9d4043279bfadfa0.o)
duplicate symbol '_OBJC_IVAR_$_FBRetainCycleDetector._candidates' in:
    bazel-out/ios-x86_64-min9.0-applebin_ios-ios_x86_64-fastbuild/bin/external/FBRetainCycleDetector/libFBRetainCycleDetector.a(FBRetainCycleDetector_195cb225e3ee3730b68e5278e9f9de18.o)
    bazel-out/ios-x86_64-min9.0-applebin_ios-ios_x86_64-fastbuild/bin/external/FBRetainCycleDetector/libFBRetainCycleDetector_cxx.a(FBRetainCycleDetector_a18959c640fd874d9d4043279bfadfa0.o)
duplicate symbol '_OBJC_CLASS_$_FBRetainCycleDetector' in:
    bazel-out/ios-x86_64-min9.0-applebin_ios-ios_x86_64-fastbuild/bin/external/FBRetainCycleDetector/libFBRetainCycleDetector.a(FBRetainCycleDetector_195cb225e3ee3730b68e5278e9f9de18.o)
    bazel-out/ios-x86_64-min9.0-applebin_ios-ios_x86_64-fastbuild/bin/external/FBRetainCycleDetector/libFBRetainCycleDetector_cxx.a(FBRetainCycleDetector_a18959c640fd874d9d4043279bfadfa0.o)
duplicate symbol '_OBJC_METACLASS_$_FBRetainCycleDetector' in:
    bazel-out/ios-x86_64-min9.0-applebin_ios-ios_x86_64-fastbuild/bin/external/FBRetainCycleDetector/libFBRetainCycleDetector.a(FBRetainCycleDetector_195cb225e3ee3730b68e5278e9f9de18.o)
    bazel-out/ios-x86_64-min9.0-applebin_ios-ios_x86_64-fastbuild/bin/external/FBRetainCycleDetector/libFBRetainCycleDetector_cxx.a(FBRetainCycleDetector_a18959c640fd874d9d4043279bfadfa0.o)
duplicate symbol '_OBJC_IVAR_$_FBRetainCycleDetector._configuration' in:
    bazel-out/ios-x86_64-min9.0-applebin_ios-ios_x86_64-fastbuild/bin/external/FBRetainCycleDetector/libFBRetainCycleDetector.a(FBRetainCycleDetector_195cb225e3ee3730b68e5278e9f9de18.o)
    bazel-out/ios-x86_64-min9.0-applebin_ios-ios_x86_64-fastbuild/bin/external/FBRetainCycleDetector/libFBRetainCycleDetector_cxx.a(FBRetainCycleDetector_a18959c640fd874d9d4043279bfadfa0.o)
duplicate symbol '_OBJC_CLASS_$_FBObjectiveCGraphElement' in:
    bazel-out/ios-x86_64-min9.0-applebin_ios-ios_x86_64-fastbuild/bin/external/FBRetainCycleDetector/libFBRetainCycleDetector.a(FBObjectiveCGraphElement_8e5681c71c418f8a088564e014aa6bd1.o)
    bazel-out/ios-x86_64-min9.0-applebin_ios-ios_x86_64-fastbuild/bin/external/FBRetainCycleDetector/libFBRetainCycleDetector_cxx.a(FBObjectiveCGraphElement_14a7121f905478ba4ad359a9f410346b.o)
duplicate symbol '_OBJC_METACLASS_$_FBObjectiveCGraphElement' in:
    bazel-out/ios-x86_64-min9.0-applebin_ios-ios_x86_64-fastbuild/bin/external/FBRetainCycleDetector/libFBRetainCycleDetector.a(FBObjectiveCGraphElement_8e5681c71c418f8a088564e014aa6bd1.o)
    bazel-out/ios-x86_64-min9.0-applebin_ios-ios_x86_64-fastbuild/bin/external/FBRetainCycleDetector/libFBRetainCycleDetector_cxx.a(FBObjectiveCGraphElement_14a7121f905478ba4ad359a9f410346b.o)
duplicate symbol '_OBJC_IVAR_$_FBObjectiveCGraphElement._object' in:
    bazel-out/ios-x86_64-min9.0-applebin_ios-ios_x86_64-fastbuild/bin/external/FBRetainCycleDetector/libFBRetainCycleDetector.a(FBObjectiveCGraphElement_8e5681c71c418f8a088564e014aa6bd1.o)
    bazel-out/ios-x86_64-min9.0-applebin_ios-ios_x86_64-fastbuild/bin/external/FBRetainCycleDetector/libFBRetainCycleDetector_cxx.a(FBObjectiveCGraphElement_14a7121f905478ba4ad359a9f410346b.o)
duplicate symbol '_OBJC_IVAR_$_FBObjectiveCGraphElement._configuration' in:
    bazel-out/ios-x86_64-min9.0-applebin_ios-ios_x86_64-fastbuild/bin/external/FBRetainCycleDetector/libFBRetainCycleDetector.a(FBObjectiveCGraphElement_8e5681c71c418f8a088564e014aa6bd1.o)
    bazel-out/ios-x86_64-min9.0-applebin_ios-ios_x86_64-fastbuild/bin/external/FBRetainCycleDetector/libFBRetainCycleDetector_cxx.a(FBObjectiveCGraphElement_14a7121f905478ba4ad359a9f410346b.o)
duplicate symbol '_OBJC_IVAR_$_FBObjectiveCGraphElement._namePath' in:
    bazel-out/ios-x86_64-min9.0-applebin_ios-ios_x86_64-fastbuild/bin/external/FBRetainCycleDetector/libFBRetainCycleDetector.a(FBObjectiveCGraphElement_8e5681c71c418f8a088564e014aa6bd1.o)
    bazel-out/ios-x86_64-min9.0-applebin_ios-ios_x86_64-fastbuild/bin/external/FBRetainCycleDetector/libFBRetainCycleDetector_cxx.a(FBObjectiveCGraphElement_14a7121f905478ba4ad359a9f410346b.o)
duplicate symbol '_OBJC_CLASS_$_FBObjectiveCNSCFTimer' in:
    bazel-out/ios-x86_64-min9.0-applebin_ios-ios_x86_64-fastbuild/bin/external/FBRetainCycleDetector/libFBRetainCycleDetector.a(FBObjectiveCNSCFTimer_72474d5ed73473aa2efd07bc7ce59a91.o)
    bazel-out/ios-x86_64-min9.0-applebin_ios-ios_x86_64-fastbuild/bin/external/FBRetainCycleDetector/libFBRetainCycleDetector_cxx.a(FBObjectiveCNSCFTimer_e9fca9f7c86e20b4db34ec148439801b.o)
duplicate symbol '_OBJC_METACLASS_$_FBObjectiveCNSCFTimer' in:
    bazel-out/ios-x86_64-min9.0-applebin_ios-ios_x86_64-fastbuild/bin/external/FBRetainCycleDetector/libFBRetainCycleDetector.a(FBObjectiveCNSCFTimer_72474d5ed73473aa2efd07bc7ce59a91.o)
    bazel-out/ios-x86_64-min9.0-applebin_ios-ios_x86_64-fastbuild/bin/external/FBRetainCycleDetector/libFBRetainCycleDetector_cxx.a(FBObjectiveCNSCFTimer_e9fca9f7c86e20b4db34ec148439801b.o)
duplicate symbol '_OBJC_IVAR_$_FBAllocationTrackerManager._generationsClients' in:
    bazel-out/ios-x86_64-min9.0-applebin_ios-ios_x86_64-fastbuild/bin/external/FBAllocationTracker/libFBAllocationTracker.a(FBAllocationTrackerManager_90798ddbb3be67916e084cc402d883d6.o)
    bazel-out/ios-x86_64-min9.0-applebin_ios-ios_x86_64-fastbuild/bin/external/FBAllocationTracker/libFBAllocationTracker_cxx.a(FBAllocationTrackerManager_81a829381c33f21ed46c0d4e319b7db8.o)
duplicate symbol '_OBJC_CLASS_$_FBAllocationTrackerManager' in:
    bazel-out/ios-x86_64-min9.0-applebin_ios-ios_x86_64-fastbuild/bin/external/FBAllocationTracker/libFBAllocationTracker.a(FBAllocationTrackerManager_90798ddbb3be67916e084cc402d883d6.o)
    bazel-out/ios-x86_64-min9.0-applebin_ios-ios_x86_64-fastbuild/bin/external/FBAllocationTracker/libFBAllocationTracker_cxx.a(FBAllocationTrackerManager_81a829381c33f21ed46c0d4e319b7db8.o)
duplicate symbol '_OBJC_METACLASS_$_FBAllocationTrackerManager' in:
    bazel-out/ios-x86_64-min9.0-applebin_ios-ios_x86_64-fastbuild/bin/external/FBAllocationTracker/libFBAllocationTracker.a(FBAllocationTrackerManager_90798ddbb3be67916e084cc402d883d6.o)
    bazel-out/ios-x86_64-min9.0-applebin_ios-ios_x86_64-fastbuild/bin/external/FBAllocationTracker/libFBAllocationTracker_cxx.a(FBAllocationTrackerManager_81a829381c33f21ed46c0d4e319b7db8.o)
duplicate symbol '_OBJC_IVAR_$_FBAllocationTrackerManager._queue' in:
    bazel-out/ios-x86_64-min9.0-applebin_ios-ios_x86_64-fastbuild/bin/external/FBAllocationTracker/libFBAllocationTracker.a(FBAllocationTrackerManager_90798ddbb3be67916e084cc402d883d6.o)
    bazel-out/ios-x86_64-min9.0-applebin_ios-ios_x86_64-fastbuild/bin/external/FBAllocationTracker/libFBAllocationTracker_cxx.a(FBAllocationTrackerManager_81a829381c33f21ed46c0d4e319b7db8.o)
duplicate symbol '_FBIsFBATEnabledInThisBuild' in:
    bazel-out/ios-x86_64-min9.0-applebin_ios-ios_x86_64-fastbuild/bin/external/FBAllocationTracker/libFBAllocationTracker.a(FBAllocationTrackerManager_90798ddbb3be67916e084cc402d883d6.o)
    bazel-out/ios-x86_64-min9.0-applebin_ios-ios_x86_64-fastbuild/bin/external/FBAllocationTracker/libFBAllocationTracker_cxx.a(FBAllocationTrackerManager_81a829381c33f21ed46c0d4e319b7db8.o)
ld: 32 duplicate symbols for architecture x86_64
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
Target //:PodToBuild-Example failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 54.820s, Critical Path: 5.44s
INFO: 109 processes: 109 darwin-sandbox.
FAILED: Build did NOT complete successfully