Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fatal error on Archive iOS - fatal error: 'RNSVGLength.h' file not found #817

Closed
joaom182 opened this issue Oct 20, 2018 · 32 comments
Closed

Comments

@joaom182
Copy link

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 **
@joaom182 joaom182 changed the title Fatal error on Archive iOS build Fatal error on Archive iOS - fatal error: 'RNSVGLength.h' file not found Oct 20, 2018
@msand
Copy link
Collaborator

msand commented Oct 20, 2018

Can you try unlink and linking again?

@joaom182
Copy link
Author

@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.

@msand
Copy link
Collaborator

msand commented Oct 20, 2018

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

@joaom182
Copy link
Author

joaom182 commented Oct 20, 2018

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.

@msand
Copy link
Collaborator

msand commented Oct 20, 2018

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

@joaom182
Copy link
Author

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

@dylancom
Copy link

dylancom commented Oct 20, 2018

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

@joaom182
Copy link
Author

@dylancompanjen you've installed lib with CocoaPods too?

@dylancom
Copy link

dylancom commented Oct 20, 2018

@joaom182 nope, with react-native link.

@msand
Copy link
Collaborator

msand commented Oct 21, 2018

@joaom182
Copy link
Author

joaom182 commented Oct 21, 2018

@msand i'll try this.

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

@msand
Copy link
Collaborator

msand commented Oct 21, 2018

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

@dylancom
Copy link

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

@msand
Copy link
Collaborator

msand commented Oct 21, 2018

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

@dylancom
Copy link

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

@lone-cloud
Copy link

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

@msageryd
Copy link

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

@msageryd
Copy link

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.

@msand
Copy link
Collaborator

msand commented Oct 23, 2018

@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.

@msageryd
Copy link

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).

@msand
Copy link
Collaborator

msand commented Oct 23, 2018

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

@msageryd
Copy link

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

@msand
Copy link
Collaborator

msand commented Oct 23, 2018

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

@msageryd
Copy link

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?

@msageryd
Copy link

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

@msageryd
Copy link

Found the scheme settings for RNSVG.

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

@msand
Copy link
Collaborator

msand commented Oct 23, 2018

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?

@msageryd
Copy link

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..

@msand
Copy link
Collaborator

msand commented Oct 23, 2018

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

@gunnartorfis
Copy link

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.

@smoczynskicitiz
Copy link

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.

@msand
Copy link
Collaborator

msand commented Dec 9, 2018

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

@msand msand closed this as completed Dec 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants