Hi,
I installed native base to my sample project, but i saw some error when i build application for ios
React-native version: 0.40.0
NativeBase version: 0.5.13
Here is error:
Found Xcode project AwesomePlanets.xcodeproj
Launching iPhone 6 (iOS 10.1)...
Building using "xcodebuild -project AwesomePlanets.xcodeproj -configuration Debug -scheme AwesomePlanets -destination id=A9FD9C55-C5AC-4FD8-B254-6EFA437446DB -derivedDataPath build"
User defaults from command line:
IDEDerivedDataPathOverride = /Users/taha/Development/AwesomePlanets/ios/build
=== BUILD TARGET yoga OF PROJECT React WITH CONFIGURATION Debug ===
Check dependencies
=== BUILD TARGET jschelpers OF PROJECT React WITH CONFIGURATION Debug ===
Check dependencies
=== BUILD TARGET cxxreact OF PROJECT React WITH CONFIGURATION Debug ===
Check dependencies
=== BUILD TARGET React OF PROJECT React WITH CONFIGURATION Debug ===
Check dependencies
PhaseScriptExecution Start\ Packager /Users/taha/Development/AwesomePlanets/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/Script-006B79A01A781F38006873D1.sh
cd /Users/taha/Development/AwesomePlanets/node_modules/react-native/React
/bin/sh -c /Users/taha/Development/AwesomePlanets/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/Script-006B79A01A781F38006873D1.sh
PhaseScriptExecution Include\ RCTJSCProfiler /Users/taha/Development/AwesomePlanets/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/Script-142C4F7F1B582EA6001F0B58.sh
cd /Users/taha/Development/AwesomePlanets/node_modules/react-native/React
/bin/sh -c /Users/taha/Development/AwesomePlanets/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/Script-142C4F7F1B582EA6001F0B58.sh
=== BUILD TARGET RCTSettings OF PROJECT RCTSettings WITH CONFIGURATION Debug ===
Check dependencies
=== BUILD TARGET RCTActionSheet OF PROJECT RCTActionSheet WITH CONFIGURATION Debug ===
Check dependencies
=== BUILD TARGET RCTWebSocket OF PROJECT RCTWebSocket WITH CONFIGURATION Debug ===
Check dependencies
=== BUILD TARGET RNVectorIcons OF PROJECT RNVectorIcons WITH CONFIGURATION Debug ===
Check dependencies
CompileC /Users/taha/Development/AwesomePlanets/ios/build/Build/Intermediates/RNVectorIcons.build/Debug-iphonesimulator/RNVectorIcons.build/Objects-normal/x86_64/RNVectorIconsManager.o RNVectorIconsManager/RNVectorIconsManager.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
cd /Users/taha/Development/AwesomePlanets/node_modules/react-native-vector-icons
export LANG=en_US.US-ASCII
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/taha/.rvm/gems/ruby-2.3.0/bin:/Users/taha/.rvm/gems/ruby-2.3.0@global/bin:/Users/taha/.rvm/rubies/ruby-2.3.0/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/go/bin:/Users/taha/.rvm/bin:/Users/taha/Development/gopath/bin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch x86_64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu99 -fobjc-arc -fmodules -fmodules-cache-path=/Users/taha/Development/AwesomePlanets/ios/build/ModuleCache -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/Users/taha/Development/AwesomePlanets/ios/build/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 -O0 -fno-common -Wno-missing-field-initializers -Wno-missing-prototypes -Werror=return-type -Wunreachable-code -Wno-implicit-atomic-properties -Werror=deprecated-objc-isa-usage -Werror=objc-root-class -Wno-arc-repeated-use-of-weak -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -DDEBUG=1 -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.1.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -mios-simulator-version-min=7.0 -g -Wno-sign-conversion -Wno-infinite-recursion -fobjc-abi-version=2 -fobjc-legacy-dispatch -iquote /Users/taha/Development/AwesomePlanets/ios/build/Build/Intermediates/RNVectorIcons.build/Debug-iphonesimulator/RNVectorIcons.build/RNVectorIcons-generated-files.hmap -I/Users/taha/Development/AwesomePlanets/ios/build/Build/Intermediates/RNVectorIcons.build/Debug-iphonesimulator/RNVectorIcons.build/RNVectorIcons-own-target-headers.hmap -I/Users/taha/Development/AwesomePlanets/ios/build/Build/Intermediates/RNVectorIcons.build/Debug-iphonesimulator/RNVectorIcons.build/RNVectorIcons-all-target-headers.hmap -iquote /Users/taha/Development/AwesomePlanets/ios/build/Build/Intermediates/RNVectorIcons.build/Debug-iphonesimulator/RNVectorIcons.build/RNVectorIcons-project-headers.hmap -I/Users/taha/Development/AwesomePlanets/ios/build/Build/Products/Debug-iphonesimulator/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Users/taha/Development/AwesomePlanets/node_modules/react-native-vector-icons/../../React -I../react-native/React -I../react-native/React/Base -I../react-native/React/CSSLayout -I../react-native/React/Executors -I../react-native/React/Modules -I../react-native/React/Profiler -I../react-native/React/Views -I/Users/taha/Development/AwesomePlanets/node_modules/react-native-vector-icons/node_modules/react-native/React -I/Users/taha/Development/AwesomePlanets/ios/build/Build/Intermediates/RNVectorIcons.build/Debug-iphonesimulator/RNVectorIcons.build/DerivedSources/x86_64 -I/Users/taha/Development/AwesomePlanets/ios/build/Build/Intermediates/RNVectorIcons.build/Debug-iphonesimulator/RNVectorIcons.build/DerivedSources -F/Users/taha/Development/AwesomePlanets/ios/build/Build/Products/Debug-iphonesimulator -MMD -MT dependencies -MF /Users/taha/Development/AwesomePlanets/ios/build/Build/Intermediates/RNVectorIcons.build/Debug-iphonesimulator/RNVectorIcons.build/Objects-normal/x86_64/RNVectorIconsManager.d --serialize-diagnostics /Users/taha/Development/AwesomePlanets/ios/build/Build/Intermediates/RNVectorIcons.build/Debug-iphonesimulator/RNVectorIcons.build/Objects-normal/x86_64/RNVectorIconsManager.dia -c /Users/taha/Development/AwesomePlanets/node_modules/react-native-vector-icons/RNVectorIconsManager/RNVectorIconsManager.m -o /Users/taha/Development/AwesomePlanets/ios/build/Build/Intermediates/RNVectorIcons.build/Debug-iphonesimulator/RNVectorIcons.build/Objects-normal/x86_64/RNVectorIconsManager.o
In file included from /Users/taha/Development/AwesomePlanets/node_modules/react-native-vector-icons/RNVectorIconsManager/RNVectorIconsManager.m:10:
In file included from ../react-native/React/Base/RCTConvert.h:17:
/Users/taha/Development/AwesomePlanets/ios/build/Build/Products/Debug-iphonesimulator/include/React/RCTLog.h:40:28: error: redefinition of 'RCTLogLevel'
typedef NS_ENUM(NSInteger, RCTLogLevel) {
^
In file included from /Users/taha/Development/AwesomePlanets/node_modules/react-native-vector-icons/RNVectorIconsManager/RNVectorIconsManager.m:9:
In file included from /Users/taha/Development/AwesomePlanets/node_modules/react-native-vector-icons/RNVectorIconsManager/RNVectorIconsManager.h:10:
../react-native/React/Base/RCTLog.h:40:28: note: previous definition is here
typedef NS_ENUM(NSInteger, RCTLogLevel) {
^
In file included from /Users/taha/Development/AwesomePlanets/node_modules/react-native-vector-icons/RNVectorIconsManager/RNVectorIconsManager.m:10:
In file included from ../react-native/React/Base/RCTConvert.h:17:
/Users/taha/Development/AwesomePlanets/ios/build/Build/Products/Debug-iphonesimulator/include/React/RCTLog.h:41:3: error: redefinition of enumerator 'RCTLogLevelTrace'
RCTLogLevelTrace = 0,
^
In file included from /Users/taha/Development/AwesomePlanets/node_modules/react-native-vector-icons/RNVectorIconsManager/RNVectorIconsManager.m:9:
In file included from /Users/taha/Development/AwesomePlanets/node_modules/react-native-vector-icons/RNVectorIconsManager/RNVectorIconsManager.h:10:
../react-native/React/Base/RCTLog.h:41:3: note: previous definition is here
RCTLogLevelTrace = 0,
^
In file included from /Users/taha/Development/AwesomePlanets/node_modules/react-native-vector-icons/RNVectorIconsManager/RNVectorIconsManager.m:10:
In file included from ../react-native/React/Base/RCTConvert.h:17:
/Users/taha/Development/AwesomePlanets/ios/build/Build/Products/Debug-iphonesimulator/include/React/RCTLog.h:42:3: error: redefinition of enumerator 'RCTLogLevelInfo'
RCTLogLevelInfo = 1,
^
In file included from /Users/taha/Development/AwesomePlanets/node_modules/react-native-vector-icons/RNVectorIconsManager/RNVectorIconsManager.m:9:
In file included from /Users/taha/Development/AwesomePlanets/node_modules/react-native-vector-icons/RNVectorIconsManager/RNVectorIconsManager.h:10:
../react-native/React/Base/RCTLog.h:42:3: note: previous definition is here
RCTLogLevelInfo = 1,
^
In file included from /Users/taha/Development/AwesomePlanets/node_modules/react-native-vector-icons/RNVectorIconsManager/RNVectorIconsManager.m:10:
In file included from ../react-native/React/Base/RCTConvert.h:17:
/Users/taha/Development/AwesomePlanets/ios/build/Build/Products/Debug-iphonesimulator/include/React/RCTLog.h:43:3: error: redefinition of enumerator 'RCTLogLevelWarning'
RCTLogLevelWarning = 2,
^
In file included from /Users/taha/Development/AwesomePlanets/node_modules/react-native-vector-icons/RNVectorIconsManager/RNVectorIconsManager.m:9:
In file included from /Users/taha/Development/AwesomePlanets/node_modules/react-native-vector-icons/RNVectorIconsManager/RNVectorIconsManager.h:10:
../react-native/React/Base/RCTLog.h:43:3: note: previous definition is here
RCTLogLevelWarning = 2,
^
In file included from /Users/taha/Development/AwesomePlanets/node_modules/react-native-vector-icons/RNVectorIconsManager/RNVectorIconsManager.m:10:
In file included from ../react-native/React/Base/RCTConvert.h:17:
/Users/taha/Development/AwesomePlanets/ios/build/Build/Products/Debug-iphonesimulator/include/React/RCTLog.h:44:3: error: redefinition of enumerator 'RCTLogLevelError'
RCTLogLevelError = 3,
^
In file included from /Users/taha/Development/AwesomePlanets/node_modules/react-native-vector-icons/RNVectorIconsManager/RNVectorIconsManager.m:9:
In file included from /Users/taha/Development/AwesomePlanets/node_modules/react-native-vector-icons/RNVectorIconsManager/RNVectorIconsManager.h:10:
../react-native/React/Base/RCTLog.h:44:3: note: previous definition is here
RCTLogLevelError = 3,
^
In file included from /Users/taha/Development/AwesomePlanets/node_modules/react-native-vector-icons/RNVectorIconsManager/RNVectorIconsManager.m:10:
In file included from ../react-native/React/Base/RCTConvert.h:17:
/Users/taha/Development/AwesomePlanets/ios/build/Build/Products/Debug-iphonesimulator/include/React/RCTLog.h:45:3: error: redefinition of enumerator 'RCTLogLevelFatal'
RCTLogLevelFatal = 4
^
In file included from /Users/taha/Development/AwesomePlanets/node_modules/react-native-vector-icons/RNVectorIconsManager/RNVectorIconsManager.m:9:
In file included from /Users/taha/Development/AwesomePlanets/node_modules/react-native-vector-icons/RNVectorIconsManager/RNVectorIconsManager.h:10:
../react-native/React/Base/RCTLog.h:45:3: note: previous definition is here
RCTLogLevelFatal = 4
^
In file included from /Users/taha/Development/AwesomePlanets/node_modules/react-native-vector-icons/RNVectorIconsManager/RNVectorIconsManager.m:10:
In file included from ../react-native/React/Base/RCTConvert.h:17:
/Users/taha/Development/AwesomePlanets/ios/build/Build/Products/Debug-iphonesimulator/include/React/RCTLog.h:51:28: error: redefinition of 'RCTLogSource'
typedef NS_ENUM(NSInteger, RCTLogSource) {
^
In file included from /Users/taha/Development/AwesomePlanets/node_modules/react-native-vector-icons/RNVectorIconsManager/RNVectorIconsManager.m:9:
In file included from /Users/taha/Development/AwesomePlanets/node_modules/react-native-vector-icons/RNVectorIconsManager/RNVectorIconsManager.h:10:
../react-native/React/Base/RCTLog.h:51:28: note: previous definition is here
typedef NS_ENUM(NSInteger, RCTLogSource) {
^
In file included from /Users/taha/Development/AwesomePlanets/node_modules/react-native-vector-icons/RNVectorIconsManager/RNVectorIconsManager.m:10:
In file included from ../react-native/React/Base/RCTConvert.h:17:
/Users/taha/Development/AwesomePlanets/ios/build/Build/Products/Debug-iphonesimulator/include/React/RCTLog.h:52:3: error: redefinition of enumerator 'RCTLogSourceNative'
RCTLogSourceNative = 1,
^
In file included from /Users/taha/Development/AwesomePlanets/node_modules/react-native-vector-icons/RNVectorIconsManager/RNVectorIconsManager.m:9:
In file included from /Users/taha/Development/AwesomePlanets/node_modules/react-native-vector-icons/RNVectorIconsManager/RNVectorIconsManager.h:10:
../react-native/React/Base/RCTLog.h:52:3: note: previous definition is here
RCTLogSourceNative = 1,
^
In file included from /Users/taha/Development/AwesomePlanets/node_modules/react-native-vector-icons/RNVectorIconsManager/RNVectorIconsManager.m:10:
In file included from ../react-native/React/Base/RCTConvert.h:17:
/Users/taha/Development/AwesomePlanets/ios/build/Build/Products/Debug-iphonesimulator/include/React/RCTLog.h:53:3: error: redefinition of enumerator 'RCTLogSourceJavaScript'
RCTLogSourceJavaScript = 2
^
In file included from /Users/taha/Development/AwesomePlanets/node_modules/react-native-vector-icons/RNVectorIconsManager/RNVectorIconsManager.m:9:
In file included from /Users/taha/Development/AwesomePlanets/node_modules/react-native-vector-icons/RNVectorIconsManager/RNVectorIconsManager.h:10:
../react-native/React/Base/RCTLog.h:53:3: note: previous definition is here
RCTLogSourceJavaScript = 2
^
In file included from /Users/taha/Development/AwesomePlanets/node_modules/react-native-vector-icons/RNVectorIconsManager/RNVectorIconsManager.m:11:
In file included from ../react-native/React/Base/RCTBridge.h:13:
/Users/taha/Development/AwesomePlanets/ios/build/Build/Products/Debug-iphonesimulator/include/React/RCTBridgeModule.h:55:11: warning: duplicate protocol definition of 'RCTBridgeModule' is ignored
@protocol RCTBridgeModule <NSObject>
^
In file included from /Users/taha/Development/AwesomePlanets/node_modules/react-native-vector-icons/RNVectorIconsManager/RNVectorIconsManager.m:9:
In file included from /Users/taha/Development/AwesomePlanets/node_modules/react-native-vector-icons/RNVectorIconsManager/RNVectorIconsMa
nager.h:9:
../react-native/React/Base/RCTBridgeModule.h:55:11: note: previous definition is here
@protocol RCTBridgeModule <NSObject>
^
1 warning and 9 errors generated.
** BUILD FAILED **
The following build commands failed:
CompileC /Users/taha/Development/AwesomePlanets/ios/build/Build/Intermediates/RNVectorIcons.build/Debug-iphonesimulator/RNVectorIcons.build/Objects-normal/x86_64/RNVectorIconsManager.o RNVectorIconsManager/RNVectorIconsManager.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
Installing build/Build/Products/Debug-iphonesimulator/AwesomePlanets.app
Launching org.reactjs.native.example.AwesomePlanets
org.reactjs.native.example.AwesomePlanets: 14720
Thank you for your help
After downgrade react-native to 0.39.0, it is built successfully
How to get this working with react-native 0.40 ?
TIA
@kiranruth I got the same issue. try to:
react-native link react-native-vector-icons
npm update
and restart JS packager
This worked for me
@VitaliiKalininCRG what version of react-native are you using?
I am experiencing the same issue on react-native 0.40.
Downgrading to 0.39 also solved the problem for me.
@niallr12 I am using:
"react-native": "0.40.0",
"native-base": "^0.5.20"
I can reproduce this, it happened when i installed the react-native-config package that adds some custom build settings, but the app works fine when i run it through xcode, i can load the environment variables set, but when i run it from the cli, i see this error and the env variables are not loaded
same issue here...
"react-native": "0.41.1",
"react-native-vector-icons": "^4.0.0",
linking did not work for me, any fixes for this?
same issue here...
"react": "15.4.2",
"react-native": "0.42.0",
"react-native-vector-icons": "^3.0.0"
any fixes for this?
Upgrade vector icons to 4.0.0
Nice, it works now. Thanks.
Upgrade vector icons to 4.0.0 works for me
"react-native-vector-icons": "^4.0.0"
rm ./node_modules/react-native/local-cli/core/__fixtures__/files/package.json
react-native run-ios
Most helpful comment
Upgrade vector icons to 4.0.0