jhipster / generator-jhipster-react-native

A React Native blueprint for JHipster
https://jhipster-sample-app-react-native.vercel.app/
Apache License 2.0
266 stars 54 forks source link

React-Native using "ignite" having no Show on simulator. #93

Closed grajuu closed 4 years ago

grajuu commented 4 years ago

React-Native using "ignite" having no Show on simulator

Hey @mraible ,

I strictly followed your "Build a Mobile App with React Native and Spring Boot"

with

jhipster --version
INFO! Using JHipster version installed locally in current project's node_modules
6.8.0

and

ignite --version
3.5.1

Application on web browser is showing up super cool, but creating reactive native by command " ignite new HealthPoints -b ignite-jhipster " followed by pod install from ios directory
and trying to launch it by command run react-native run-ios
but the build is getting filed with following error. Can please have a look if it some configuration issue.

CompileC /Users/mardubudi/Library/Developer/Xcode/DerivedData/SampleApp-hlaeioiubcwrcldrzhxzijeuzdrh/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/ReactNativeNavigation.build/Objects-normal/x86_64/UIImage+tint.o /Users/mardubudi/Documents/PBIS-REPO/tis-jhip/react-native-spr-boot-mvn/SampleApp/node_modules/react-native-navigation/lib/ios/UIImage+tint.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target: ReactNativeNavigation)
    cd /Users/mardubudi/Documents/PBIS-REPO/tis-jhip/react-native-spr-boot-mvn/SampleApp/ios/Pods
    export LANG=en_US.US-ASCII
    /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=gnu11 -fobjc-arc -fobjc-weak -fmodules -fmodules-cache-path=/Users/mardubudi/Library/Developer/Xcode/DerivedData/ModuleCache.noindex -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/Users/mardubudi/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/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 -Wdocumentation -Wunreachable-code -Wno-implicit-atomic-properties -Werror=deprecated-objc-isa-usage -Wno-objc-interface-ivars -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_DEBUG=1 -DDEBUG=1 -DCOCOAPODS=1 -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -mios-simulator-version-min=9.0 -g -Wno-sign-conversion -Winfinite-recursion -Wcomma -Wblock-capture-autoreleasing -Wstrict-prototypes -Wno-semicolon-before-method-body -Wunguarded-availability -fobjc-abi-version=2 -fobjc-legacy-dispatch -index-store-path /Users/mardubudi/Library/Developer/Xcode/DerivedData/SampleApp-hlaeioiubcwrcldrzhxzijeuzdrh/Index/DataStore -iquote /Users/mardubudi/Library/Developer/Xcode/DerivedData/SampleApp-hlaeioiubcwrcldrzhxzijeuzdrh/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/ReactNativeNavigation.build/ReactNativeNavigation-generated-files.hmap -I/Users/mardubudi/Library/Developer/Xcode/DerivedData/SampleApp-hlaeioiubcwrcldrzhxzijeuzdrh/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/ReactNativeNavigation.build/ReactNativeNavigation-own-target-headers.hmap -I/Users/mardubudi/Library/Developer/Xcode/DerivedData/SampleApp-hlaeioiubcwrcldrzhxzijeuzdrh/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/ReactNativeNavigation.build/ReactNativeNavigation-all-target-headers.hmap -iquote /Users/mardubudi/Library/Developer/Xcode/DerivedData/SampleApp-hlaeioiubcwrcldrzhxzijeuzdrh/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/ReactNativeNavigation.build/ReactNativeNavigation-project-headers.hmap -I/Users/mardubudi/Library/Developer/Xcode/DerivedData/SampleApp-hlaeioiubcwrcldrzhxzijeuzdrh/Build/Products/Debug-iphonesimulator/ReactNativeNavigation/include -I/Users/mardubudi/Documents/PBIS-REPO/tis-jhip/react-native-spr-boot-mvn/SampleApp/ios/Pods/Headers/Private -I/Users/mardubudi/Documents/PBIS-REPO/tis-jhip/react-native-spr-boot-mvn/SampleApp/ios/Pods/Headers/Private/ReactNativeNavigation -I/Users/mardubudi/Documents/PBIS-REPO/tis-jhip/react-native-spr-boot-mvn/SampleApp/ios/Pods/Headers/Public -I/Users/mardubudi/Documents/PBIS-REPO/tis-jhip/react-native-spr-boot-mvn/SampleApp/ios/Pods/Headers/Public/DoubleConversion -I/Users/mardubudi/Documents/PBIS-REPO/tis-jhip/react-native-spr-boot-mvn/SampleApp/ios/Pods/Headers/Public/React-Core -I/Users/mardubudi/Documents/PBIS-REPO/tis-jhip/react-native-spr-boot-mvn/SampleApp/ios/Pods/Headers/Public/React-RCTBlob -I/Users/mardubudi/Documents/PBIS-REPO/tis-jhip/react-native-spr-boot-mvn/SampleApp/ios/Pods/Headers/Public/React-RCTText -I/Users/mardubudi/Documents/PBIS-REPO/tis-jhip/react-native-spr-boot-mvn/SampleApp/ios/Pods/Headers/Public/React-cxxreact -I/Users/mardubudi/Documents/PBIS-REPO/tis-jhip/react-native-spr-boot-mvn/SampleApp/ios/Pods/Headers/Public/React-jsi -I/Users/mardubudi/Documents/PBIS-REPO/tis-jhip/react-native-spr-boot-mvn/SampleApp/ios/Pods/Headers/Public/React-jsiexecutor -I/Users/mardubudi/Documents/PBIS-REPO/tis-jhip/react-native-spr-boot-mvn/SampleApp/ios/Pods/Headers/Public/React-jsinspector -I/Users/mardubudi/Documents/PBIS-REPO/tis-jhip/react-native-spr-boot-mvn/SampleApp/ios/Pods/Headers/Public/ReactNativeNavigation -I/Users/mardubudi/Documents/PBIS-REPO/tis-jhip/react-native-spr-boot-mvn/SampleApp/ios/Pods/Headers/Public/Yoga -I/Users/mardubudi/Documents/PBIS-REPO/tis-jhip/react-native-spr-boot-mvn/SampleApp/ios/Pods/Headers/Public/glog -I/Users/mardubudi/Library/Developer/Xcode/DerivedData/SampleApp-hlaeioiubcwrcldrzhxzijeuzdrh/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/ReactNativeNavigation.build/DerivedSources/x86_64 -I/Users/mardubudi/Library/Developer/Xcode/DerivedData/SampleApp-hlaeioiubcwrcldrzhxzijeuzdrh/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/ReactNativeNavigation.build/DerivedSources -F/Users/mardubudi/Library/Developer/Xcode/DerivedData/SampleApp-hlaeioiubcwrcldrzhxzijeuzdrh/Build/Products/Debug-iphonesimulator/ReactNativeNavigation -include /Users/mardubudi/Documents/PBIS-REPO/tis-jhip/react-native-spr-boot-mvn/SampleApp/ios/Pods/Target\ Support\ Files/ReactNativeNavigation/ReactNativeNavigation-prefix.pch -MMD -MT dependencies -MF /Users/mardubudi/Library/Developer/Xcode/DerivedData/SampleApp-hlaeioiubcwrcldrzhxzijeuzdrh/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/ReactNativeNavigation.build/Objects-normal/x86_64/UIImage+tint.d --serialize-diagnostics /Users/mardubudi/Library/Developer/Xcode/DerivedData/SampleApp-hlaeioiubcwrcldrzhxzijeuzdrh/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/ReactNativeNavigation.build/Objects-normal/x86_64/UIImage+tint.dia -c /Users/mardubudi/Documents/PBIS-REPO/tis-jhip/react-native-spr-boot-mvn/SampleApp/node_modules/react-native-navigation/lib/ios/UIImage+tint.m -o /Users/mardubudi/Library/Developer/Xcode/DerivedData/SampleApp-hlaeioiubcwrcldrzhxzijeuzdrh/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/ReactNativeNavigation.build/Objects-normal/x86_64/UIImage+tint.o
/Users/mardubudi/Documents/PBIS-REPO/tis-jhip/react-native-spr-boot-mvn/SampleApp/node_modules/react-native-navigation/lib/ios/UIImage+tint.m:7:16: error: no visible @interface for 'UIImage' declares the selector 'imageWithTintColor:renderingMode:'
                return [self imageWithTintColor:color renderingMode:UIImageRenderingModeAlwaysOriginal];
                        ~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

CompileC /Users/mardubudi/Library/Developer/Xcode/DerivedData/SampleApp-hlaeioiubcwrcldrzhxzijeuzdrh/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/ReactNativeNavigation.build/Objects-normal/x86_64/UIImage+insets.o /Users/mardubudi/Documents/PBIS-REPO/tis-jhip/react-native-spr-boot-mvn/SampleApp/node_modules/react-native-navigation/lib/ios/UIImage+insets.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target: ReactNativeNavigation)
    cd /Users/mardubudi/Documents/PBIS-REPO/tis-jhip/react-native-spr-boot-mvn/SampleApp/ios/Pods
    export LANG=en_US.US-ASCII
    /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=gnu11 -fobjc-arc -fobjc-weak -fmodules -fmodules-cache-path=/Users/mardubudi/Library/Developer/Xcode/DerivedData/ModuleCache.noindex -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/Users/mardubudi/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/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 -Wdocumentation -Wunreachable-code -Wno-implicit-atomic-properties -Werror=deprecated-objc-isa-usage -Wno-objc-interface-ivars -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_DEBUG=1 -DDEBUG=1 -DCOCOAPODS=1 -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -mios-simulator-version-min=9.0 -g -Wno-sign-conversion -Winfinite-recursion -Wcomma -Wblock-capture-autoreleasing -Wstrict-prototypes -Wno-semicolon-before-method-body -Wunguarded-availability -fobjc-abi-version=2 -fobjc-legacy-dispatch -index-store-path /Users/mardubudi/Library/Developer/Xcode/DerivedData/SampleApp-hlaeioiubcwrcldrzhxzijeuzdrh/Index/DataStore -iquote /Users/mardubudi/Library/Developer/Xcode/DerivedData/SampleApp-hlaeioiubcwrcldrzhxzijeuzdrh/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/ReactNativeNavigation.build/ReactNativeNavigation-generated-files.hmap -I/Users/mardubudi/Library/Developer/Xcode/DerivedData/SampleApp-hlaeioiubcwrcldrzhxzijeuzdrh/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/ReactNativeNavigation.build/ReactNativeNavigation-own-target-headers.hmap -I/Users/mardubudi/Library/Developer/Xcode/DerivedData/SampleApp-hlaeioiubcwrcldrzhxzijeuzdrh/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/ReactNativeNavigation.build/ReactNativeNavigation-all-target-headers.hmap -iquote /Users/mardubudi/Library/Developer/Xcode/DerivedData/SampleApp-hlaeioiubcwrcldrzhxzijeuzdrh/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/ReactNativeNavigation.build/ReactNativeNavigation-project-headers.hmap -I/Users/mardubudi/Library/Developer/Xcode/DerivedData/SampleApp-hlaeioiubcwrcldrzhxzijeuzdrh/Build/Products/Debug-iphonesimulator/ReactNativeNavigation/include -I/Users/mardubudi/Documents/PBIS-REPO/tis-jhip/react-native-spr-boot-mvn/SampleApp/ios/Pods/Headers/Private -I/Users/mardubudi/Documents/PBIS-REPO/tis-jhip/react-native-spr-boot-mvn/SampleApp/ios/Pods/Headers/Private/ReactNativeNavigation -I/Users/mardubudi/Documents/PBIS-REPO/tis-jhip/react-native-spr-boot-mvn/SampleApp/ios/Pods/Headers/Public -I/Users/mardubudi/Documents/PBIS-REPO/tis-jhip/react-native-spr-boot-mvn/SampleApp/ios/Pods/Headers/Public/DoubleConversion -I/Users/mardubudi/Documents/PBIS-REPO/tis-jhip/react-native-spr-boot-mvn/SampleApp/ios/Pods/Headers/Public/React-Core -I/Users/mardubudi/Documents/PBIS-REPO/tis-jhip/react-native-spr-boot-mvn/SampleApp/ios/Pods/Headers/Public/React-RCTBlob -I/Users/mardubudi/Documents/PBIS-REPO/tis-jhip/react-native-spr-boot-mvn/SampleApp/ios/Pods/Headers/Public/React-RCTText -I/Users/mardubudi/Documents/PBIS-REPO/tis-jhip/react-native-spr-boot-mvn/SampleApp/ios/Pods/Headers/Public/React-cxxreact -I/Users/mardubudi/Documents/PBIS-REPO/tis-jhip/react-native-spr-boot-mvn/SampleApp/ios/Pods/Headers/Public/React-jsi -I/Users/mardubudi/Documents/PBIS-REPO/tis-jhip/react-native-spr-boot-mvn/SampleApp/ios/Pods/Headers/Public/React-jsiexecutor -I/Users/mardubudi/Documents/PBIS-REPO/tis-jhip/react-native-spr-boot-mvn/SampleApp/ios/Pods/Headers/Public/React-jsinspector -I/Users/mardubudi/Documents/PBIS-REPO/tis-jhip/react-native-spr-boot-mvn/SampleApp/ios/Pods/Headers/Public/ReactNativeNavigation -I/Users/mardubudi/Documents/PBIS-REPO/tis-jhip/react-native-spr-boot-mvn/SampleApp/ios/Pods/Headers/Public/Yoga -I/Users/mardubudi/Documents/PBIS-REPO/tis-jhip/react-native-spr-boot-mvn/SampleApp/ios/Pods/Headers/Public/glog -I/Users/mardubudi/Library/Developer/Xcode/DerivedData/SampleApp-hlaeioiubcwrcldrzhxzijeuzdrh/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/ReactNativeNavigation.build/DerivedSources/x86_64 -I/Users/mardubudi/Library/Developer/Xcode/DerivedData/SampleApp-hlaeioiubcwrcldrzhxzijeuzdrh/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/ReactNativeNavigation.build/DerivedSources -F/Users/mardubudi/Library/Developer/Xcode/DerivedData/SampleApp-hlaeioiubcwrcldrzhxzijeuzdrh/Build/Products/Debug-iphonesimulator/ReactNativeNavigation -include /Users/mardubudi/Documents/PBIS-REPO/tis-jhip/react-native-spr-boot-mvn/SampleApp/ios/Pods/Target\ Support\ Files/ReactNativeNavigation/ReactNativeNavigation-prefix.pch -MMD -MT dependencies -MF /Users/mardubudi/Library/Developer/Xcode/DerivedData/SampleApp-hlaeioiubcwrcldrzhxzijeuzdrh/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/ReactNativeNavigation.build/Objects-normal/x86_64/UIImage+insets.d --serialize-diagnostics /Users/mardubudi/Library/Developer/Xcode/DerivedData/SampleApp-hlaeioiubcwrcldrzhxzijeuzdrh/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/ReactNativeNavigation.build/Objects-normal/x86_64/UIImage+insets.dia -c /Users/mardubudi/Documents/PBIS-REPO/tis-jhip/react-native-spr-boot-mvn/SampleApp/node_modules/react-native-navigation/lib/ios/UIImage+insets.m -o /Users/mardubudi/Library/Developer/Xcode/DerivedData/SampleApp-hlaeioiubcwrcldrzhxzijeuzdrh/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/ReactNativeNavigation.build/Objects-normal/x86_64/UIImage+insets.o

** BUILD FAILED **

The following build commands failed:
    CompileC /Users/mardubudi/Library/Developer/Xcode/DerivedData/SampleApp-hlaeioiubcwrcldrzhxzijeuzdrh/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/ReactNativeNavigation.build/Objects-normal/x86_64/UIImage+tint.o /Users/mardubudi/Documents/PBIS-REPO/tis-jhip/react-native-spr-boot-mvn/SampleApp/node_modules/react-native-navigation/lib/ios/UIImage+tint.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
mraible commented 4 years ago

@grajuu You didn't strictly follow my tutorial! It says to use the following versions:

npm i -g generator-jhipster@5.8.0
npm i -g ignite-cli@2.2.2 ignite-jhipster@2.0.3

😉

grajuu commented 4 years ago

I Agree @mraible , i upgraded it knowingly :) , Do i need to change something ..? or use different set of commands for this work.!
Can you please help me it this. Thanks in advance 😉😉

ruddell commented 4 years ago

Are you using Xcode 11? I'm guessing you are using Xcode 10, because the same error is here: https://github.com/wix/react-native-navigation/issues/5746 and it states it requires Xcode 11+.

It would help to provide the output of ignite doctor (run in your generated app directory) which should tell us the Xcode version.

I just did a quick test and the app generates and launches with the latest versions of ignite-cli and ignite-jhipster, but if you don't want to upgrade Xcode you can try using an old version.

To generate with a specific version of ignite-jhipster, you can pass it to the generation command like:

ignite new HealthPoints -b ignite-jhipster@2.0.3

Otherwise, it will fetch the latest release from npm by default. Note that any v2 release of ignite-jhipster requires v2 of ignite-cli

grajuu commented 4 years ago

Yes your are Right, @ruddell, I was using Xcode 10, Now i upgraded to

HealthPoints mardubudi$ ignite doctor
System
  platform           darwin
  arch               x64
  cpu                4 cores        Intel(R) Core(TM) i7-5650U CPU @ 2.20GHz
  directory          HealthPoints   /Users/mardubudi/Documents/PBIS-REPO/tis-jhip/react-native-spr-boot-mvn/HealthPoints

JavaScript
  node               12.16.1      /usr/local/bin/node
  npm                6.13.4       /usr/local/bin/npm
  yarn               1.22.4       /usr/local/bin/yarn

Ignite
  ignite-cli           3.5.1                                                                                     /usr/local/bin/ignite
  ignite src           build                                                                                     /Users/mardubudi/.config/yarn/global/node_modules/ignite-cli/build
  name                 HealthPoints
  createdWith          3.5.1
  boilerplate          ignite-jhipster
  jhipsterDirectory    ../jhipster-api
  authType             oauth2
  searchEngine         true
  websockets           -
  detox                true
  askToOverwrite       -
  generators           {"entity":"ignite-jhipster","import-jdl":"ignite-jhipster","upgrade":"ignite-jhipster"}
  boilerplateVersion   3.5.2

Android
  java               11.0.4       /usr/bin/java
  android home       -            undefined

iOS
  xcode              11.4.1
  cocoapods          1.9.1        /usr/local/bin/pod

Now Every thing working with flying colors , Thanks for the help!~~