Closed tommypham closed 11 months ago
I 've added opencv in WORKSPACE file like this:
http_archive( name = "ios_opencv", sha256 = "b85c23953e66f202a5e4b83484f90556ad4ea9df6fcb7934044d5d4decf2898f", type = "zip", build_file = "@//third_party:opencv_ios.BUILD", url = "https://github.com/opencv/opencv/releases/download/4.5.3/opencv-4.5.3-ios-framework.zip", )
in third_party I have a file opencv_ios.BUILD:
licenses(["notice"]) # BSD license exports_files(["LICENSE"]) load( "@build_bazel_rules_apple//apple:apple.bzl", "apple_static_framework_import", ) apple_static_framework_import( name = "OpencvFramework", framework_imports = glob(["opencv2.framework/**"]), visibility = ["//visibility:public"], ) objc_library( name = "opencv_objc_lib", deps = [":OpencvFramework"], ) cc_library( name = "opencv", hdrs = glob([ "opencv2.framework/Versions/A/Headers/**/*.h*", ]), copts = [ "-std=c++11", "-x objective-c++", ], include_prefix = "opencv2", linkopts = [ "-framework AssetsLibrary", "-framework CoreFoundation", "-framework CoreGraphics", "-framework CoreMedia", "-framework Accelerate", "-framework CoreImage", "-framework AVFoundation", "-framework CoreVideo", "-framework QuartzCore", "-lstdc++", ], strip_include_prefix = "opencv2.framework/Versions/A/Headers", visibility = ["//visibility:public"], deps = [":opencv_objc_lib"], )
I want to include #include "opencv2/opencv.hpp" in file UrlGetViewController.mm , but I got error:
PhaseScriptExecution Run\ Script /Volumes/0906411561/download/XCode_DerivedData/sampleBazel_iOS-fynmnlrxbivziegtqasnonbuznkv/Build/Intermediates.noindex/sampleBazel_iOS.build/Debug-iphonesimulator/ios-app.build/Script-2F00973DE52271F500000000.sh cd /Volumes/0906411561/My_project/bazel_iOS_sample/bazelSample_iOS export ACTION=build export AD_HOC_CODE_SIGNING_ALLOWED=YES export ALTERNATE_GROUP=staff export ALTERNATE_MODE=u+w,go-w,a+rX export ALTERNATE_OWNER=Thien export ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES=NO export ALWAYS_SEARCH_USER_PATHS=NO export ALWAYS_USE_SEPARATE_HEADERMAPS=NO export APPLE_INTERNAL_DEVELOPER_DIR=/AppleInternal/Developer export APPLE_INTERNAL_DIR=/AppleInternal export APPLE_INTERNAL_DOCUMENTATION_DIR=/AppleInternal/Documentation export APPLE_INTERNAL_LIBRARY_DIR=/AppleInternal/Library export APPLE_INTERNAL_TOOLS=/AppleInternal/Developer/Tools export APPLICATION_EXTENSION_API_ONLY=NO export APPLY_RULES_IN_COPY_FILES=NO export APPLY_RULES_IN_COPY_HEADERS=NO export ARCHS="arm64 x86_64 i386" export ARCHS_STANDARD="arm64 x86_64 i386" export ARCHS_STANDARD_32_64_BIT="arm64 i386 x86_64" export ARCHS_STANDARD_32_BIT=i386 export ARCHS_STANDARD_64_BIT="arm64 x86_64" export ARCHS_STANDARD_INCLUDING_64_BIT="arm64 x86_64 i386" export ARCHS_UNIVERSAL_IPHONE_OS="arm64 i386 x86_64" export ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME="Stub Launch Image" export ASSETCATALOG_FILTER_FOR_DEVICE_MODEL=iPhone13,4 export ASSETCATALOG_FILTER_FOR_DEVICE_OS_VERSION=14.4 export AVAILABLE_PLATFORMS="appletvos appletvsimulator iphoneos iphonesimulator macosx watchos watchsimulator" export BAZEL_TARGET="//ios-app:ios-app" export BITCODE_GENERATION_MODE=marker export BUILD_ACTIVE_RESOURCES_ONLY=YES export BUILD_COMPONENTS="headers build" export BUILD_DIR=/Volumes/0906411561/download/XCode_DerivedData/sampleBazel_iOS-fynmnlrxbivziegtqasnonbuznkv/Build/Products export BUILD_LIBRARY_FOR_DISTRIBUTION=NO export BUILD_ROOT=/Volumes/0906411561/download/XCode_DerivedData/sampleBazel_iOS-fynmnlrxbivziegtqasnonbuznkv/Build/Products export BUILD_STYLE= export BUILD_VARIANTS=normal export BUILT_PRODUCTS_DIR=/Volumes/0906411561/download/XCode_DerivedData/sampleBazel_iOS-fynmnlrxbivziegtqasnonbuznkv/Build/Products/Debug-iphonesimulator export BUNDLE_CONTENTS_FOLDER_PATH_deep=Contents/ export BUNDLE_EXECUTABLE_FOLDER_NAME_deep=MacOS export BUNDLE_FORMAT=shallow export BUNDLE_FRAMEWORKS_FOLDER_PATH=Frameworks export BUNDLE_PLUGINS_FOLDER_PATH=PlugIns export BUNDLE_PRIVATE_HEADERS_FOLDER_PATH=PrivateHeaders export BUNDLE_PUBLIC_HEADERS_FOLDER_PATH=Headers export CACHE_ROOT=/var/folders/ld/tvbm7x511h97_hjcvm0yt2v40000gn/C/com.apple.DeveloperTools/12.4-12D4e/Xcode export CCHROOT=/var/folders/ld/tvbm7x511h97_hjcvm0yt2v40000gn/C/com.apple.DeveloperTools/12.4-12D4e/Xcode export CHMOD=/bin/chmod export CHOWN=/usr/sbin/chown export CLANG_CXX_LANGUAGE_STANDARD=gnu++17 export CLANG_ENABLE_OBJC_ARC=YES export CLANG_MODULES_BUILD_SESSION_FILE=/Volumes/0906411561/download/XCode_DerivedData/ModuleCache.noindex/Session.modulevalidation export CLANG_WARN_BOOL_CONVERSION=YES export CLANG_WARN_CONSTANT_CONVERSION=YES export CLANG_WARN_EMPTY_BODY=YES export CLANG_WARN_ENUM_CONVERSION=YES export CLANG_WARN_INT_CONVERSION=YES export CLANG_WARN_UNREACHABLE_CODE=YES export CLANG_WARN__DUPLICATE_METHOD_MATCH=YES export CLASS_FILE_DIR=/Volumes/0906411561/download/XCode_DerivedData/sampleBazel_iOS-fynmnlrxbivziegtqasnonbuznkv/Build/Intermediates.noindex/sampleBazel_iOS.build/Debug-iphonesimulator/ios-app.build/JavaClasses export CLEAN_PRECOMPS=YES export CLONE_HEADERS=NO export CODESIGNING_FOLDER_PATH=/Volumes/0906411561/download/XCode_DerivedData/sampleBazel_iOS-fynmnlrxbivziegtqasnonbuznkv/Build/Products/Debug-iphonesimulator/ios-app.app export CODE_SIGNING_ALLOWED=YES export CODE_SIGNING_REQUIRED=NO export CODE_SIGN_CONTEXT_CLASS=XCiPhoneSimulatorCodeSignContext export CODE_SIGN_INJECT_BASE_ENTITLEMENTS=YES export COLOR_DIAGNOSTICS=NO export COMBINE_HIDPI_IMAGES=NO export COMMAND_MODE=legacy export COMPILER_INDEX_STORE_ENABLE=Default export COMPOSITE_SDK_DIRS=/Volumes/0906411561/download/XCode_DerivedData/sampleBazel_iOS-fynmnlrxbivziegtqasnonbuznkv/Build/Intermediates.noindex/CompositeSDKs export COMPRESS_PNG_FILES=YES export CONFIGURATION=Debug export CONFIGURATION_BUILD_DIR=/Volumes/0906411561/download/XCode_DerivedData/sampleBazel_iOS-fynmnlrxbivziegtqasnonbuznkv/Build/Products/Debug-iphonesimulator export CONFIGURATION_TEMP_DIR=/Volumes/0906411561/download/XCode_DerivedData/sampleBazel_iOS-fynmnlrxbivziegtqasnonbuznkv/Build/Intermediates.noindex/sampleBazel_iOS.build/Debug-iphonesimulator export CONTENTS_FOLDER_PATH=ios-app.app export COPYING_PRESERVES_HFS_DATA=NO export COPY_HEADERS_RUN_UNIFDEF=NO export COPY_PHASE_STRIP=YES export COPY_RESOURCES_FROM_STATIC_FRAMEWORKS=YES export CORRESPONDING_DEVICE_PLATFORM_DIR=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform export CORRESPONDING_DEVICE_PLATFORM_NAME=iphoneos export CORRESPONDING_DEVICE_SDK_DIR=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.4.sdk export CORRESPONDING_DEVICE_SDK_NAME=iphoneos14.4 export CP=/bin/cp export CREATE_INFOPLIST_SECTION_IN_BINARY=NO export CURRENT_ARCH=i386 export CURRENT_VARIANT=normal export DEAD_CODE_STRIPPING=YES export DEBUGGING_SYMBOLS=YES export DEBUG_INFORMATION_FORMAT=dwarf export DEFAULT_COMPILER=com.apple.compilers.llvm.clang.1_0 export DEFAULT_DEXT_INSTALL_PATH=/System/Library/DriverExtensions export DEFAULT_KEXT_INSTALL_PATH=/System/Library/Extensions export DEFINES_MODULE=NO export DEPLOYMENT_LOCATION=NO export DEPLOYMENT_POSTPROCESSING=NO export DEPLOYMENT_TARGET_CLANG_ENV_NAME=IPHONEOS_DEPLOYMENT_TARGET export DEPLOYMENT_TARGET_CLANG_FLAG_NAME=mios-simulator-version-min export DEPLOYMENT_TARGET_CLANG_FLAG_PREFIX=-mios-simulator-version-min= export DEPLOYMENT_TARGET_LD_ENV_NAME=IPHONEOS_DEPLOYMENT_TARGET export DEPLOYMENT_TARGET_LD_FLAG_NAME=ios_simulator_version_min export DEPLOYMENT_TARGET_SETTING_NAME=IPHONEOS_DEPLOYMENT_TARGET export DEPLOYMENT_TARGET_SUGGESTED_VALUES="9.0 9.2 10.0 10.2 11.0 11.2 11.4 12.1 12.3 13.0 13.2 13.4 13.6 14.1 14.3 14.4" export DERIVED_FILES_DIR=/Volumes/0906411561/download/XCode_DerivedData/sampleBazel_iOS-fynmnlrxbivziegtqasnonbuznkv/Build/Intermediates.noindex/sampleBazel_iOS.build/Debug-iphonesimulator/ios-app.build/DerivedSources export DERIVED_FILE_DIR=/Volumes/0906411561/download/XCode_DerivedData/sampleBazel_iOS-fynmnlrxbivziegtqasnonbuznkv/Build/Intermediates.noindex/sampleBazel_iOS.build/Debug-iphonesimulator/ios-app.build/DerivedSources export DERIVED_SOURCES_DIR=/Volumes/0906411561/download/XCode_DerivedData/sampleBazel_iOS-fynmnlrxbivziegtqasnonbuznkv/Build/Intermediates.noindex/sampleBazel_iOS.build/Debug-iphonesimulator/ios-app.build/DerivedSources export DEVELOPER_APPLICATIONS_DIR=/Applications/Xcode.app/Contents/Developer/Applications export DEVELOPER_BIN_DIR=/Applications/Xcode.app/Contents/Developer/usr/bin export DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer export DEVELOPER_FRAMEWORKS_DIR=/Applications/Xcode.app/Contents/Developer/Library/Frameworks export DEVELOPER_FRAMEWORKS_DIR_QUOTED=/Applications/Xcode.app/Contents/Developer/Library/Frameworks export DEVELOPER_LIBRARY_DIR=/Applications/Xcode.app/Contents/Developer/Library export DEVELOPER_SDK_DIR=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs export DEVELOPER_TOOLS_DIR=/Applications/Xcode.app/Contents/Developer/Tools export DEVELOPER_USR_DIR=/Applications/Xcode.app/Contents/Developer/usr export DEVELOPMENT_LANGUAGE=English export DOCUMENTATION_FOLDER_PATH=ios-app.app/English.lproj/Documentation export DONT_GENERATE_INFOPLIST_FILE=NO export DONT_RUN_SWIFT_STDLIB_TOOL=YES export DO_HEADER_SCANNING_IN_JAM=NO export DSTROOT=/tmp/sampleBazel_iOS.dst export DT_TOOLCHAIN_DIR=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain export DWARF_DSYM_FILE_NAME=ios-app.app.dSYM export DWARF_DSYM_FILE_SHOULD_ACCOMPANY_PRODUCT=NO export DWARF_DSYM_FOLDER_PATH=/Volumes/0906411561/download/XCode_DerivedData/sampleBazel_iOS-fynmnlrxbivziegtqasnonbuznkv/Build/Products/Debug-iphonesimulator export EFFECTIVE_PLATFORM_NAME=-iphonesimulator export EMBEDDED_CONTENT_CONTAINS_SWIFT=NO export EMBED_ASSET_PACKS_IN_PRODUCT_BUNDLE=NO export ENABLE_BITCODE=NO export ENABLE_DEFAULT_HEADER_SEARCH_PATHS=YES export ENABLE_HARDENED_RUNTIME=NO export ENABLE_HEADER_DEPENDENCIES=YES export ENABLE_ON_DEMAND_RESOURCES=YES export ENABLE_TESTABILITY=YES export ENABLE_TESTING_SEARCH_PATHS=NO export ENTITLEMENTS_DESTINATION=__entitlements export ENTITLEMENTS_REQUIRED=YES export EXCLUDED_INSTALLSRC_SUBDIRECTORY_PATTERNS=".DS_Store .svn .git .hg CVS" export EXCLUDED_RECURSIVE_SEARCH_PATH_SUBDIRECTORIES="*.nib *.lproj *.framework *.gch *.xcode* *.xcassets (*) .DS_Store CVS .svn .git .hg *.pbproj *.pbxproj" export EXECUTABLES_FOLDER_PATH=ios-app.app/Executables export EXECUTABLE_FOLDER_PATH=ios-app.app export EXECUTABLE_NAME=ios-app export EXECUTABLE_PATH=ios-app.app/ios-app export EXPANDED_CODE_SIGN_IDENTITY=- export EXPANDED_CODE_SIGN_IDENTITY_NAME=- export EXPANDED_PROVISIONING_PROFILE= export FILE_LIST=/Volumes/0906411561/download/XCode_DerivedData/sampleBazel_iOS-fynmnlrxbivziegtqasnonbuznkv/Build/Intermediates.noindex/sampleBazel_iOS.build/Debug-iphonesimulator/ios-app.build/Objects/LinkFileList export FIXED_FILES_DIR=/Volumes/0906411561/download/XCode_DerivedData/sampleBazel_iOS-fynmnlrxbivziegtqasnonbuznkv/Build/Intermediates.noindex/sampleBazel_iOS.build/Debug-iphonesimulator/ios-app.build/FixedFiles export FRAMEWORKS_FOLDER_PATH=ios-app.app/Frameworks export FRAMEWORK_FLAG_PREFIX=-framework export FRAMEWORK_SEARCH_PATHS="/Volumes/0906411561/download/XCode_DerivedData/sampleBazel_iOS-fynmnlrxbivziegtqasnonbuznkv/Build/Products/Debug-iphonesimulator /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Frameworks" export FRAMEWORK_VERSION=A export FULL_PRODUCT_NAME=ios-app.app export GCC3_VERSION=3.3 export GCC_INLINES_ARE_PRIVATE_EXTERN=YES export GCC_OBJC_LEGACY_DISPATCH=YES export GCC_PFE_FILE_C_DIALECTS="c objective-c c++ objective-c++" export GCC_PREPROCESSOR_DEFINITIONS=DEBUG=1 export GCC_SYMBOLS_PRIVATE_EXTERN=NO export GCC_TREAT_WARNINGS_AS_ERRORS=NO export GCC_VERSION=com.apple.compilers.llvm.clang.1_0 export GCC_VERSION_IDENTIFIER=com_apple_compilers_llvm_clang_1_0 export GCC_WARN_64_TO_32_BIT_CONVERSION=YES export GCC_WARN_ABOUT_RETURN_TYPE=YES export GCC_WARN_UNDECLARED_SELECTOR=YES export GCC_WARN_UNINITIALIZED_AUTOS=YES export GCC_WARN_UNUSED_FUNCTION=YES export GCC_WARN_UNUSED_VARIABLE=YES export GENERATED_MODULEMAP_DIR=/Volumes/0906411561/download/XCode_DerivedData/sampleBazel_iOS-fynmnlrxbivziegtqasnonbuznkv/Build/Intermediates.noindex/GeneratedModuleMaps-iphonesimulator export GENERATE_MASTER_OBJECT_FILE=NO export GENERATE_PKGINFO_FILE=YES export GENERATE_PROFILING_CODE=NO export GENERATE_TEXT_BASED_STUBS=NO export GID=20 export GROUP=staff export HEADERMAP_INCLUDES_FLAT_ENTRIES_FOR_TARGET_BEING_BUILT=YES export HEADERMAP_INCLUDES_FRAMEWORK_ENTRIES_FOR_ALL_PRODUCT_TYPES=YES export HEADERMAP_INCLUDES_NONPUBLIC_NONPRIVATE_HEADERS=YES export HEADERMAP_INCLUDES_PROJECT_HEADERS=YES export HEADERMAP_USES_FRAMEWORK_PREFIX_ENTRIES=YES export HEADERMAP_USES_VFS=NO export HEADER_SEARCH_PATHS="/Volumes/0906411561/download/XCode_DerivedData/sampleBazel_iOS-fynmnlrxbivziegtqasnonbuznkv/Build/Products/Debug-iphonesimulator/include /Volumes/0906411561/My_project/bazel_iOS_sample/bazelSample_iOS/sampleBazel_iOS.xcodeproj/.tulsi/tulsi-workspace /Volumes/0906411561/My_project/bazel_iOS_sample/examples/tutorial/bazel-bin /Volumes/0906411561/My_project/bazel_iOS_sample/examples/tutorial/bazel-genfiles /Volumes/0906411561/My_project/bazel_iOS_sample/bazelSample_iOS/sampleBazel_iOS.xcodeproj/.tulsi/tulsi-workspace/bazel-tulsi-includes/x/x" export HIDE_BITCODE_SYMBOLS=YES export HOME=/Users/Thien export ICONV=/usr/bin/iconv export INFOPLIST_EXPAND_BUILD_SETTINGS=YES export INFOPLIST_FILE=/Volumes/0906411561/My_project/bazel_iOS_sample/bazelSample_iOS/sampleBazel_iOS.xcodeproj/.tulsi/Resources/StubInfoPlist.plist export INFOPLIST_OUTPUT_FORMAT=binary export INFOPLIST_PATH=ios-app.app/Info.plist export INFOPLIST_PREPROCESS=NO export INFOSTRINGS_PATH=ios-app.app/English.lproj/InfoPlist.strings export INLINE_PRIVATE_FRAMEWORKS=NO export INSTALLHDRS_COPY_PHASE=NO export INSTALLHDRS_SCRIPT_PHASE=NO export INSTALL_DIR=/tmp/sampleBazel_iOS.dst/Applications export INSTALL_GROUP=staff export INSTALL_MODE_FLAG=u+w,go-w,a+rX export INSTALL_OWNER=Thien export INSTALL_PATH=/Applications export INSTALL_ROOT=/tmp/sampleBazel_iOS.dst export IPHONEOS_DEPLOYMENT_TARGET=10.0 export JAVAC_DEFAULT_FLAGS="-J-Xms64m -J-XX:NewSize=4M -J-Dfile.encoding=UTF8" export JAVA_APP_STUB=/System/Library/Frameworks/JavaVM.framework/Resources/MacOS/JavaApplicationStub export JAVA_ARCHIVE_CLASSES=YES export JAVA_ARCHIVE_TYPE=JAR export JAVA_COMPILER=/usr/bin/javac export JAVA_FOLDER_PATH=ios-app.app/Java export JAVA_FRAMEWORK_RESOURCES_DIRS=Resources export JAVA_JAR_FLAGS=cv export JAVA_SOURCE_SUBDIR=. export JAVA_USE_DEPENDENCIES=YES export JAVA_ZIP_FLAGS=-urg export JIKES_DEFAULT_FLAGS="+E +OLDCSO" export KEEP_PRIVATE_EXTERNS=NO export LD_DEPENDENCY_INFO_FILE=/Volumes/0906411561/download/XCode_DerivedData/sampleBazel_iOS-fynmnlrxbivziegtqasnonbuznkv/Build/Intermediates.noindex/sampleBazel_iOS.build/Debug-iphonesimulator/ios-app.build/Objects-normal/i386/ios-app_dependency_info.dat export LD_GENERATE_MAP_FILE=NO export LD_MAP_FILE_PATH=/Volumes/0906411561/download/XCode_DerivedData/sampleBazel_iOS-fynmnlrxbivziegtqasnonbuznkv/Build/Intermediates.noindex/sampleBazel_iOS.build/Debug-iphonesimulator/ios-app.build/ios-app-LinkMap-normal-i386.txt export LD_NO_PIE=NO export LD_QUOTE_LINKER_ARGUMENTS_FOR_COMPILER_DRIVER=YES export LEGACY_DEVELOPER_DIR=/Applications/Xcode.app/Contents/PlugIns/Xcode3Core.ideplugin/Contents/SharedSupport/Developer export LEX=lex export LIBRARY_DEXT_INSTALL_PATH=/Library/DriverExtensions export LIBRARY_FLAG_NOSPACE=YES export LIBRARY_FLAG_PREFIX=-l export LIBRARY_KEXT_INSTALL_PATH=/Library/Extensions export LIBRARY_SEARCH_PATHS="/Volumes/0906411561/download/XCode_DerivedData/sampleBazel_iOS-fynmnlrxbivziegtqasnonbuznkv/Build/Products/Debug-iphonesimulator " export LINKER_DISPLAYS_MANGLED_NAMES=NO export LINK_FILE_LIST_normal_arm64=/Volumes/0906411561/download/XCode_DerivedData/sampleBazel_iOS-fynmnlrxbivziegtqasnonbuznkv/Build/Intermediates.noindex/sampleBazel_iOS.build/Debug-iphonesimulator/ios-app.build/Objects-normal/arm64/ios-app.LinkFileList export LINK_FILE_LIST_normal_i386=/Volumes/0906411561/download/XCode_DerivedData/sampleBazel_iOS-fynmnlrxbivziegtqasnonbuznkv/Build/Intermediates.noindex/sampleBazel_iOS.build/Debug-iphonesimulator/ios-app.build/Objects-normal/i386/ios-app.LinkFileList export LINK_FILE_LIST_normal_x86_64=/Volumes/0906411561/download/XCode_DerivedData/sampleBazel_iOS-fynmnlrxbivziegtqasnonbuznkv/Build/Intermediates.noindex/sampleBazel_iOS.build/Debug-iphonesimulator/ios-app.build/Objects-normal/x86_64/ios-app.LinkFileList export LINK_WITH_STANDARD_LIBRARIES=YES export LLVM_TARGET_TRIPLE_OS_VERSION=ios10.0 export LLVM_TARGET_TRIPLE_SUFFIX=-simulator export LLVM_TARGET_TRIPLE_VENDOR=apple export LOCALIZABLE_CONTENT_DIR= export LOCALIZED_RESOURCES_FOLDER_PATH=ios-app.app/English.lproj export LOCALIZED_STRING_MACRO_NAMES="NSLocalizedString CFCopyLocalizedString" export LOCALIZED_STRING_SWIFTUI_SUPPORT=YES export LOCAL_ADMIN_APPS_DIR=/Applications/Utilities export LOCAL_APPS_DIR=/Applications export LOCAL_DEVELOPER_DIR=/Library/Developer export LOCAL_LIBRARY_DIR=/Library export LOCROOT= export LOCSYMROOT= export MACH_O_TYPE=mh_execute export MAC_OS_X_PRODUCT_BUILD_VERSION=19G2021 export MAC_OS_X_VERSION_ACTUAL=101506 export MAC_OS_X_VERSION_MAJOR=101500 export MAC_OS_X_VERSION_MINOR=1506 export METAL_LIBRARY_FILE_BASE=default export METAL_LIBRARY_OUTPUT_DIR=/Volumes/0906411561/download/XCode_DerivedData/sampleBazel_iOS-fynmnlrxbivziegtqasnonbuznkv/Build/Products/Debug-iphonesimulator/ios-app.app export MODULES_FOLDER_PATH=ios-app.app/Modules export MODULE_CACHE_DIR=/Volumes/0906411561/download/XCode_DerivedData/ModuleCache.noindex export NATIVE_ARCH=x86_64 export NATIVE_ARCH_32_BIT=i386 export NATIVE_ARCH_64_BIT=x86_64 export NATIVE_ARCH_ACTUAL=x86_64 export NO_COMMON=YES export OBJC_ABI_VERSION=2 export OBJECT_FILE_DIR=/Volumes/0906411561/download/XCode_DerivedData/sampleBazel_iOS-fynmnlrxbivziegtqasnonbuznkv/Build/Intermediates.noindex/sampleBazel_iOS.build/Debug-iphonesimulator/ios-app.build/Objects export OBJECT_FILE_DIR_normal=/Volumes/0906411561/download/XCode_DerivedData/sampleBazel_iOS-fynmnlrxbivziegtqasnonbuznkv/Build/Intermediates.noindex/sampleBazel_iOS.build/Debug-iphonesimulator/ios-app.build/Objects-normal export OBJROOT=/Volumes/0906411561/download/XCode_DerivedData/sampleBazel_iOS-fynmnlrxbivziegtqasnonbuznkv/Build/Intermediates.noindex export ONLY_ACTIVE_ARCH=NO export OS=MACOS export OSAC=/usr/bin/osacompile export PACKAGE_TYPE=com.apple.package-type.wrapper.application export PASCAL_STRINGS=YES export PATH="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/local/bin:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/libexec:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/local/bin:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/usr/bin:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/usr/local/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/local/bin:/Applications/Xcode.app/Contents/Developer/Tools:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin" export PATH_PREFIXES_EXCLUDED_FROM_HEADER_DEPENDENCIES="/usr/include /usr/local/include /System/Library/Frameworks /System/Library/PrivateFrameworks /Applications/Xcode.app/Contents/Developer/Headers /Applications/Xcode.app/Contents/Developer/SDKs /Applications/Xcode.app/Contents/Developer/Platforms" export PBDEVELOPMENTPLIST_PATH=ios-app.app/pbdevelopment.plist export PKGINFO_FILE_PATH=/Volumes/0906411561/download/XCode_DerivedData/sampleBazel_iOS-fynmnlrxbivziegtqasnonbuznkv/Build/Intermediates.noindex/sampleBazel_iOS.build/Debug-iphonesimulator/ios-app.build/PkgInfo export PKGINFO_PATH=ios-app.app/PkgInfo export PLATFORM_DEVELOPER_APPLICATIONS_DIR=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications export PLATFORM_DEVELOPER_BIN_DIR=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin export PLATFORM_DEVELOPER_LIBRARY_DIR=/Applications/Xcode.app/Contents/PlugIns/Xcode3Core.ideplugin/Contents/SharedSupport/Developer/Library export PLATFORM_DEVELOPER_SDK_DIR=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs export PLATFORM_DEVELOPER_TOOLS_DIR=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Tools export PLATFORM_DEVELOPER_USR_DIR=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr export PLATFORM_DIR=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform export PLATFORM_DISPLAY_NAME="iOS Simulator" export PLATFORM_NAME=iphonesimulator export PLATFORM_PREFERRED_ARCH=x86_64 export PLATFORM_PRODUCT_BUILD_VERSION=18D46 export PLIST_FILE_OUTPUT_FORMAT=binary export PLUGINS_FOLDER_PATH=ios-app.app/PlugIns export PRECOMPS_INCLUDE_HEADERS_FROM_BUILT_PRODUCTS_DIR=YES export PRECOMP_DESTINATION_DIR=/Volumes/0906411561/download/XCode_DerivedData/sampleBazel_iOS-fynmnlrxbivziegtqasnonbuznkv/Build/Intermediates.noindex/sampleBazel_iOS.build/Debug-iphonesimulator/ios-app.build/PrefixHeaders export PRESERVE_DEAD_CODE_INITS_AND_TERMS=NO export PRIVATE_HEADERS_FOLDER_PATH=ios-app.app/PrivateHeaders export PRODUCT_BUNDLE_IDENTIFIER=Google.UrlGet.vanthien1986 export PRODUCT_BUNDLE_PACKAGE_TYPE=APPL export PRODUCT_MODULE_NAME=ios_app export PRODUCT_NAME=ios-app export PRODUCT_SETTINGS_PATH=/Volumes/0906411561/My_project/bazel_iOS_sample/bazelSample_iOS/sampleBazel_iOS.xcodeproj/.tulsi/Resources/StubInfoPlist.plist export PRODUCT_TYPE=com.apple.product-type.application export PROFILING_CODE=NO export PROJECT=sampleBazel_iOS export PROJECT_DERIVED_FILE_DIR=/Volumes/0906411561/download/XCode_DerivedData/sampleBazel_iOS-fynmnlrxbivziegtqasnonbuznkv/Build/Intermediates.noindex/sampleBazel_iOS.build/DerivedSources export PROJECT_DIR=/Volumes/0906411561/My_project/bazel_iOS_sample/bazelSample_iOS export PROJECT_FILE_PATH=/Volumes/0906411561/My_project/bazel_iOS_sample/bazelSample_iOS/sampleBazel_iOS.xcodeproj export PROJECT_NAME=sampleBazel_iOS export PROJECT_TEMP_DIR=/Volumes/0906411561/download/XCode_DerivedData/sampleBazel_iOS-fynmnlrxbivziegtqasnonbuznkv/Build/Intermediates.noindex/sampleBazel_iOS.build export PROJECT_TEMP_ROOT=/Volumes/0906411561/download/XCode_DerivedData/sampleBazel_iOS-fynmnlrxbivziegtqasnonbuznkv/Build/Intermediates.noindex export PUBLIC_HEADERS_FOLDER_PATH=ios-app.app/Headers export PYTHONIOENCODING=utf8 export RECURSIVE_SEARCH_PATHS_FOLLOW_SYMLINKS=YES export REMOVE_CVS_FROM_RESOURCES=YES export REMOVE_GIT_FROM_RESOURCES=YES export REMOVE_HEADERS_FROM_EMBEDDED_BUNDLES=YES export REMOVE_HG_FROM_RESOURCES=YES export REMOVE_SVN_FROM_RESOURCES=YES export REZ_COLLECTOR_DIR=/Volumes/0906411561/download/XCode_DerivedData/sampleBazel_iOS-fynmnlrxbivziegtqasnonbuznkv/Build/Intermediates.noindex/sampleBazel_iOS.build/Debug-iphonesimulator/ios-app.build/ResourceManagerResources export REZ_OBJECTS_DIR=/Volumes/0906411561/download/XCode_DerivedData/sampleBazel_iOS-fynmnlrxbivziegtqasnonbuznkv/Build/Intermediates.noindex/sampleBazel_iOS.build/Debug-iphonesimulator/ios-app.build/ResourceManagerResources/Objects export REZ_SEARCH_PATHS="/Volumes/0906411561/download/XCode_DerivedData/sampleBazel_iOS-fynmnlrxbivziegtqasnonbuznkv/Build/Products/Debug-iphonesimulator " export SCAN_ALL_SOURCE_FILES_FOR_INCLUDES=NO export SCRIPTS_FOLDER_PATH=ios-app.app/Scripts export SCRIPT_INPUT_FILE_0=/Volumes/0906411561/download/XCode_DerivedData/sampleBazel_iOS-fynmnlrxbivziegtqasnonbuznkv/Build/Products/Debug-iphonesimulator/ios-app.app/Info.plist export SCRIPT_INPUT_FILE_COUNT=1 export SCRIPT_INPUT_FILE_LIST_COUNT=0 export SCRIPT_OUTPUT_FILE_COUNT=0 export SCRIPT_OUTPUT_FILE_LIST_COUNT=0 export SDKROOT=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk export SDK_DIR=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk export SDK_DIR_iphonesimulator14_4=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk export SDK_NAME=iphonesimulator14.4 export SDK_NAMES=iphonesimulator14.4 export SDK_PRODUCT_BUILD_VERSION=18D46 export SDK_VERSION=14.4 export SDK_VERSION_ACTUAL=140400 export SDK_VERSION_MAJOR=140000 export SDK_VERSION_MINOR=140400 export SED=/usr/bin/sed export SEPARATE_STRIP=NO export SEPARATE_SYMBOL_EDIT=NO export SET_DIR_MODE_OWNER_GROUP=YES export SET_FILE_MODE_OWNER_GROUP=NO export SHALLOW_BUNDLE=YES export SHARED_DERIVED_FILE_DIR=/Volumes/0906411561/download/XCode_DerivedData/sampleBazel_iOS-fynmnlrxbivziegtqasnonbuznkv/Build/Products/Debug-iphonesimulator/DerivedSources export SHARED_FRAMEWORKS_FOLDER_PATH=ios-app.app/SharedFrameworks export SHARED_PRECOMPS_DIR=/Volumes/0906411561/download/XCode_DerivedData/sampleBazel_iOS-fynmnlrxbivziegtqasnonbuznkv/Build/Intermediates.noindex/PrecompiledHeaders export SHARED_SUPPORT_FOLDER_PATH=ios-app.app/SharedSupport export SKIP_INSTALL=NO export SOURCE_ROOT=/Volumes/0906411561/My_project/bazel_iOS_sample/bazelSample_iOS export SRCROOT=/Volumes/0906411561/My_project/bazel_iOS_sample/bazelSample_iOS export STRINGS_FILE_OUTPUT_ENCODING=binary export STRIP_BITCODE_FROM_COPIED_FILES=NO export STRIP_INSTALLED_PRODUCT=YES export STRIP_STYLE=all export STRIP_SWIFT_SYMBOLS=YES export SUPPORTED_DEVICE_FAMILIES=1,2 export SUPPORTED_PLATFORMS="iphonesimulator iphoneos" export SUPPORTS_TEXT_BASED_API=NO export SWIFT_PLATFORM_TARGET_PREFIX=ios export SYMROOT=/Volumes/0906411561/download/XCode_DerivedData/sampleBazel_iOS-fynmnlrxbivziegtqasnonbuznkv/Build/Products export SYSTEM_ADMIN_APPS_DIR=/Applications/Utilities export SYSTEM_APPS_DIR=/Applications export SYSTEM_CORE_SERVICES_DIR=/System/Library/CoreServices export SYSTEM_DEMOS_DIR=/Applications/Extras export SYSTEM_DEVELOPER_APPS_DIR=/Applications/Xcode.app/Contents/Developer/Applications export SYSTEM_DEVELOPER_BIN_DIR=/Applications/Xcode.app/Contents/Developer/usr/bin export SYSTEM_DEVELOPER_DEMOS_DIR="/Applications/Xcode.app/Contents/Developer/Applications/Utilities/Built Examples" export SYSTEM_DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer export SYSTEM_DEVELOPER_DOC_DIR="/Applications/Xcode.app/Contents/Developer/ADC Reference Library" export SYSTEM_DEVELOPER_GRAPHICS_TOOLS_DIR="/Applications/Xcode.app/Contents/Developer/Applications/Graphics Tools" export SYSTEM_DEVELOPER_JAVA_TOOLS_DIR="/Applications/Xcode.app/Contents/Developer/Applications/Java Tools" export SYSTEM_DEVELOPER_PERFORMANCE_TOOLS_DIR="/Applications/Xcode.app/Contents/Developer/Applications/Performance Tools" export SYSTEM_DEVELOPER_RELEASENOTES_DIR="/Applications/Xcode.app/Contents/Developer/ADC Reference Library/releasenotes" export SYSTEM_DEVELOPER_TOOLS=/Applications/Xcode.app/Contents/Developer/Tools export SYSTEM_DEVELOPER_TOOLS_DOC_DIR="/Applications/Xcode.app/Contents/Developer/ADC Reference Library/documentation/DeveloperTools" export SYSTEM_DEVELOPER_TOOLS_RELEASENOTES_DIR="/Applications/Xcode.app/Contents/Developer/ADC Reference Library/releasenotes/DeveloperTools" export SYSTEM_DEVELOPER_USR_DIR=/Applications/Xcode.app/Contents/Developer/usr export SYSTEM_DEVELOPER_UTILITIES_DIR=/Applications/Xcode.app/Contents/Developer/Applications/Utilities export SYSTEM_DEXT_INSTALL_PATH=/System/Library/DriverExtensions export SYSTEM_DOCUMENTATION_DIR=/Library/Documentation export SYSTEM_KEXT_INSTALL_PATH=/System/Library/Extensions export SYSTEM_LIBRARY_DIR=/System/Library export TAPI_VERIFY_MODE=ErrorsOnly export TARGETED_DEVICE_FAMILY=1 export TARGETNAME=ios-app export TARGET_BUILD_DIR=/Volumes/0906411561/download/XCode_DerivedData/sampleBazel_iOS-fynmnlrxbivziegtqasnonbuznkv/Build/Products/Debug-iphonesimulator export TARGET_DEVICE_IDENTIFIER=BABA939E-1996-499A-B928-F00D53F0E382 export TARGET_DEVICE_MODEL=iPhone13,4 export TARGET_DEVICE_OS_VERSION=14.4 export TARGET_NAME=ios-app export TARGET_TEMP_DIR=/Volumes/0906411561/download/XCode_DerivedData/sampleBazel_iOS-fynmnlrxbivziegtqasnonbuznkv/Build/Intermediates.noindex/sampleBazel_iOS.build/Debug-iphonesimulator/ios-app.build export TEMP_DIR=/Volumes/0906411561/download/XCode_DerivedData/sampleBazel_iOS-fynmnlrxbivziegtqasnonbuznkv/Build/Intermediates.noindex/sampleBazel_iOS.build/Debug-iphonesimulator/ios-app.build export TEMP_FILES_DIR=/Volumes/0906411561/download/XCode_DerivedData/sampleBazel_iOS-fynmnlrxbivziegtqasnonbuznkv/Build/Intermediates.noindex/sampleBazel_iOS.build/Debug-iphonesimulator/ios-app.build export TEMP_FILE_DIR=/Volumes/0906411561/download/XCode_DerivedData/sampleBazel_iOS-fynmnlrxbivziegtqasnonbuznkv/Build/Intermediates.noindex/sampleBazel_iOS.build/Debug-iphonesimulator/ios-app.build export TEMP_ROOT=/Volumes/0906411561/download/XCode_DerivedData/sampleBazel_iOS-fynmnlrxbivziegtqasnonbuznkv/Build/Intermediates.noindex export TEST_FRAMEWORK_SEARCH_PATHS=" /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Frameworks /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/Developer/Library/Frameworks" export TEST_LIBRARY_SEARCH_PATHS=" /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/lib" export TOOLCHAINS=com.apple.dt.toolchain.XcodeDefault export TOOLCHAIN_DIR=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain export TREAT_MISSING_BASELINES_AS_TEST_FAILURES=NO export TULSI_BUILD_PATH=ios-app export TULSI_BWRS=/Volumes/0906411561/My_project/bazel_iOS_sample/bazelSample_iOS/sampleBazel_iOS.xcodeproj/.tulsi/tulsi-workspace export TULSI_LLDBINIT_FILE=/Volumes/0906411561/My_project/bazel_iOS_sample/bazelSample_iOS/sampleBazel_iOS.xcodeproj/.tulsi/Utils/lldbinit export TULSI_PROJECT=sampleBazel_iOS export TULSI_VERSION=0.20210318.88 export TULSI_WR=/Volumes/0906411561/My_project/bazel_iOS_sample/examples/tutorial export TULSI_XCODE_VERSION=12.4.0.12D4e export UID=501 export UNLOCALIZED_RESOURCES_FOLDER_PATH=ios-app.app export UNSTRIPPED_PRODUCT=NO export USER=Thien export USER_APPS_DIR=/Users/Thien/Applications export USER_LIBRARY_DIR=/Users/Thien/Library export USE_DYNAMIC_NO_PIC=YES export USE_HEADERMAP=YES export USE_HEADER_SYMLINKS=NO export USE_LLVM_TARGET_TRIPLES=YES export USE_LLVM_TARGET_TRIPLES_FOR_CLANG=YES export USE_LLVM_TARGET_TRIPLES_FOR_LD=YES export USE_LLVM_TARGET_TRIPLES_FOR_TAPI=YES export VALIDATE_PRODUCT=NO export VALIDATE_WORKSPACE=NO export VALID_ARCHS="arm64 arm64e i386 x86_64" export VERBOSE_PBXCP=NO export VERSIONPLIST_PATH=ios-app.app/version.plist export VERSION_INFO_BUILDER=Thien export VERSION_INFO_FILE=ios-app_vers.c export VERSION_INFO_STRING="\"@(#)PROGRAM:ios-app PROJECT:sampleBazel_iOS-\"" export WRAPPER_EXTENSION=app export WRAPPER_NAME=ios-app.app export WRAPPER_SUFFIX=.app export WRAP_ASSET_PACKS_IN_SEPARATE_DIRECTORIES=NO export XCODE_APP_SUPPORT_DIR=/Applications/Xcode.app/Contents/Developer/Library/Xcode export XCODE_PRODUCT_BUILD_VERSION=12D4e export XCODE_VERSION_ACTUAL=1240 export XCODE_VERSION_MAJOR=1200 export XCODE_VERSION_MINOR=1240 export XPCSERVICES_FOLDER_PATH=ios-app.app/XPCServices export YACC=yacc export arch=i386 export variant=normal /bin/sh -c /Volumes/0906411561/download/XCode_DerivedData/sampleBazel_iOS-fynmnlrxbivziegtqasnonbuznkv/Build/Intermediates.noindex/sampleBazel_iOS.build/Debug-iphonesimulator/ios-app.build/Script-2F00973DE52271F500000000.sh Queuing Tulsi build... <*> Parsing options completed in 0.254 ms Running "/usr/local/Cellar/bazelisk/1.10.1/bin/bazelisk build --verbose_failures --bes_outerr_buffer_size=0 --apple_platform_type=ios --cpu=ios_i386 --watchos_cpus=i386 --announce_rc '--override_repository=tulsi=/Users/Thien/Library/Application Support/Tulsi/0.20210318.88/Bazel' --compilation_mode=dbg --define=apple.add_debugger_entitlement=1 --define=apple.propagate_embedded_extra_outputs=1 --define=apple.experimental.tree_artifact_outputs=1 --features=debug_prefix_map_pwd_is_dot --tool_tag=tulsi:bazel_build --build_event_json_file=/Volumes/0906411561/My_project/bazel_iOS_sample/bazelSample_iOS/sampleBazel_iOS.xcodeproj/.tulsi/14823_build_events.json --noexperimental_build_event_json_file_path_conversion --aspects @tulsi//:tulsi/tulsi_aspects.bzl%tulsi_outputs_aspect --output_groups=tulsi_outputs,default //ios-app:ios-app", patching output for workspace root at "/Volumes/0906411561/My_project/bazel_iOS_sample/examples/tutorial" with project path at "/Volumes/0906411561/My_project/bazel_iOS_sample/bazelSample_iOS". note: Options provided by the client: Inherited 'common' options: --isatty=0 --terminal_columns=80 Loading: Loading: 0 packages loaded Analyzing: target //ios-app:ios-app (0 packages loaded, 0 targets configured) note: Analyzed target //ios-app:ios-app (0 packages loaded, 0 targets configured). note: Found 1 target... [0 / 2] [Prepa] BazelWorkspaceStatusAction stable-status.txt [1 / 8] Compiling ios-app/UrlGet/UrlGetViewController.mm; 1s darwin-sandbox /Volumes/0906411561/My_project/bazel_iOS_sample/examples/tutorial/ios-app/BUILD:3:13: error: Compiling ios-app/UrlGet/UrlGetViewController.mm failed: (Aborted): wrapped_clang failed: error executing command (cd /private/var/tmp/_bazel_Thien/3da10a9d15657df4f41295e58702c8a7/sandbox/darwin-sandbox/261/execroot/__main__ && \ exec env - \ APPLE_SDK_PLATFORM=iPhoneSimulator \ APPLE_SDK_VERSION_OVERRIDE=14.4 \ PATH=/Users/Thien/Library/Caches/bazelisk/downloads/bazelbuild/bazel-4.1.0-darwin-x86_64/bin:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/local/bin:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/libexec:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/local/bin:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/usr/bin:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/usr/local/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/local/bin:/Applications/Xcode.app/Contents/Developer/Tools:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin \ XCODE_VERSION_OVERRIDE=12.4.0.12D4e \ external/local_config_cc/wrapped_clang -arch i386 '-stdlib=libc++' '-std=gnu++11' '-D_FORTIFY_SOURCE=1' -fstack-protector -fcolor-diagnostics -Wall -Wthread-safety -Wself-assign -fno-omit-frame-pointer -g 'DEBUG_PREFIX_MAP_PWD=.' -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 . -iquote bazel-out/ios-i386-min10.0-applebin_ios-ios_i386-dbg-ST-50603ff4af65/bin -iquote external/ios_tesseract -iquote bazel-out/ios-i386-min10.0-applebin_ios-ios_i386-dbg-ST-50603ff4af65/bin/external/ios_tesseract -iquote external/ios_opencv -iquote bazel-out/ios-i386-min10.0-applebin_ios-ios_i386-dbg-ST-50603ff4af65/bin/external/ios_opencv -Ibazel-out/ios-i386-min10.0-applebin_ios-ios_i386-dbg-ST-50603ff4af65/bin/external/ios_tesseract/_virtual_includes/tesseract -Ibazel-out/ios-i386-min10.0-applebin_ios-ios_i386-dbg-ST-50603ff4af65/bin/external/ios_opencv/_virtual_includes/opencv -MD -MF bazel-out/ios-i386-min10.0-applebin_ios-ios_i386-dbg-ST-50603ff4af65/bin/ios-app/_objs/UrlGetClasses/arc/UrlGetViewController.d -Fexternal/ios_opencv -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=10.0' -fexceptions -fasm-blocks '-fobjc-abi-version=2' -fobjc-legacy-dispatch '-std=c++17' -O0 '-DDEBUG=1' -fstack-protector -fstack-protector-all -g -c ios-app/UrlGet/UrlGetViewController.mm -o bazel-out/ios-i386-min10.0-applebin_ios-ios_i386-dbg-ST-50603ff4af65/bin/ios-app/_objs/UrlGetClasses/arc/UrlGetViewController.o) Execution platform: @local_config_platform//:host Use --sandbox_debug to see verbose messages from the sandbox /Volumes/0906411561/My_project/bazel_iOS_sample/examples/tutorial/In file included from ios-app/UrlGet/UrlGetViewController.mm:17: /Volumes/0906411561/My_project/bazel_iOS_sample/examples/tutorial/In file included from bazel-out/ios-i386-min10.0-applebin_ios-ios_i386-dbg-ST-50603ff4af65/bin/external/ios_opencv/_virtual_includes/opencv/opencv2/opencv.hpp:86: /Volumes/0906411561/My_project/bazel_iOS_sample/examples/tutorial/In file included from bazel-out/ios-i386-min10.0-applebin_ios-ios_i386-dbg-ST-50603ff4af65/bin/external/ios_opencv/_virtual_includes/opencv/opencv2/stitching.hpp:51: /Volumes/0906411561/My_project/bazel_iOS_sample/examples/tutorial/bazel-out/ios-i386-min10.0-applebin_ios-ios_i386-dbg-ST-50603ff4af65/bin/external/ios_opencv/_virtual_includes/opencv/opencv2/stitching/detail/exposure_compensate.hpp:47:4: warning: Detected Apple 'NO' macro definition, it can cause build conflicts. Please, include this header before any Apple headers. [-W#warnings] # warning Detected Apple 'NO' macro definition, it can cause build conflicts. Please, include this header before any Apple headers. ^ /Volumes/0906411561/My_project/bazel_iOS_sample/examples/tutorial/bazel-out/ios-i386-min10.0-applebin_ios-ios_i386-dbg-ST-50603ff4af65/bin/external/ios_opencv/_virtual_includes/opencv/opencv2/stitching/detail/exposure_compensate.hpp:66:12: error: expected identifier enum { NO, GAIN, GAIN_BLOCKS, CHANNELS, CHANNELS_BLOCKS }; ^ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/usr/include/objc/objc.h:90:13: note: expanded from macro 'NO' #define NO __objc_no ^ /Volumes/0906411561/My_project/bazel_iOS_sample/examples/tutorial/In file included from ios-app/UrlGet/UrlGetViewController.mm:17: /Volumes/0906411561/My_project/bazel_iOS_sample/examples/tutorial/In file included from bazel-out/ios-i386-min10.0-applebin_ios-ios_i386-dbg-ST-50603ff4af65/bin/external/ios_opencv/_virtual_includes/opencv/opencv2/opencv.hpp:86: /Volumes/0906411561/My_project/bazel_iOS_sample/examples/tutorial/In file included from bazel-out/ios-i386-min10.0-applebin_ios-ios_i386-dbg-ST-50603ff4af65/bin/external/ios_opencv/_virtual_includes/opencv/opencv2/stitching.hpp:52: /Volumes/0906411561/My_project/bazel_iOS_sample/examples/tutorial/bazel-out/ios-i386-min10.0-applebin_ios-ios_i386-dbg-ST-50603ff4af65/bin/external/ios_opencv/_virtual_includes/opencv/opencv2/stitching/detail/seam_finders.hpp:62:12: error: expected identifier enum { NO, VORONOI_SEAM, DP_SEAM }; ^ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/usr/include/objc/objc.h:90:13: note: expanded from macro 'NO' #define NO __objc_no ^ /Volumes/0906411561/My_project/bazel_iOS_sample/examples/tutorial/In file included from ios-app/UrlGet/UrlGetViewController.mm:17: /Volumes/0906411561/My_project/bazel_iOS_sample/examples/tutorial/In file included from bazel-out/ios-i386-min10.0-applebin_ios-ios_i386-dbg-ST-50603ff4af65/bin/external/ios_opencv/_virtual_includes/opencv/opencv2/opencv.hpp:86: /Volumes/0906411561/My_project/bazel_iOS_sample/examples/tutorial/In file included from bazel-out/ios-i386-min10.0-applebin_ios-ios_i386-dbg-ST-50603ff4af65/bin/external/ios_opencv/_virtual_includes/opencv/opencv2/stitching.hpp:53: /Volumes/0906411561/My_project/bazel_iOS_sample/examples/tutorial/bazel-out/ios-i386-min10.0-applebin_ios-ios_i386-dbg-ST-50603ff4af65/bin/external/ios_opencv/_virtual_includes/opencv/opencv2/stitching/detail/blenders.hpp:47:4: warning: Detected Apple 'NO' macro definition, it can cause build conflicts. Please, include this header before any Apple headers. [-W#warnings] # warning Detected Apple 'NO' macro definition, it can cause build conflicts. Please, include this header before any Apple headers. ^ /Volumes/0906411561/My_project/bazel_iOS_sample/examples/tutorial/bazel-out/ios-i386-min10.0-applebin_ios-ios_i386-dbg-ST-50603ff4af65/bin/external/ios_opencv/_virtual_includes/opencv/opencv2/stitching/detail/blenders.hpp:68:12: error: expected identifier enum { NO, FEATHER, MULTI_BAND }; ^ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/usr/include/objc/objc.h:90:13: note: expanded from macro 'NO' #define NO __objc_no ^ /Volumes/0906411561/My_project/bazel_iOS_sample/examples/tutorial/ios-app/UrlGet/UrlGetViewController.mm:32:11: warning: unused variable 'data_path' [-Wunused-variable] char* data_path = strdup([@"" UTF8String]); ^ /Volumes/0906411561/My_project/bazel_iOS_sample/examples/tutorial/ios-app/UrlGet/UrlGetViewController.mm:33:11: warning: unused variable 'language' [-Wunused-variable] char* language = strdup([@"" UTF8String]); ^ /Volumes/0906411561/My_project/bazel_iOS_sample/examples/tutorial/ios-app/UrlGet/UrlGetViewController.mm:31:11: warning: unused variable 'image_path' [-Wunused-variable] char* image_path = strdup([@"" UTF8String]); ^ 5 warnings and 3 errors generated. Error in child process '/usr/bin/xcrun'. 1 Aspect @tulsi//:tulsi/tulsi_aspects.bzl%tulsi_outputs_aspect of //ios-app:ios-app up-to-date: bazel-out/applebin_ios-ios_i386-dbg-ST-50603ff4af65/bin/ios-app/ios-app.tulsiouts note: Elapsed time: 4.822s, Critical Path: 4.37s note: 2 processes: 2 internal. error: Build did NOT complete successfully <*> Running Bazel completed in 6795.546 ms /Volumes/0906411561/My_project/bazel_iOS_sample/bazelSample_iOS/sampleBazel_iOS.xcodeproj/.tulsi/Scripts/bazel_build.py:581: error: Bazel build failed with exit code 1. Please check the build log in Report Navigator (⌘9) for more information. <*> Everything completed in 6814.513 ms
Please help me to solve this issue.
Sorry, this issue tracker is not intended to provide user support, please try slack.bazel.build
I 've added opencv in WORKSPACE file like this:
in third_party I have a file opencv_ios.BUILD:
I want to include #include "opencv2/opencv.hpp" in file UrlGetViewController.mm , but I got error:
Please help me to solve this issue.