Closed Jacky-LinPeng closed 2 years ago
Build Error Log:
/Users/mac/Documents/bazel/examples/PodToBUILD-master/aa/BUILD:22:16: error: Linking ddx_bin failed: (Aborted): wrapped_clang failed: error executing command
(cd /private/var/tmp/_bazel_mac/65baa7e1beeb8bf9ba32b64053619473/sandbox/darwin-sandbox/7/execroot/__main__ && \
exec env - \
APPLE_SDK_PLATFORM=iPhoneSimulator \
APPLE_SDK_VERSION_OVERRIDE=15.0 \
LD_LIBRARY_PATH=/Applications/Xcode.app/Contents/Developer/../SharedFrameworks/ \
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 \
XCODE_VERSION_OVERRIDE=13.1.0.13A1030d \
ZERO_AR_DATE=1 \
external/local_config_cc/wrapped_clang @bazel-out/ios-x86_64-min11.0-applebin_ios-ios_x86_64-dbg-ST-2967bd56a867/bin/ddx_bin-2.params)
# Configuration: a756c3dd00d2dc14ceb2727d9e6000a44e58a92218797903d85f24a536184d65
# Execution platform: @local_config_platform//:host
Use --sandbox_debug to see verbose messages from the sandbox
Undefined symbols for architecture x86_64:
"_CACurrentMediaTime", referenced from:
-[SDDisplayLink duration] in libCore.a(SDDisplayLink.o)
"_CGAffineTransformConcat", referenced from:
-[UIImage(Transform) sd_flippedImageWithHorizontal:vertical:] in libCore.a(UIImage+Transform.o)
"_CGAffineTransformIdentity", referenced from:
_SDCGContextTransformFromOrientation in libCore.a(SDImageCoderHelper.o)
-[UIImage(Transform) sd_rotatedImageWithAngle:fitSize:] in libCore.a(UIImage+Transform.o)
-[UIImage(Transform) sd_flippedImageWithHorizontal:vertical:] in libCore.a(UIImage+Transform.o)
"_CGAffineTransformMakeRotation", referenced from:
-[UIImage(Transform) sd_rotatedImageWithAngle:fitSize:] in libCore.a(UIImage+Transform.o)
"_CGAffineTransformRotate", referenced from:
_SDCGContextTransformFromOrientation in libCore.a(SDImageCoderHelper.o)
"_CGAffineTransformScale", referenced from:
_SDCGContextTransformFromOrientation in libCore.a(SDImageCoderHelper.o)
"_CGAffineTransformTranslate", referenced from:
_SDCGContextTransformFromOrientation in libCore.a(SDImageCoderHelper.o)
"_CGBitmapContextCreate", referenced from:
+[SDImageCoderHelper CGImageCreateDecoded:orientation:] in libCore.a(SDImageCoderHelper.o)
+[SDImageCoderHelper decodedAndScaledDownImageWithImage:limitBytes:] in libCore.a(SDImageCoderHelper.o)
"_CGBitmapContextCreateImage", referenced from:
+[SDImageCoderHelper CGImageCreateDecoded:orientation:] in libCore.a(SDImageCoderHelper.o)
+[SDImageCoderHelper decodedAndScaledDownImageWithImage:limitBytes:] in libCore.a(SDImageCoderHelper.o)
"_CGColorGetAlpha", referenced from:
-[UIImage(Transform) sd_tintedImageWithColor:] in libCore.a(UIImage+Transform.o)
"_CGColorSpaceCreateWithName", referenced from:
___44+[SDImageCoderHelper colorSpaceGetDeviceRGB]_block_invoke in libCore.a(SDImageCoderHelper.o)
"_CGContextAddRect", referenced from:
-[UIImage(Transform) sd_drawInRect:context:scaleMode:clipsToBounds:] in libCore.a(UIImage+Transform.o)
"_CGContextClip", referenced from:
-[UIImage(Transform) sd_drawInRect:context:scaleMode:clipsToBounds:] in libCore.a(UIImage+Transform.o)
"_CGContextConcatCTM", referenced from:
+[SDImageCoderHelper CGImageCreateDecoded:orientation:] in libCore.a(SDImageCoderHelper.o)
___61-[UIImage(Transform) sd_flippedImageWithHorizontal:vertical:]_block_invoke in libCore.a(UIImage+Transform.o)
"_CGContextDrawImage", referenced from:
+[SDImageCoderHelper CGImageCreateDecoded:orientation:] in libCore.a(SDImageCoderHelper.o)
+[SDImageCoderHelper decodedAndScaledDownImageWithImage:limitBytes:] in libCore.a(SDImageCoderHelper.o)
"_CGContextFillRect", referenced from:
___46-[UIImage(Transform) sd_tintedImageWithColor:]_block_invoke in libCore.a(UIImage+Transform.o)
"_CGContextRelease", referenced from:
+[SDImageCoderHelper CGImageCreateDecoded:orientation:] in libCore.a(SDImageCoderHelper.o)
+[SDImageCoderHelper decodedAndScaledDownImageWithImage:limitBytes:] in libCore.a(SDImageCoderHelper.o)
"_CGContextRestoreGState", referenced from:
-[UIImage(Transform) sd_drawInRect:context:scaleMode:clipsToBounds:] in libCore.a(UIImage+Transform.o)
___86-[UIImage(Transform) sd_roundedCornerImageWithRadius:corners:borderWidth:borderColor:]_block_invoke in libCore.a(UIImage+Transform.o)
"_CGContextRotateCTM", referenced from:
___55-[UIImage(Transform) sd_rotatedImageWithAngle:fitSize:]_block_invoke in libCore.a(UIImage+Transform.o)
"_CGContextSaveGState", referenced from:
-[UIImage(Transform) sd_drawInRect:context:scaleMode:clipsToBounds:] in libCore.a(UIImage+Transform.o)
___86-[UIImage(Transform) sd_roundedCornerImageWithRadius:corners:borderWidth:borderColor:]_block_invoke in libCore.a(UIImage+Transform.o)
"_CGContextSetAllowsAntialiasing", referenced from:
___55-[UIImage(Transform) sd_rotatedImageWithAngle:fitSize:]_block_invoke in libCore.a(UIImage+Transform.o)
"_CGContextSetBlendMode", referenced from:
___46-[UIImage(Transform) sd_tintedImageWithColor:]_block_invoke in libCore.a(UIImage+Transform.o)
"_CGContextSetFillColorWithColor", referenced from:
___46-[UIImage(Transform) sd_tintedImageWithColor:]_block_invoke in libCore.a(UIImage+Transform.o)
"_CGContextSetInterpolationQuality", referenced from:
+[SDImageCoderHelper decodedAndScaledDownImageWithImage:limitBytes:] in libCore.a(SDImageCoderHelper.o)
___55-[UIImage(Transform) sd_rotatedImageWithAngle:fitSize:]_block_invoke in libCore.a(UIImage+Transform.o)
"_CGContextSetShouldAntialias", referenced from:
___55-[UIImage(Transform) sd_rotatedImageWithAngle:fitSize:]_block_invoke in libCore.a(UIImage+Transform.o)
"_CGContextTranslateCTM", referenced from:
___55-[UIImage(Transform) sd_rotatedImageWithAngle:fitSize:]_block_invoke in libCore.a(UIImage+Transform.o)
"_CGDataProviderCopyData", referenced from:
-[UIImage(Transform) sd_colorAtPoint:] in libCore.a(UIImage+Transform.o)
-[UIImage(Transform) sd_colorsWithRect:] in libCore.a(UIImage+Transform.o)
"_CGImageCreateWithImageInRect", referenced from:
+[SDImageCoderHelper decodedAndScaledDownImageWithImage:limitBytes:] in libCore.a(SDImageCoderHelper.o)
-[UIImage(Transform) sd_croppedImageWithRect:] in libCore.a(UIImage+Transform.o)
"_CGImageGetAlphaInfo", referenced from:
+[SDImageCoderHelper CGImageContainsAlpha:] in libCore.a(SDImageCoderHelper.o)
"_CGImageGetBitmapInfo", referenced from:
-[UIImage(Transform) sd_colorAtPoint:] in libCore.a(UIImage+Transform.o)
-[UIImage(Transform) sd_colorsWithRect:] in libCore.a(UIImage+Transform.o)
-[UIImage(Transform) sd_blurredImageWithRadius:] in libCore.a(UIImage+Transform.o)
"_CGImageGetBitsPerComponent", referenced from:
-[UIImage(Transform) sd_colorAtPoint:] in libCore.a(UIImage+Transform.o)
-[UIImage(Transform) sd_colorsWithRect:] in libCore.a(UIImage+Transform.o)
-[UIImage(Transform) sd_blurredImageWithRadius:] in libCore.a(UIImage+Transform.o)
"_CGImageGetBitsPerPixel", referenced from:
-[UIImage(Transform) sd_colorAtPoint:] in libCore.a(UIImage+Transform.o)
-[UIImage(Transform) sd_colorsWithRect:] in libCore.a(UIImage+Transform.o)
-[UIImage(Transform) sd_blurredImageWithRadius:] in libCore.a(UIImage+Transform.o)
"_CGImageGetBytesPerRow", referenced from:
-[SDAnimatedImage(MemoryCacheCost) sd_memoryCost] in libCore.a(SDAnimatedImage.o)
-[SDAnimatedImagePlayer calculateMaxBufferCount] in libCore.a(SDAnimatedImagePlayer.o)
_SDMemoryCacheCostForImage in libCore.a(UIImage+MemoryCacheCost.o)
-[UIImage(Transform) sd_colorAtPoint:] in libCore.a(UIImage+Transform.o)
-[UIImage(Transform) sd_colorsWithRect:] in libCore.a(UIImage+Transform.o)
"_CGImageGetDataProvider", referenced from:
-[UIImage(Transform) sd_colorAtPoint:] in libCore.a(UIImage+Transform.o)
-[UIImage(Transform) sd_colorsWithRect:] in libCore.a(UIImage+Transform.o)
"_CGImageGetHeight", referenced from:
-[SDAnimatedImage(MemoryCacheCost) sd_memoryCost] in libCore.a(SDAnimatedImage.o)
-[SDAnimatedImagePlayer calculateMaxBufferCount] in libCore.a(SDAnimatedImagePlayer.o)
-[SDImageIOAnimatedCoder encodedDataWithImage:format:options:] in libCore.a(SDImageIOAnimatedCoder.o)
-[SDImageIOCoder encodedDataWithImage:format:options:] in libCore.a(SDImageIOCoder.o)
+[SDImageCoderHelper CGImageCreateDecoded:orientation:] in libCore.a(SDImageCoderHelper.o)
+[SDImageCoderHelper CGImageCreateScaled:size:] in libCore.a(SDImageCoderHelper.o)
+[SDImageCoderHelper decodedAndScaledDownImageWithImage:limitBytes:] in libCore.a(SDImageCoderHelper.o)
...
"_CGImageGetRenderingIntent", referenced from:
+[SDImageCoderHelper CGImageCreateScaled:size:] in libCore.a(SDImageCoderHelper.o)
-[UIImage(Transform) sd_blurredImageWithRadius:] in libCore.a(UIImage+Transform.o)
"_CGImageGetUTType", referenced from:
-[UIImage(Metadata) sd_imageFormat] in libCore.a(UIImage+Metadata.o)
"_CGImageGetWidth", referenced from:
-[SDImageIOAnimatedCoder encodedDataWithImage:format:options:] in libCore.a(SDImageIOAnimatedCoder.o)
-[SDImageIOCoder encodedDataWithImage:format:options:] in libCore.a(SDImageIOCoder.o)
+[SDImageCoderHelper CGImageCreateDecoded:orientation:] in libCore.a(SDImageCoderHelper.o)
+[SDImageCoderHelper CGImageCreateScaled:size:] in libCore.a(SDImageCoderHelper.o)
+[SDImageCoderHelper decodedAndScaledDownImageWithImage:limitBytes:] in libCore.a(SDImageCoderHelper.o)
-[UIImage(Transform) sd_colorAtPoint:] in libCore.a(UIImage+Transform.o)
-[UIImage(Transform) sd_colorsWithRect:] in libCore.a(UIImage+Transform.o)
...
"_CGImageRelease", referenced from:
+[SDImageIOAnimatedCoder createFrameAtIndex:source:scale:preserveAspectRatio:thumbnailSize:options:] in libCore.a(SDImageIOAnimatedCoder.o)
+[SDImageCoderHelper CGImageCreateScaled:size:] in libCore.a(SDImageCoderHelper.o)
+[SDImageCoderHelper decodedAndScaledDownImageWithImage:limitBytes:] in libCore.a(SDImageCoderHelper.o)
-[UIImage(Transform) sd_croppedImageWithRect:] in libCore.a(UIImage+Transform.o)
-[UIImage(Transform) sd_colorAtPoint:] in libCore.a(UIImage+Transform.o)
-[UIImage(Transform) sd_colorsWithRect:] in libCore.a(UIImage+Transform.o)
-[UIImage(Transform) sd_blurredImageWithRadius:] in libCore.a(UIImage+Transform.o)
...
"_CGImageRetain", referenced from:
+[SDImageCoderHelper CGImageCreateScaled:size:] in libCore.a(SDImageCoderHelper.o)
-[UIImage(Transform) sd_colorAtPoint:] in libCore.a(UIImage+Transform.o)
_SDCreateCGImageFromCIImage in libCore.a(UIImage+Transform.o)
-[UIImage(Transform) sd_colorsWithRect:] in libCore.a(UIImage+Transform.o)
"_CGPointZero", referenced from:
-[UIImage(Transform) sd_tintedImageWithColor:] in libCore.a(UIImage+Transform.o)
"_CGRectApplyAffineTransform", referenced from:
-[UIImage(Transform) sd_rotatedImageWithAngle:fitSize:] in libCore.a(UIImage+Transform.o)
"_CGRectEqualToRect", referenced from:
-[UIView(WebCache) setSd_imageIndicator:] in libCore.a(UIView+WebCache.o)
"_CGRectGetHeight", referenced from:
-[UIImage(Transform) sd_colorsWithRect:] in libCore.a(UIImage+Transform.o)
"_CGRectGetMaxX", referenced from:
-[UIImage(Transform) sd_colorsWithRect:] in libCore.a(UIImage+Transform.o)
"_CGRectGetMaxY", referenced from:
-[UIImage(Transform) sd_croppedImageWithRect:] in libCore.a(UIImage+Transform.o)
-[UIImage(Transform) sd_colorsWithRect:] in libCore.a(UIImage+Transform.o)
"_CGRectGetMidX", referenced from:
_SDCGRectFitWithScaleMode in libCore.a(UIImage+Transform.o)
-[UIView(WebCache) setSd_imageIndicator:] in libCore.a(UIView+WebCache.o)
"_CGRectGetMidY", referenced from:
_SDCGRectFitWithScaleMode in libCore.a(UIImage+Transform.o)
-[UIView(WebCache) setSd_imageIndicator:] in libCore.a(UIView+WebCache.o)
"_CGRectGetMinX", referenced from:
-[UIImage(Transform) sd_colorsWithRect:] in libCore.a(UIImage+Transform.o)
"_CGRectGetMinY", referenced from:
-[UIImage(Transform) sd_colorsWithRect:] in libCore.a(UIImage+Transform.o)
"_CGRectGetWidth", referenced from:
-[UIImage(Transform) sd_colorsWithRect:] in libCore.a(UIImage+Transform.o)
"_CGRectInset", referenced from:
___86-[UIImage(Transform) sd_roundedCornerImageWithRadius:corners:borderWidth:borderColor:]_block_invoke in libCore.a(UIImage+Transform.o)
"_CGRectStandardize", referenced from:
_SDCGRectFitWithScaleMode in libCore.a(UIImage+Transform.o)
"_CGRectZero", referenced from:
+[SDImageCoderHelper decodedAndScaledDownImageWithImage:limitBytes:] in libCore.a(SDImageCoderHelper.o)
-[UIView(WebCache) setSd_imageIndicator:] in libCore.a(UIView+WebCache.o)
"_CGSizeZero", referenced from:
-[SDImageIOAnimatedCoder decodedImageWithData:options:] in libCore.a(SDImageIOAnimatedCoder.o)
-[SDImageIOAnimatedCoder initIncrementalWithOptions:] in libCore.a(SDImageIOAnimatedCoder.o)
-[SDImageIOAnimatedCoder encodedDataWithImage:format:options:] in libCore.a(SDImageIOAnimatedCoder.o)
-[SDImageIOAnimatedCoder initWithAnimatedImageData:options:] in libCore.a(SDImageIOAnimatedCoder.o)
-[SDImageIOCoder decodedImageWithData:options:] in libCore.a(SDImageIOCoder.o)
-[SDImageIOCoder initIncrementalWithOptions:] in libCore.a(SDImageIOCoder.o)
-[SDImageIOCoder encodedDataWithImage:format:options:] in libCore.a(SDImageIOCoder.o)
...
"_OBJC_CLASS_$_CADisplayLink", referenced from:
objc-class-ref in libCore.a(SDDisplayLink.o)
"_OBJC_CLASS_$_CIColor", referenced from:
objc-class-ref in libCore.a(UIImage+Transform.o)
"_OBJC_CLASS_$_CIContext", referenced from:
objc-class-ref in libCore.a(UIImage+Transform.o)
"_OBJC_CLASS_$_CIFilter", referenced from:
objc-class-ref in libCore.a(UIImage+Transform.o)
"_OBJC_CLASS_$_CIImage", referenced from:
objc-class-ref in libCore.a(UIImage+Transform.o)
"_kCGColorSpaceSRGB", referenced from:
___44+[SDImageCoderHelper colorSpaceGetDeviceRGB]_block_invoke in libCore.a(SDImageCoderHelper.o)
"_kCIInputAngleKey", referenced from:
-[UIImage(Transform) sd_rotatedImageWithAngle:fitSize:] in libCore.a(UIImage+Transform.o)
"_kCIInputBackgroundImageKey", referenced from:
-[UIImage(Transform) sd_tintedImageWithColor:] in libCore.a(UIImage+Transform.o)
"_kCIInputImageKey", referenced from:
-[UIImage(Transform) sd_rotatedImageWithAngle:fitSize:] in libCore.a(UIImage+Transform.o)
-[UIImage(Transform) sd_tintedImageWithColor:] in libCore.a(UIImage+Transform.o)
-[UIImage(Transform) sd_blurredImageWithRadius:] in libCore.a(UIImage+Transform.o)
-[UIImage(Transform) sd_filteredImageWithFilter:] in libCore.a(UIImage+Transform.o)
"_kCIInputRadiusKey", referenced from:
-[UIImage(Transform) sd_blurredImageWithRadius:] in libCore.a(UIImage+Transform.o)
"_vImageBoxConvolve_ARGB8888", referenced from:
-[UIImage(Transform) sd_blurredImageWithRadius:] in libCore.a(UIImage+Transform.o)
"_vImageBuffer_Init", referenced from:
-[UIImage(Transform) sd_blurredImageWithRadius:] in libCore.a(UIImage+Transform.o)
"_vImageBuffer_InitWithCGImage", referenced from:
+[SDImageCoderHelper CGImageCreateScaled:size:] in libCore.a(SDImageCoderHelper.o)
-[UIImage(Transform) sd_blurredImageWithRadius:] in libCore.a(UIImage+Transform.o)
"_vImageCreateCGImageFromBuffer", referenced from:
+[SDImageCoderHelper CGImageCreateScaled:size:] in libCore.a(SDImageCoderHelper.o)
-[UIImage(Transform) sd_blurredImageWithRadius:] in libCore.a(UIImage+Transform.o)
"_vImageScale_ARGB8888", referenced from:
+[SDImageCoderHelper CGImageCreateScaled:size:] in libCore.a(SDImageCoderHelper.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Error in child process '/usr/bin/xcrun'. 1
Aspect @tulsi//:tulsi/tulsi_aspects.bzl%tulsi_outputs_aspect of //:ddx up-to-date:
bazel-out/applebin_ios-ios_x86_64-dbg-ST-2967bd56a867/bin/ddx.tulsiouts
note: Elapsed time: 0.286s, Critical Path: 0.10s
note: 2 processes: 2 internal.
error: Build did NOT complete successfully
<*> Running Bazel completed in 427.081 ms
/Users/mac/Documents/bazel/examples/PodToBUILD-master/aa/aa.xcodeproj/.tulsi/Scripts/bazel_build.py:590: error: Bazel build failed with exit code 1. Please check the build log in Report Navigator (⌘9) for more information.
<*> Everything completed in 446.786 ms
sdk_frameworks = [ "ImageIO", "Accelerate", .... ],
The project relies on Cocoapods to integrate SDWebImage, but always gets an error: 'sdwebimage.h' file not found
my sample demo
When I edit BUILD like this, I get error :Linking ddx_bin failed: (Aborted): wrapped_clang failed: error executing command
Is there something I'm using wrong? Hope to get your help