React-native-svg: Fatal error on Archive iOS - fatal error: 'RNSVGLength.h' file not found

Created on 20 Oct 2018  路  32Comments  路  Source: react-native-svg/react-native-svg

React Native: 0.52
Build System: (MS app center)
react-native-svg: 7.1.2

fatal error: 'RNSVGLength.h' file not found

CompileC /Users/vsts/Library/Developer/Xcode/DerivedData/eipets-ewfwjxupeyiluebbmjxcjcfqdzkb/Build/Intermediates.noindex/ArchiveIntermediates/eipets/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/RNSVG.build/Objects-normal/armv7/RNSVGBezierElement.o /Users/vsts/agent/2.140.2/work/1/s/node_modules/react-native-svg/ios/Utils/RNSVGBezierElement.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
    cd /Users/vsts/agent/2.140.2/work/1/s/ios/Pods
    export LANG=en_US.US-ASCII
    export PATH="/Applications/Xcode_9.2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode_9.2.app/Contents/Developer/usr/bin:/Library/Frameworks/Mono.framework/Versions/4/bin:/usr/local/bin:/usr/local/sbin:/Users/vsts/bin:/Users/vsts/.yarn/bin:/usr/local/go/bin:/Users/vsts/Library/Android/sdk/tools:/Users/vsts/Library/Android/sdk/platform-tools:/Users/vsts/Library/Android/sdk/ndk-bundle:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/usr/bin:/bin:/usr/sbin:/sbin:/Users/vsts/.azcopy"
    /Applications/Xcode_9.2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch armv7 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu11 -fobjc-arc -fobjc-weak -fmodules -fmodules-cache-path=/Users/vsts/Library/Developer/Xcode/DerivedData/ModuleCache -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/Users/vsts/Library/Developer/Xcode/DerivedData/ModuleCache/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -Wno-trigraphs -fpascal-strings -Os -fno-common -Wno-missing-field-initializers -Wno-missing-prototypes -Werror=return-type -Wdocumentation -Wunreachable-code -Wno-implicit-atomic-properties -Werror=deprecated-objc-isa-usage -Werror=objc-root-class -Wno-arc-repeated-use-of-weak -Wimplicit-retain-self -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wno-float-conversion -Wnon-literal-null-conversion -Wobjc-literal-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wdeprecated-implementations -DPOD_CONFIGURATION_RELEASE=1 -DCOCOAPODS=1 -DNS_BLOCK_ASSERTIONS=1 -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -isysroot /Applications/Xcode_9.2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.2.sdk -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -miphoneos-version-min=8.0 -g -Wno-sign-conversion -Winfinite-recursion -Wcomma -Wblock-capture-autoreleasing -Wstrict-prototypes -Wunguarded-availability -fembed-bitcode -iquote /Users/vsts/Library/Developer/Xcode/DerivedData/eipets-ewfwjxupeyiluebbmjxcjcfqdzkb/Build/Intermediates.noindex/ArchiveIntermediates/eipets/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/RNSVG.build/RNSVG-generated-files.hmap -I/Users/vsts/Library/Developer/Xcode/DerivedData/eipets-ewfwjxupeyiluebbmjxcjcfqdzkb/Build/Intermediates.noindex/ArchiveIntermediates/eipets/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/RNSVG.build/RNSVG-own-target-headers.hmap -I/Users/vsts/Library/Developer/Xcode/DerivedData/eipets-ewfwjxupeyiluebbmjxcjcfqdzkb/Build/Intermediates.noindex/ArchiveIntermediates/eipets/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/RNSVG.build/RNSVG-all-target-headers.hmap -iquote /Users/vsts/Library/Developer/Xcode/DerivedData/eipets-ewfwjxupeyiluebbmjxcjcfqdzkb/Build/Intermediates.noindex/ArchiveIntermediates/eipets/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/RNSVG.build/RNSVG-project-headers.hmap -I/Users/vsts/Library/Developer/Xcode/DerivedData/eipets-ewfwjxupeyiluebbmjxcjcfqdzkb/Build/Intermediates.noindex/ArchiveIntermediates/eipets/BuildProductsPath/Release-iphoneos/RNSVG/include -I/Users/vsts/agent/2.140.2/work/1/s/ios/Pods/Headers/Private -I/Users/vsts/agent/2.140.2/work/1/s/ios/Pods/Headers/Private/RNSVG -I/Users/vsts/agent/2.140.2/work/1/s/ios/Pods/Headers/Public -I/Users/vsts/agent/2.140.2/work/1/s/ios/Pods/Headers/Public/DoubleConversion -I/Users/vsts/agent/2.140.2/work/1/s/ios/Pods/Headers/Public/GLog -I/Users/vsts/agent/2.140.2/work/1/s/ios/Pods/Headers/Public/RNSVG -I/Users/vsts/agent/2.140.2/work/1/s/ios/Pods/Headers/Public/React -I/Users/vsts/agent/2.140.2/work/1/s/ios/Pods/Headers/Public/yoga -I/Users/vsts/Library/Developer/Xcode/DerivedData/eipets-ewfwjxupeyiluebbmjxcjcfqdzkb/Build/Intermediates.noindex/ArchiveIntermediates/eipets/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/RNSVG.build/DerivedSources/armv7 -I/Users/vsts/Library/Developer/Xcode/DerivedData/eipets-ewfwjxupeyiluebbmjxcjcfqdzkb/Build/Intermediates.noindex/ArchiveIntermediates/eipets/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/RNSVG.build/DerivedSources -F/Users/vsts/Library/Developer/Xcode/DerivedData/eipets-ewfwjxupeyiluebbmjxcjcfqdzkb/Build/Intermediates.noindex/ArchiveIntermediates/eipets/BuildProductsPath/Release-iphoneos/RNSVG -include /Users/vsts/agent/2.140.2/work/1/s/ios/Pods/Target\ Support\ Files/RNSVG/RNSVG-prefix.pch -MMD -MT dependencies -MF /Users/vsts/Library/Developer/Xcode/DerivedData/eipets-ewfwjxupeyiluebbmjxcjcfqdzkb/Build/Intermediates.noindex/ArchiveIntermediates/eipets/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/RNSVG.build/Objects-normal/armv7/RNSVGBezierElement.d --serialize-diagnostics /Users/vsts/Library/Developer/Xcode/DerivedData/eipets-ewfwjxupeyiluebbmjxcjcfqdzkb/Build/Intermediates.noindex/ArchiveIntermediates/eipets/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/RNSVG.build/Objects-normal/armv7/RNSVGBezierElement.dia -c /Users/vsts/agent/2.140.2/work/1/s/node_modules/react-native-svg/ios/Utils/RNSVGBezierElement.m -o /Users/vsts/Library/Developer/Xcode/DerivedData/eipets-ewfwjxupeyiluebbmjxcjcfqdzkb/Build/Intermediates.noindex/ArchiveIntermediates/eipets/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/RNSVG.build/Objects-normal/armv7/RNSVGBezierElement.o

CompileC /Users/vsts/Library/Developer/Xcode/DerivedData/eipets-ewfwjxupeyiluebbmjxcjcfqdzkb/Build/Intermediates.noindex/ArchiveIntermediates/eipets/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/RNSVG.build/Objects-normal/armv7/RNSVGBrush.o /Users/vsts/agent/2.140.2/work/1/s/node_modules/react-native-svg/ios/Brushes/RNSVGBrush.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
    cd /Users/vsts/agent/2.140.2/work/1/s/ios/Pods
    export LANG=en_US.US-ASCII
    export PATH="/Applications/Xcode_9.2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode_9.2.app/Contents/Developer/usr/bin:/Library/Frameworks/Mono.framework/Versions/4/bin:/usr/local/bin:/usr/local/sbin:/Users/vsts/bin:/Users/vsts/.yarn/bin:/usr/local/go/bin:/Users/vsts/Library/Android/sdk/tools:/Users/vsts/Library/Android/sdk/platform-tools:/Users/vsts/Library/Android/sdk/ndk-bundle:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/usr/bin:/bin:/usr/sbin:/sbin:/Users/vsts/.azcopy"
    /Applications/Xcode_9.2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch armv7 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu11 -fobjc-arc -fobjc-weak -fmodules -fmodules-cache-path=/Users/vsts/Library/Developer/Xcode/DerivedData/ModuleCache -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/Users/vsts/Library/Developer/Xcode/DerivedData/ModuleCache/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -Wno-trigraphs -fpascal-strings -Os -fno-common -Wno-missing-field-initializers -Wno-missing-prototypes -Werror=return-type -Wdocumentation -Wunreachable-code -Wno-implicit-atomic-properties -Werror=deprecated-objc-isa-usage -Werror=objc-root-class -Wno-arc-repeated-use-of-weak -Wimplicit-retain-self -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wno-float-conversion -Wnon-literal-null-conversion -Wobjc-literal-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wdeprecated-implementations -DPOD_CONFIGURATION_RELEASE=1 -DCOCOAPODS=1 -DNS_BLOCK_ASSERTIONS=1 -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -isysroot /Applications/Xcode_9.2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.2.sdk -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -miphoneos-version-min=8.0 -g -Wno-sign-conversion -Winfinite-recursion -Wcomma -Wblock-capture-autoreleasing -Wstrict-prototypes -Wunguarded-availability -fembed-bitcode -iquote /Users/vsts/Library/Developer/Xcode/DerivedData/eipets-ewfwjxupeyiluebbmjxcjcfqdzkb/Build/Intermediates.noindex/ArchiveIntermediates/eipets/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/RNSVG.build/RNSVG-generated-files.hmap -I/Users/vsts/Library/Developer/Xcode/DerivedData/eipets-ewfwjxupeyiluebbmjxcjcfqdzkb/Build/Intermediates.noindex/ArchiveIntermediates/eipets/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/RNSVG.build/RNSVG-own-target-headers.hmap -I/Users/vsts/Library/Developer/Xcode/DerivedData/eipets-ewfwjxupeyiluebbmjxcjcfqdzkb/Build/Intermediates.noindex/ArchiveIntermediates/eipets/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/RNSVG.build/RNSVG-all-target-headers.hmap -iquote /Users/vsts/Library/Developer/Xcode/DerivedData/eipets-ewfwjxupeyiluebbmjxcjcfqdzkb/Build/Intermediates.noindex/ArchiveIntermediates/eipets/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/RNSVG.build/RNSVG-project-headers.hmap -I/Users/vsts/Library/Developer/Xcode/DerivedData/eipets-ewfwjxupeyiluebbmjxcjcfqdzkb/Build/Intermediates.noindex/ArchiveIntermediates/eipets/BuildProductsPath/Release-iphoneos/RNSVG/include -I/Users/vsts/agent/2.140.2/work/1/s/ios/Pods/Headers/Private -I/Users/vsts/agent/2.140.2/work/1/s/ios/Pods/Headers/Private/RNSVG -I/Users/vsts/agent/2.140.2/work/1/s/ios/Pods/Headers/Public -I/Users/vsts/agent/2.140.2/work/1/s/ios/Pods/Headers/Public/DoubleConversion -I/Users/vsts/agent/2.140.2/work/1/s/ios/Pods/Headers/Public/GLog -I/Users/vsts/agent/2.140.2/work/1/s/ios/Pods/Headers/Public/RNSVG -I/Users/vsts/agent/2.140.2/work/1/s/ios/Pods/Headers/Public/React -I/Users/vsts/agent/2.140.2/work/1/s/ios/Pods/Headers/Public/yoga -I/Users/vsts/Library/Developer/Xcode/DerivedData/eipets-ewfwjxupeyiluebbmjxcjcfqdzkb/Build/Intermediates.noindex/ArchiveIntermediates/eipets/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/RNSVG.build/DerivedSources/armv7 -I/Users/vsts/Library/Developer/Xcode/DerivedData/eipets-ewfwjxupeyiluebbmjxcjcfqdzkb/Build/Intermediates.noindex/ArchiveIntermediates/eipets/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/RNSVG.build/DerivedSources -F/Users/vsts/Library/Developer/Xcode/DerivedData/eipets-ewfwjxupeyiluebbmjxcjcfqdzkb/Build/Intermediates.noindex/ArchiveIntermediates/eipets/BuildProductsPath/Release-iphoneos/RNSVG -include /Users/vsts/agent/2.140.2/work/1/s/ios/Pods/Target\ Support\ Files/RNSVG/RNSVG-prefix.pch -MMD -MT dependencies -MF /Users/vsts/Library/Developer/Xcode/DerivedData/eipets-ewfwjxupeyiluebbmjxcjcfqdzkb/Build/Intermediates.noindex/ArchiveIntermediates/eipets/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/RNSVG.build/Objects-normal/armv7/RNSVGBrush.d --serialize-diagnostics /Users/vsts/Library/Developer/Xcode/DerivedData/eipets-ewfwjxupeyiluebbmjxcjcfqdzkb/Build/Intermediates.noindex/ArchiveIntermediates/eipets/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/RNSVG.build/Objects-normal/armv7/RNSVGBrush.dia -c /Users/vsts/agent/2.140.2/work/1/s/node_modules/react-native-svg/ios/Brushes/RNSVGBrush.m -o /Users/vsts/Library/Developer/Xcode/DerivedData/eipets-ewfwjxupeyiluebbmjxcjcfqdzkb/Build/Intermediates.noindex/ArchiveIntermediates/eipets/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/RNSVG.build/Objects-normal/armv7/RNSVGBrush.o
In file included from /Users/vsts/agent/2.140.2/work/1/s/node_modules/react-native-svg/ios/Brushes/RNSVGBrush.m:9:
In file included from /Users/vsts/agent/2.140.2/work/1/s/node_modules/react-native-svg/ios/Brushes/RNSVGBrush.h:12:
/Users/vsts/agent/2.140.2/work/1/s/node_modules/react-native-svg/ios/Brushes/RNSVGPainter.h:12:9: fatal error: 'RNSVGLength.h' file not found
#import "RNSVGLength.h"
        ^~~~~~~~~~~~~~~

CompileC /Users/vsts/Library/Developer/Xcode/DerivedData/eipets-ewfwjxupeyiluebbmjxcjcfqdzkb/Build/Intermediates.noindex/ArchiveIntermediates/eipets/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/RNSVG.build/Objects-normal/armv7/RNSVGCircle.o /Users/vsts/agent/2.140.2/work/1/s/node_modules/react-native-svg/ios/Shapes/RNSVGCircle.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
    cd /Users/vsts/agent/2.140.2/work/1/s/ios/Pods
    export LANG=en_US.US-ASCII
    export PATH="/Applications/Xcode_9.2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode_9.2.app/Contents/Developer/usr/bin:/Library/Frameworks/Mono.framework/Versions/4/bin:/usr/local/bin:/usr/local/sbin:/Users/vsts/bin:/Users/vsts/.yarn/bin:/usr/local/go/bin:/Users/vsts/Library/Android/sdk/tools:/Users/vsts/Library/Android/sdk/platform-tools:/Users/vsts/Library/Android/sdk/ndk-bundle:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/usr/bin:/bin:/usr/sbin:/sbin:/Users/vsts/.azcopy"
    /Applications/Xcode_9.2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch armv7 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu11 -fobjc-arc -fobjc-weak -fmodules -fmodules-cache-path=/Users/vsts/Library/Developer/Xcode/DerivedData/ModuleCache -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/Users/vsts/Library/Developer/Xcode/DerivedData/ModuleCache/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -Wno-trigraphs -fpascal-strings -Os -fno-common -Wno-missing-field-initializers -Wno-missing-prototypes -Werror=return-type -Wdocumentation -Wunreachable-code -Wno-implicit-atomic-properties -Werror=deprecated-objc-isa-usage -Werror=objc-root-class -Wno-arc-repeated-use-of-weak -Wimplicit-retain-self -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wno-float-conversion -Wnon-literal-null-conversion -Wobjc-literal-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wdeprecated-implementations -DPOD_CONFIGURATION_RELEASE=1 -DCOCOAPODS=1 -DNS_BLOCK_ASSERTIONS=1 -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -isysroot /Applications/Xcode_9.2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.2.sdk -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -miphoneos-version-min=8.0 -g -Wno-sign-conversion -Winfinite-recursion -Wcomma -Wblock-capture-autoreleasing -Wstrict-prototypes -Wunguarded-availability -fembed-bitcode -iquote /Users/vsts/Library/Developer/Xcode/DerivedData/eipets-ewfwjxupeyiluebbmjxcjcfqdzkb/Build/Intermediates.noindex/ArchiveIntermediates/eipets/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/RNSVG.build/RNSVG-generated-files.hmap -I/Users/vsts/Library/Developer/Xcode/DerivedData/eipets-ewfwjxupeyiluebbmjxcjcfqdzkb/Build/Intermediates.noindex/ArchiveIntermediates/eipets/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/RNSVG.build/RNSVG-own-target-headers.hmap -I/Users/vsts/Library/Developer/Xcode/DerivedData/eipets-ewfwjxupeyiluebbmjxcjcfqdzkb/Build/Intermediates.noindex/ArchiveIntermediates/eipets/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/RNSVG.build/RNSVG-all-target-headers.hmap -iquote /Users/vsts/Library/Developer/Xcode/DerivedData/eipets-ewfwjxupeyiluebbmjxcjcfqdzkb/Build/Intermediates.noindex/ArchiveIntermediates/eipets/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/RNSVG.build/RNSVG-project-headers.hmap -I/Users/vsts/Library/Developer/Xcode/DerivedData/eipets-ewfwjxupeyiluebbmjxcjcfqdzkb/Build/Intermediates.noindex/ArchiveIntermediates/eipets/BuildProductsPath/Release-iphoneos/RNSVG/include -I/Users/vsts/agent/2.140.2/work/1/s/ios/Pods/Headers/Private -I/Users/vsts/agent/2.140.2/work/1/s/ios/Pods/Headers/Private/RNSVG -I/Users/vsts/agent/2.140.2/work/1/s/ios/Pods/Headers/Public -I/Users/vsts/agent/2.140.2/work/1/s/ios/Pods/Headers/Public/DoubleConversion -I/Users/vsts/agent/2.140.2/work/1/s/ios/Pods/Headers/Public/GLog -I/Users/vsts/agent/2.140.2/work/1/s/ios/Pods/Headers/Public/RNSVG -I/Users/vsts/agent/2.140.2/work/1/s/ios/Pods/Headers/Public/React -I/Users/vsts/agent/2.140.2/work/1/s/ios/Pods/Headers/Public/yoga -I/Users/vsts/Library/Developer/Xcode/DerivedData/eipets-ewfwjxupeyiluebbmjxcjcfqdzkb/Build/Intermediates.noindex/ArchiveIntermediates/eipets/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/RNSVG.build/DerivedSources/armv7 -I/Users/vsts/Library/Developer/Xcode/DerivedData/eipets-ewfwjxupeyiluebbmjxcjcfqdzkb/Build/Intermediates.noindex/ArchiveIntermediates/eipets/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/RNSVG.build/DerivedSources -F/Users/vsts/Library/Developer/Xcode/DerivedData/eipets-ewfwjxupeyiluebbmjxcjcfqdzkb/Build/Intermediates.noindex/ArchiveIntermediates/eipets/BuildProductsPath/Release-iphoneos/RNSVG -include /Users/vsts/agent/2.140.2/work/1/s/ios/Pods/Target\ Support\ Files/RNSVG/RNSVG-prefix.pch -MMD -MT dependencies -MF /Users/vsts/Library/Developer/Xcode/DerivedData/eipets-ewfwjxupeyiluebbmjxcjcfqdzkb/Build/Intermediates.noindex/ArchiveIntermediates/eipets/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/RNSVG.build/Objects-normal/armv7/RNSVGCircle.d --serialize-diagnostics /Users/vsts/Library/Developer/Xcode/DerivedData/eipets-ewfwjxupeyiluebbmjxcjcfqdzkb/Build/Intermediates.noindex/ArchiveIntermediates/eipets/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/RNSVG.build/Objects-normal/armv7/RNSVGCircle.dia -c /Users/vsts/agent/2.140.2/work/1/s/node_modules/react-native-svg/ios/Shapes/RNSVGCircle.m -o /Users/vsts/Library/Developer/Xcode/DerivedData/eipets-ewfwjxupeyiluebbmjxcjcfqdzkb/Build/Intermediates.noindex/ArchiveIntermediates/eipets/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/RNSVG.build/Objects-normal/armv7/RNSVGCircle.o

** ARCHIVE FAILED **

Most helpful comment

@msand I finally got it working by using the "legacy build system" in xcode.

All 32 comments

Can you try unlink and linking again?

@msand I've installed with Cocoa Pods, automatic link did not work for iOS, the linker not attach .xcodeproj to my project. For Android the automatic linker it worked.

I've put on my Podfile:

pod 'RNSVG', :path => '../node_modules/react-native-svg'

And run pod install

Building and Archiving on my local environment using new build system it worked (OSX High Sierra), but on appcenter not works.

I suspect that AppCenter uses the old build system.

Did you try pod update?
Edit: didn't notice the mention of pod install

I'll try:

  • Build local with old build system to test.
  • Download my project again, install packages and try build and archive with old build system.
  • Remove pod and link project manually adding .xcodeproj

I suspect the problem is with CocoaPods.

Or is there some cache to reset in app center? (i have no experience with it)

App Center runs in disposable containers, so the environment of app center not persist states, caches e etc...

Same error here, since upgrading to 8.0.0 (RN 0.57.3)

@dylancompanjen you've installed lib with CocoaPods too?

@joaom182 nope, with react-native link.

@msand i'll try this.

FYI, i've tried all ways what i described bellow, but not works.

@joaom182 Could you make a git repo which I can git clone and npm install && react-native run-ios to test?

@msand still "RNSVGLength.h" file not found (from RNSVGPainter.h)

Can you try with a clean project?

react-native init CleanProject
cd CleanProject/
yarn add react-native-svg
react-native link

Replace app.js with this:

import React, { Component } from "react";
import Svg, { Rect } from "react-native-svg";

export default class App extends Component {
  render() {
    return (
      <Svg width="100%" height="100%" viewBox="0 0 100 100">
        <Rect x="0" y="0" width="100" height="100" />
      </Svg>
    );
  }
}

react-native run-android
react-native run-ios

@msand I finally got it working by using the "legacy build system" in xcode.

I ran into the exact error described here but pod update made it compile again.

I have the same issue, but only in XCode. I can run the app in the simulator via react-native run-ios.

I have tried:

  • react-native unlink react-native-svg
  • npm remove react-native-svg
  • close metro packager
  • rm -rf ./ios/build
  • npm install react-native-svg
  • react-native unlink react-native-svg

The library seems to be removed correctly in xcode, and then added correctly again. No red libraries in "Link Binary With Libraries" in XCode.

image

Switching to "Legacy Build System" in XCode (File/Project Settings) solved the problem

@msand Is there anything I can do to help you find the build problem? I suspect that there are drawbacks with the legacy system, or that this build system won't be around in the future.

Sidenote: Subjectively I feel that my, quite SVG heavy app, performs better with v8 than it did with v6. I'd really like to get some time to setup some objective tests. It's on my list, but right now "the list" is quite long.

@msageryd I haven't upgraded XCode yet because of the significant number of problems people have been reporting around it, and the version I have works perfectly fine for now. I'm no expert in the XCode build system either, so I think it would probably be best to try and find someone properly experienced in that to take a look at it, perhaps they'll find something else to improve at the same time. Otherwise I'll probably upgrade XCode once a react-native version with proper support for it gets released.

Ok, sounds like a plan.
You might want to consider inting about "Legacy Build System" in the install section in the docs. I suspect this issue will become very hot otherwise.

I have been using the latest XCode without "Legacy.." for a couple of weeks now. No issues whatsoever with RN 0.56 (until the RNSVG issue).

screen shot 2018-10-23 at 18 37 50
I wonder if the relative order of the files in the build phases could have any effect. Could you try moving RNSVGLength.m before RNSVGPainter.m and see if the error disappears / changes? @msageryd

No difference after changing the file order.
I removed the build folder before re-building.

How about if you uncheck "Parallelize Build"?
screen shot 2018-10-23 at 18 59 25

I can't find that screen for RNSVG. In the scheme settings for my project the Parallelize setting is already unchecked. Are there scheme settings for each library, or does your project just happen to have "RNSVG" as it's name?

After just trying to build a couple of times, while looking around tor settings I got this:
image

Found the scheme settings for RNSVG.

  • unchecked Parallelize
  • removed ./ios/build
  • Tried to build -> same problem (RNSVGLength.h..)

I see, alright. Well, thanks for trying it out. Not sure what to try next. Guess I'll have to upgrade xcode to investigate further. Would you happen to know any ios/xcode expert?

Success..

I did the same thing again, but this time I used Product/Clean Build Folder from within XCode instead of just rm -rf the folder. The project now builds successfully with "Parallelize" unchecked in the RNSVG package.

I wonder what trickery the "Clean Build Folder" does besides cleaning the build folder..

Ah excellent. So, now to figure out how to make react-native link uncheck parallelize perhaps?

I was having the same issue.
When I expanded the Pods project, to Development Pods, RNSVG, Utils - the RNSVGLength.h was simply missing. So I found the missing file in Finder and drag&dropped it to the Utils folder and made sure it was targeted to the RNSVG schema.

Same issue for me too.

I did what @gunnartorfis did : I drag and dropped the missing file RNSVGLength.h where it should be. Then I had the same error for other files, and I did the same thing.

Afterwards I run pod update, clean project, rebuild and it was good.

So, this is not an actual issue with the library, rather the setup/linking. Closing now.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tavrez picture tavrez  路  34Comments

uriklar picture uriklar  路  40Comments

raffaeler picture raffaeler  路  38Comments

ryanhomer picture ryanhomer  路  35Comments

prashantchothani picture prashantchothani  路  33Comments