react-native 0.59ã«æŽæ°ããiOSçšã®ã¢ããªããã«ãããããšãããšã次ã®ãšã©ãŒãçºçããŸãã
ãã«ãå ¥åãã¡ã€ã«ãèŠã€ãããŸããïŒ '/ app / node_modules / react-native / ReactCommon / yoga / yoga / YGFloatOptional.cpp'
ç§ã«ãšã£ãŠå¥åŠãªã®ã¯ãçŸåšã®ãã¹ã¿ãŒã§ããã®ãã¡ã€ã«ãèŠã€ãããªãããšã§ãïŒ react-native/tree/master/ReactCommon/yoga/yoga
ïŒ YGFloatOptional.h
ïŒ
äžèŠæš¡ãããžã§ã¯ãã0.57.7â0.59ã«ã¢ããã°ã¬ãŒãããŸããã
ãã«ãã¯ä»¥åãšåãããã«åé¡ãªãå®è¡ãããã¯ãã§ãã
React Native Environment Info:
System:
OS: macOS 10.14.3
CPU: (12) x64 Intel(R) Core(TM) i7-8850H CPU @ 2.60GHz
Memory: 2.95 GB / 32.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 10.15.1 - /var/folders/1r/ymkpxdlj21lb638kzp4jxvwm0000gn/T/yarn--1552463658468-0.20119758467048565/node
Yarn: 1.13.0 - /var/folders/1r/ymkpxdlj21lb638kzp4jxvwm0000gn/T/yarn--1552463658468-0.20119758467048565/yarn
npm: 6.4.1 - /usr/local/Cellar/node@10/10.15.1/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 12.1, macOS 10.14, tvOS 12.1, watchOS 5.1
Android SDK:
API Levels: 23, 24, 25, 27, 28
Build Tools: 23.0.1, 23.0.3, 24.0.1, 25.0.0, 27.0.3, 28.0.3
System Images: android-24 | ARM 64 v8a, android-24 | ARM EABI v7a, android-24 | Intel x86 Atom_64, android-28 | Google APIs Intel x86 Atom, android-28 | Google Play Intel x86 Atom_64
IDEs:
Android Studio: 3.3 AI-182.5107.16.33.5264788
Xcode: 10.1/10B61 - /usr/bin/xcodebuild
npmPackages:
react: 16.8.3 => 16.8.3
react-native: 0.59.0 => 0.59.0
ãã®åé¡ãXCodeïŒ10.1ããã³RN0.59.0ã§åçŸããŸããã
ç·šé1 ïŒXCodeUIãã«ãããŒã«ã§åçŸã§ããŸãã; ãã ãã react-native run-ios
æ£åžžã«æ©èœããŠããŸãïŒææ°ã®2.x cliã䜿çšããŠããããšã確èªããŠãã ããïŒã
ç·šé2 ïŒã¬ã¬ã·ãŒãã«ããæå¹ã«ããããšã§ãXCode10.1ã§åäœãããããš
ããŒãã 0.58.4
ãã0.59
ã«ã¢ããã°ã¬ãŒãããXCodeã®ãã«ããã£ã¬ã¯ããªãã¯ãªãŒã³ã¢ãããããšãããã¢ããªã®ãããã°ãšã¢ãŒã«ã€ãã®äž¡æ¹ãå®è¡ã§ããŸããã XCode10.1ã䜿çšããŠããŸãã
ç§ã®ã¢ããã°ã¬ãŒãæŠç¥ïŒ
0.58.4
ã䜿ã£ãŠããŠããã®äžã«æ°ãããã®ãé©çšããã ããªã®ã§ããã¹ãŠãããŸãããã®ã§ã¯ãªãããšæããŸããïŒ
ç·šéïŒ node_modules
ãåé€ããããã«npm ci
ãå®è¡ããŸãããïŒå¿µã®ããïŒãXCodeããã¢ããªããã«ãããããšã¯ã§ããŸããð€
EDIT2ïŒãããŠç§ã¯YGFloatOptional.cpp
æã£ãŠããŸããïŒ
0.57.8-> 0.59.1ããã¢ããã°ã¬ãŒãããŠãåãåé¡ãçºçããŸãã
æ°ãã0.59.1initãèŠããšã YGFloatOptional.cpp
ãã¡ã€ã«ã¯ãããŸããã
次ã®è¡ãããããã¡ã€ã«ã«è¿œå ããŸãã
pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec'
pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec'
pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'
å®è¡ããŸã
pod install
@jpudyszããã ã«ç§»è¡ãã .xcworkspace
ãã¡ã€ã«ã§XCodeãããžã§ã¯ããéããåŸã«æ©èœããŸããã
react-native unlink
ãšreact-native link
ããªããžã©ã€ãã©ãªã䜿çšããŠã代ããã«Podfile
ã䜿çšããå¿
èŠããããŸããã
ã¬ã¬ã·ãŒïŒã³ã³ã¢ããããªãïŒãªã³ã¯ã¯éæšå¥šã«ããå¿ èŠããããŸããïŒ
@jpudyszç§ãåããã 確ãã«ãããã¯é©åãªè§£æ±ºçã§ã¯ãããŸããããïŒ ããã¯ãããžã§ã¯ããæ·±å»ã«èšããŸããŸãã Pods/boost-for-react-native
ã¯160.8MBã§ãã
ç·šéïŒããããŸãããéåžžã«å¥åŠã§ããããã3ã€ã®ããããåé€ããXcodeã§Cleanãå®è¡ããŠããã«ããè©Šã¿ãŸããã ä»åã¯ãYogaã®ã³ã³ãã€ã«äžã«ãšã©ãŒã¯çºçããŸããã§ããã
ããããšã@jpudysz ã ããªãã®è§£æ±ºçã«ç¶ããŠãç§ã¯æ¬¡ã®ãšã©ãŒãåãåããŸãïŒ
'folly /Portability.h'ãã¡ã€ã«ãJSBundleType.hã«èŠã€ãããŸãã
誰ããäœãèµ·ãã£ãŠããã®ãç¥ã£ãŠããŸããïŒ
ã©ããããããšãã
RNæšæºã¢ããã°ã¬ãŒããgitã¢ããã°ã¬ãŒãããŒã«ãdiffãããã®é©çšãªã©ãã»ãšãã©ãã¹ãŠã®ããšãè©ŠããåŸãå®å šã«æ°ãããããžã§ã¯ããåäœæããã³ãŒãããŒã¹ãåæ§ç¯ãããšããéåžžã«é¢åãªäœæ¥ãè¡ãããšã«ãªããŸããã 圌ãã¯ããã0.59ããè¯ããªãã ãããšèšããŸã..ããŸãããã°åœŒãã¯ããã«ã€ããŠæ£ããã§ã
0.59.0ãã0.59.1ã«ã¢ããã°ã¬ãŒããããšãããããŸããããŸãã
ãšã¬ã®åé¡ã解決ããŸãã
ç§ãã¢ããã°ã¬ãŒãããŸããããä»ã®ãšããéããããŸããã
ç§ã¯ãŸã£ããåãåé¡ãæ±ããŠããŸããã å€ãè¯ãrm -rf node_modules && npm i
ãšãã«ããã©ã«ãã®ã¯ãªãŒãã³ã°ã¯ç§ã®ããã«ãããããŸãã
npm audit fix
ã䜿çšããåŸããreact-nativeããèªåçã«ããŒãžã§ã³0.59ã«ã¢ããã°ã¬ãŒãããããããžã§ã¯ãããã«ãã§ããŸããã
解決çïŒããŒãžã§ã³ãäžäœããŒãžã§ã³ã«ããŠã³ã°ã¬ãŒãããŸãã
npm install react-native@<version>
äŸïŒ npm install [email protected]
0.58.4ããæåã§æŽæ°ããããšããŸãããïŒrn-diff-purgeã®å€æŽåŸïŒãRN0.59.0ãŸãã¯0.59.1ã§ããã®åé¡ã«çŽé¢ããŠããŸãã
ããã0.58ãŸã§YGFloatOptional.cpp
ãhttps://github.com/facebook/react-native/blob/0.58-stable/ReactCommon/yoga/yoga/YGFloatOptional.cpp
ããã§äžäœäœãèµ·ãã£ãŠããã®ã§ããïŒ
ç·šé
@jpudyszã®è§£æ±ºçã«ãããå¥ã®ãã¡ã€ã«ãèŠã€ãããŸãããšã©ãŒ'folly/Portability.h' file not found
ã衚瀺ãããŸã
0.58.4ãã0.59.0ããã³0.59.1ã«ã¢ããã°ã¬ãŒãããåŸããfolly /Portability.hãã§åãåé¡ãçºçããŸãã
å¥åŠãªããšã«ãXCodeã¯ã³ã³ãã€ã«åŸã«Portability.hãèŠã€ãããªããšè¿°ã¹ãŠããŸããããšãã£ã¿ãŒã§ã¯ãããããŒã§å®çŸ©ãããŠãããã¹ãŠã®ã¿ã€ããååŸããŸã...
ã³ã³ãã€ã«ã«å€±æãããã¡ã€ã«ã¯ãReactã©ã€ãã©ãªã®RCTJavasScriptLoader.mmã§ãã
CompileC /Users/xxx/Projects/xxx/ios/build/xxx/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/React.build/Objects-normal/x86_64/RCTJavaScriptLoader.o /Users/xxx/Projects/xxx/node_modules/react-native/React/Base/RCTJavaScriptLoader.mm normal x86_64 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler (in target: React)
cd /Users/xxx/Projects/xxx/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=c++14 -stdlib=libc++ -fobjc-arc -fobjc-weak -fmodules -fmodules-cache-path=/Users/xxx/Projects/xxx/ios/build/xxx/ModuleCache.noindex -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/Users/xxx/Projects/xxx/ios/build/xxx/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 -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -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 -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wdeprecated-implementations -Wno-c++11-extensions -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 -Winvalid-offsetof -mios-simulator-version-min=9.0 -g -Wno-sign-conversion -Winfinite-recursion -Wmove -Wcomma -Wblock-capture-autoreleasing -Wstrict-prototypes -Wrange-loop-analysis -Wno-semicolon-before-method-body -Wunguarded-availability -fobjc-abi-version=2 -fobjc-legacy-dispatch -index-store-path /Users/xxx/Projects/xxx/ios/build/xxx/Index/DataStore -iquote /Users/xxx/Projects/xxx/ios/build/xxx/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/React.build/React-generated-files.hmap -I/Users/xxx/Projects/xxx/ios/build/xxx/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/React.build/React-own-target-headers.hmap -I/Users/xxx/Projects/xxx/ios/build/xxx/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/React.build/React-all-non-framework-target-headers.hmap -ivfsoverlay /Users/xxx/Projects/xxx/ios/build/xxx/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/React.build/all-product-headers.yaml -iquote /Users/xxx/Projects/xxx/ios/build/xxx/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/React.build/React-project-headers.hmap -I/Users/xxx/Projects/xxx/ios/build/xxx/Build/Products/Debug-iphonesimulator/React/include -I/Users/xxx/Projects/xxx/ios/Pods/Headers/Private -I/Users/xxx/Projects/xxx/ios/Pods/Headers/Private/React -I/Users/xxx/Projects/xxx/ios/Pods/Headers/Public -I/Users/xxx/Projects/xxx/ios/Pods/Headers/Public/React -I/Users/xxx/Projects/xxx/ios/Pods/Headers/Public/yoga -I/Users/xxx/Projects/xxx/node_modules/react-native/ReactCommon -I/Users/xxx/Projects/xxx/ios/build/xxx/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/React.build/DerivedSources/x86_64 -I/Users/xxx/Projects/xxx/ios/build/xxx/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/React.build/DerivedSources -F/Users/xxx/Projects/xxx/ios/build/xxx/Build/Products/Debug-iphonesimulator/React -DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -include /Users/xxx/Projects/xxx/ios/Pods/Target\ Support\ Files/React/React-prefix.pch -MMD -MT dependencies -MF /Users/xxx/Projects/xxx/ios/build/xxx/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/React.build/Objects-normal/x86_64/RCTJavaScriptLoader.d --serialize-diagnostics /Users/xxx/Projects/xxx/ios/build/xxx/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/React.build/Objects-normal/x86_64/RCTJavaScriptLoader.dia -c /Users/xxx/Projects/xxx/node_modules/react-native/React/Base/RCTJavaScriptLoader.mm -o /Users/xxx/Projects/xxx/ios/build/xxx/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/React.build/Objects-normal/x86_64/RCTJavaScriptLoader.o
In file included from /Users/xxx/Projects/xxx/node_modules/react-native/React/Base/RCTJavaScriptLoader.mm:12:
/Users/xxx/Projects/xxx/node_modules/react-native/ReactCommon/cxxreact/JSBundleType.h:
info fatal error:
'folly/Portability.h' file not found
#include <folly/Portability.h>
^~~~~~~~~~~~~~~~~~~~~
1 error generated.
ç§ã¯åãåé¡ãæ±ããŠããŸã...ãreactnativeã®ã¢ããã°ã¬ãŒãã«åé¡ããããã³ã«ãšãŠãç²ããŠããŸãã
ãã®ãã¡ã€ã«ã¯2018幎12æ13æ¥ä»¥éããšã¬ãããžã§ã¯ãããåé€ããã yoga/YGFloatOptional.h
ãã€ã³ã©ã€ã³åããããŠããããã§ãïŒ https ïŒ
ç§ã®æšæž¬ã§ã¯ã ReactCommon/yoga/yoga/YGFloatOptional.cpp
ãžã®åç
§ã¯ããå¿
èŠãããŸããã
ãã£ãã·ã¥ãåé€ããŠãããžã§ã¯ããåæ§ç¯ããŠããããã«ã¯æ©èœããŸããã§ããã
ããã§ãReact Native 0.59.1ã«ã¢ããã°ã¬ãŒãããŠããããããžã§ã¯ããåæ§ç¯ããŠã¿ãŸããã ãŸããåäœããŸããã§ããã
ãã ãã次ã«node_modulesãã¯ãªãŒã³ã¢ãããããã©ã«ããŒããã£ãã·ã¥ããŠãã«ããããããžã§ã¯ããåæ§ç¯ãããšã次ã®ã³ãã³ãã䜿çšããŠæ©èœããŸããã
rm -rf $TMPDIR/react-* && rm -rf $TMPDIR/metro-* && rm -rf $TMPDIR/haste-* && watchman watch-del-all && npm cache clean --force && npm cache verify && rm -rf ios/build && rm -rf node_modules/ && npm i
ãããã£ãŠããã£ãã·ã¥ã«é¢é£ããŠããããã§ãã
React Native 0.59.1ã«ã¢ããã°ã¬ãŒãããå¿ èŠã¯ãªããããããŸããããã¹ã¯ãªããã®äžéšã§ããŸããã£ããšæããŸãã
ãããä»ã®äººã«åœ¹ç«ã€ããšãé¡ã£ãŠããŸãïŒ
ç§ã¯ãããããPodsãã¡ã€ã«ããnode_modulesãžã®ãã¹ãŠã®ãªã³ã¯ãåé€ãã次ã«node_modulesãšãã«ããã£ã¬ã¯ããªãåé€ããäœããåã€ã³ã¹ããŒã«ããŠãæåŸã«æ£åžžã«ãã«ããçŽããŸããã
ããã¯ãšãŠãç²ããŸãã
@jvandenaardwegããã¯ãã£ãã·ã¥ã®åé¡ã ãšããªãã¯æ£ãããšæããŸãã
ç§ã«ãšã£ãŠããŸããã£ãã®ã¯ãXcodeã®æŽŸçããŒã¿ãã©ã«ããåé€ããŠXcodeãåèµ·åããããšã§ããã
rm -rf ~/Library/Developer/Xcode/DerivedData
åèµ·åããåŸããã«ããè©Šã¿ãŸããã倱æããxcodeã¯ãŒã¯ã¹ããŒã¹ãéããŠå床éãããã«æ±ããããŸããã ãããããããããäžåºŠãã«ãããããšããŸããããããŸããããŸããã
ããŠãçããããã®åé¡ã¯äžè¬çã«ã¢ããã°ã¬ãŒãã«ãããã«ããã£ãã·ã¥ã®åé¡ã«é¢ãããã®ã ãšæããŸãïŒæçš¿ãèªãããšããïŒ-ãããã£ãŠãåé¡ãããå Žåã¯ãäžè¬çã«æ¬¡ã®æ¹æ³ã§ä¿®æ£ã§ãããšæããŸãïŒ
rm -rf node_modules; rm -rf Pods
ãã®åŸãåã€ã³ã¹ããŒã«ããŸãreact-native upgrade x.y.z
ããã¯ãã¹ãŠã®ããŒãžã§ã³ã§ã»ãŒåãã ãšæããŸãã ãããæ¹åããã³ãã³ãèªäœã®ããã€ããå®è¡ããããšã«ã€ããŠãreact-native-cliã§åé¡ãäœæããããšãæ€èšãããããããŸããã
誰ããããã®ããã®ç¹å®ã®è€è£œã¹ããããæã£ãŠããŸããïŒ
#include <folly/Portability.h>
ãšã©ãŒã衚瀺ãããŠããŸããã ç§ã®å Žåã®åé¡ã¯ãpodfileã«ãµãã¹ããã¯ããªãããšã§ããã
ããã¯ç§ã«ãšã£ãŠããŸãæ§ç¯ãããŸãïŒ
pod 'React', :path => '../node_modules/react-native', :subspecs => [
'Core',
'CxxBridge', # Include this for RN >= 0.47
'DevSupport', # Include this to enable In-App Devmenu if RN >= 0.43
'RCTText',
'RCTNetwork',
'RCTWebSocket', # needed for debugging
'RCTImage',
'RCTWebSocket', # Needed for debugging
'RCTAnimation', # Needed for FlatList and animations running on native UI thread
# Add any other subspecs you want to use in your project
]
pod 'yoga', :path => '../node_modules/react-native/ReactCommon/yoga'
# Third party deps podspec link
pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec'
pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec'
pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'
ãreact-native0.57.8ãš0.58.5ã®éã§ãXcodeãããžã§ã¯ãã«è¿œå ããã倧ããªå€æŽã1ã€ãããŸããããã¯ããªã³ã¯ããããã¬ãŒã ã¯ãŒã¯ãšã©ã€ãã©ãªã«JavaScriptCore.Frameworkãè¿œå ããå¿ èŠãããããšã§ãã-ãããã
ãã©ã¹
@jvandenaardwegåçïŒ
rm -rf $TMPDIR/metro-* && rm -rf $TMPDIR/haste-* && watchman watch-del-all && npm cache clean --force && npm cache verify && rm -rf ios/build && rm -rf node_modules/ && npm i
ç§ã®ããã«ä»äºãããŸããã
ä»ã®äººãèšã£ãŠããããã«ãããã¯æ¬åœã«ã€ã©ã€ã©ããŸãã以åã«æ©èœããŠããã³ãŒããå£ããã®ãæšæž¬ããå¿ èŠããããŸãã
ãŸããAndroidã§ã¯ãBuildGradleããŒãžã§ã³ãã¢ããã°ã¬ãŒãããŠå床æ©èœãããå¿ èŠããããŸããã
æšæž¬ããå¿ èŠããã
ã¢ããã°ã¬ãŒãã¯ã³ãã¥ããã£ã«ãšã£ãŠé·ç¶ãããèŠçã§ããããšãããã£ãŠããæ°ããCLIãä»ããŠ
ã€ãŸããå€æŽãã°ãšãªãªãŒã¹ã¿ãã«é倧ãªå€æŽãæžã蟌ãã§ãããããå®éã«æšæž¬ããå¿ èŠã¯ãããŸããã
ãšã«ãããããã¯æããã«ã¢ããã°ã¬ãŒãã«é¢é£ããŠãããããçµäºããŸãããŸããäžè¬ã«ã rn-diff-repoã䜿çšããŠãã¢ããã°ã¬ãŒãæã«å¿ èŠãªãã¹ãŠã®æé ã確èªã§ããŸãã
ããã«ã¡ã¯ã
äœåºŠãæãäžããåŸããªãåé¡ãçºçããã®ããç解ããããšãã§ããŸããã ãã£ãã·ã¥ãšãã¹ãŠãã¯ãªãŒã³ã¢ããããŠãåé¡ã¯è§£æ±ºããããŸã #includeããããŸãã
ç§ã®ãããžã§ã¯ãã®Reactãããžã§ã¯ãã§ã¯åé¡ãªãã³ã³ãã€ã«ã§ããŸããããç§ãæã£ãŠãããããã§ã¯ã³ã³ãã€ã«ã§ããŸããã§ããã
Folly / glog / DoubleConversionããããè¿œå ããåŸã§ãããŸã åé¡ãçºçããŠããŸããã
次ã«ãReact.podspecsãã¡ã€ã«ãä¿®æ£ããŠCoreãµãã¹ããã¯ãç·šéããŸãã
Follyåç §ãpod_target_xcconfigã«è¿œå ããåŸãä»ã®åé¡ãªãã«ã³ã³ãã€ã«ãããŠããŸããã
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)/ReactCommon\" \"$(PODS_ROOT)/Folly\"" }
ãããŠããããç§ãæã£ãŠããå®å šãªããããã¡ã€ã«ã§ã
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
target 'CryptoReact' do
platform :ios, '9.0'
pod 'CodePush', :path => '../node_modules/react-native-code-push'
pod 'Firebase/Core', '~> 5.14.0'
pod 'react-native-sqlite-storage', :path => '../node_modules/react-native-sqlite-storage'
pod 'yoga', :path => '../node_modules/react-native/ReactCommon/yoga/yoga.podspec'
pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec'
pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec'
pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'
pod 'react-native-randombytes', :path => '../node_modules/react-native-randombytes'
pod 'RNVectorIcons', :path => '../node_modules/react-native-vector-icons'
pod 'react-native-splash-screen', :path => '../node_modules/react-native-splash-screen'
pod 'RNLocalize', :path => '../node_modules/react-native-localize/ios'
pod 'react-native-camera', :path => '../node_modules/react-native-camera'
pod 'RNPermissions', :path => '../node_modules/react-native-permissions'
pod 'react-native-keep-awake', :path => '../node_modules/react-native-keep-awake'
pod 'SwiftyJSON', '4.2.0'
pod 'Charts', '3.1.1'
pod 'Fabric', '~> 1.9.0'
pod 'Crashlytics', '~> 3.12.0'
pod 'Firebase/Performance', '~> 5.14.0'
pod 'Firebase/Auth', '~> 5.14.0'
pod 'lottie-ios', :path => '../node_modules/lottie-ios'
pod 'lottie-react-native', :path => '../node_modules/lottie-react-native'
pod 'react-native-webview', :path => '../node_modules/react-native-webview'
pod 'RNScreens', :path => '../node_modules/react-native-screens'
pod 'ReactNativeExceptionHandler', :podspec => '../node_modules/react-native-exception-handler/ReactNativeExceptionHandler.podspec'
pod 'RCTRestart', :path => '../node_modules/react-native-restart/ios'
pod 'react-native-version-number', :path => '../node_modules/react-native-version-number'
pod 'RNBackgroundFetch', :path => '../node_modules/react-native-background-fetch'
pod 'React', :path => '../node_modules/react-native', :subspec => [
'Core',
'ART',
'cxxreact',
'CxxBridge', # Include this for RN >= 0.47
'DevSupport', # Include this to enable In-App Devmenu if RN >= 0.43
'RCTText',
'RCTNetwork',
'RCTWebSocket', # needed for debugging
'RCTImage',
'RCTWebSocket', # Needed for debugging
'RCTAnimation', # Needed for FlatList and animations running on native UI thread
'RCTPushNotification',
# Add any other subspecs you want to use in your project
]
end
swift4 = ['Charts']
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
if swift4.include?(target.name)
config.build_settings['SWIFT_VERSION'] = '4.1'
end
end
end
end
ç§ãåãç¶æ³ã§ãã ç§ã¯reactnative diffã«åŸã£ãŠ0.57ãã0.59ã«ã¢ããã°ã¬ãŒãããŸãããã0.58.6ãã0.59ã«ã¢ããã°ã¬ãŒããããŸã§ããã¹ãŠãå®å šã«æ©èœããŸããã
ç§ã¯ãã®ã¹ã¬ããã§ãã¹ãŠãè©ŠããŸããããéãæªãã£ãã®ã§ããããfolly /Portability.hããã¡ã€ã«ãèŠã€ãããŸãããšãããšã©ãŒã¯æ¶ããããããŸããã
0.58.6ã«ããŒã«ããã¯ãããšå®å šã«æ©èœããŸããã0.59.0ãŸãã¯0.59.1ã«æŽæ°ãããšãšã©ãŒã衚瀺ãããŸãã
ç·šéïŒnode_modules / react-native / third-party / folly-2018.10.22.00 / folly / Portability.hã§ãã¡ã€ã«ãèŠã€ããŸãããããŸã ããã«ãªããšè¡šç€ºãããŸãã
ç§ã®æçš¿ãéåžžã«äžæçã ã£ãããšã«æ°ã¥ããŸãã...ããã«ã€ããŠã¯ç³ãèš³ãããŸããã ããã¯ããfolly /Portability.hãã«åé¡ããã人ã®ããã«ãããããæ確ã«ããå¿ èŠãããdiffãã¡ã€ã«ã§ãã
å°ãªããšãç§ã®å Žåã¯æ©èœããŠããã®ã§ãnodes_modules / react-native /React.podspecãã¡ã€ã«ã«æ¬¡ã®å€æŽãå ããŠã¿ãŠãã ããã ããã§ããããžã§ã¯ããã³ã³ãã€ã«ããŠåé¡ãªãèµ·åã§ããŸãã
diff --git a/node_modules/react-native/React.podspec b/node_modules/react-native/React.podspec
s.subspec "Core" do |ss|
[...]
ss.header_dir = "React"
ss.framework = "JavaScriptCore"
ss.libraries = "stdc++"
- ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)/ReactCommon\"" }
+ ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)/ReactCommon\" \"$(PODS_ROOT)/Folly\"" }
end
@aaskaãèšã£ãããšãpod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec'
pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec'
pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'
Podfileãšãããã«ããããã€ã³ã¹ããŒã«ããããšã¯ç§ã®ããã«åããã
@ jpudysz ã @ jvandenaardweg ã @ johnryanã®ãã³ãã䜿çšããåŸãããã¯ç§ã®ããã«ãæ§ç¯ãããŸãã
ã¿ããªããããšãïŒ
ç§ã®ããã«åé¡ã解決ãã@ th3ac3 ã ããããšãããããŸããïŒ
ãããã®ã©ããæ©èœããŸããã§ãã
@jvandenaardwegããã¯ãã£ãã·ã¥ã®åé¡ã ãšããªãã¯æ£ãããšæããŸãã
ç§ã«ãšã£ãŠããŸããã£ãã®ã¯ãXcodeã®æŽŸçããŒã¿ãã©ã«ããåé€ããŠXcodeãåèµ·åããããšã§ããã
rm -rf ~/Library/Developer/Xcode/DerivedData
åèµ·åããåŸããã«ããè©Šã¿ãŸããã倱æããxcodeã¯ãŒã¯ã¹ããŒã¹ãéããŠå床éãããã«æ±ããããŸããã ãããããããããäžåºŠãã«ãããããšããŸããããããŸããããŸããã
ãããã§ãç§ã¯ãããããŸããããããŠããã¯åã³åããŸããã
ãããã£ãŠãdiffã59.4ã«ã¢ããã°ã¬ãŒãããåŸïŒ rn-diff-purgeã䜿çšïŒãããã«ããå
šå¡ãšåãåé¡ãçºçããŸããïŒæåã«YGFloatOptional.cpp
ãšã©ãŒã次ã«folly/Portability.h
ãšã©ãŒïŒã ãã ããã©ã®ãœãªã¥ãŒã·ã§ã³ãããèªäœã§ã¯æ©èœããªãã£ãããããããåé¡ã解決ããããã«ç§ãè¡ã£ãããšã§ãã
# Clean caches/build folder/existing pods
rm -rf node_modules
rm -rf ~/Library/Developer/Xcode/DerivedData
rm -rf ios/build
rm -rf ios/Pods
# Reinstall deps
npm install
次ã«ãPodfileã次ã®ããã«æŽæ°ããŸããã
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
target 'CityChallenge' do
# Uncomment the next line if you're using Swift or would like to use dynamic frameworks
# use_frameworks!
pod 'React', :path => '../node_modules/react-native', subspecs: [
# Comment out any unneeded subspecs to reduce bundle size.
'Core',
'CxxBridge', # --> I was missing Cxxbridge here, may have resolved the issue for me as well
'DevSupport',
'RCTActionSheet',
'RCTAnimation',
'RCTBlob',
'RCTCameraRoll',
'RCTGeolocation',
'RCTImage',
'RCTNetwork',
'RCTPushNotification',
'RCTSettings',
'RCTTest',
'RCTText',
'RCTVibration',
'RCTWebSocket',
'RCTLinkingIOS'
]
pod 'yoga', :path => '../node_modules/react-native/ReactCommon/yoga'
# Third party --> This bit is also new
pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'
end
ãã®åŸãããããåã€ã³ã¹ããŒã«ããŸãã
cd ios
pod install
ãã®åŸããããžã§ã¯ãã¯åã³æ£åžžã«æ§ç¯ãéå§ããŸãã
ç§ã®å Žåãç§ã¯ã¹ããããå®è¡ããã®ãå¿ããŠããŸããïŒ
iOSéçºè ã®å Žåãã¢ããã°ã¬ãŒãæã«JavaScriptCore.frameworkãæåã§ãªã³ã¯ããå¿ èŠããããŸãã ããã¯ãXcodeãä»ããŠãããã«ç€ºãæé ã«åŸã£ãŠå®è¡ã§ããŸãã
ç§ããããããåŸãxcodeã¯ã¡ããã©ã³ã³ãã€ã«ããŸã
äžèšã®ã©ããç§ã®ããã«åããŠããŸãã
ããããã§ãã¯ããŠãã ããïŒ //github.com/facebook/react-native/issues/18408#issuecomment -386696744
ããã¯ç§ã«ãšã£ãŠåé¡ã解決ããŸããã
ãããã³ã³ãœãŒã«ã«é 眮-> xcrun -k --sdk iphoneos --show-sdk-path
çãã
xcrunïŒ_ãšã©ãŒïŒSDKãiphoneosããèŠã€ãããŸãã
xcrunïŒãšã©ãŒïŒSDKãiphoneosããèŠã€ãããŸãã
xcrunïŒãšã©ãŒïŒSDK'iphoneos 'ã§ã¢ã€ãã ' Path 'ãæ€çŽ¢ã§ããŸãã次ã«ããã®sudo xcode-select --switch / Applications / Xcode.appãé 眮ããŸãã
次ã«ãããããå床ã€ã³ã¹ããŒã«ããŸã
ãã®çãã¯ç§ã®ããã«åããã ãã®ã¹ã¬ããã§åè¿°ãããã¹ãŠã®ããšã«å ããŠãã¡ãããã³ãã©ãŒãå®è¡ããŠããã¿ãŒããã«ãå床éãå¿ èŠããããŸããã
åã³æ©èœããããã"react-native": "0.57.4",
ããŠã³ã°ã¬ãŒããã
åã³æ©èœããããã
"react-native": "0.57.4",
ããŠã³ã°ã¬ãŒããã
ãã®ããŒãžã§ã³ãžã®ããŠã³ã°ã¬ãŒãã@miukkiã®æåã®æ¹æ³ã ãšã¯æããŸããã ãã®ããŒãžã§ã³ïŒ0.59ïŒã¯ãAndroidã¢ããªã®64ããããµããŒããæäŸããã¢ããªãå ¬éããããã®å°æ¥ã®èŠä»¶ãšããŠå¿ èŠã«ãªããŸãïŒæ å ±ã¯ãã¡ãïŒã
äžèšã®ãã¹ãŠã®è§£æ±ºçã«ã¢ãããŒãããåŸãç§ã¯å¥ã®ãšã©ãŒãèŠã€ããŸãã
ldïŒèŠåïŒãªãã·ã§ã³ '-F / Users / pumeo / Library / Developer / Xcode / DerivedData / GreenPlanet-cekcooliietupofcqlsnkupeolal / Build / Products / Debug-iphonesimulator / React'ã®ãã£ã¬ã¯ããªãèŠã€ãããŸãã
ldïŒãã¬ãŒã ã¯ãŒã¯ãèŠã€ãããŸããReact
clangïŒãšã©ãŒïŒãªã³ã«ãŒã³ãã³ããçµäºã³ãŒã1ã§å€±æããŸããïŒåŒã³åºãã確èªããã«ã¯-vã䜿çšããŠãã ããïŒ
post_installãæ¿å ¥ãããšã
誰ãå©ããŠãããŸãããïŒ
hackintoshã䜿çšããŠããŸã
@ Pumeo1010 ããããã¯ã«ãšã©ãŸã£ãŠãã ããã
ãããã¯ã«ã€ããŠïŒãã®åé¡ã解決ãããå Žåã解決çã¯äœã§ããïŒ ç§ã¯äžèšã®ãã¹ãŠãè©ŠããããããªããšãããŠåäœãããŸããïŒäœãããªãã¯ãããã®ãããããŸããïŒã ä»ãç§ã¯åæ§ç¯ããªããã°ãªãããåãåé¡ã«ããäžåºŠééããŸããããããŠç§ãè©Šã¿ããã®ã¯ãããããåããããšãã§ããŸããã
æŽæ°ïŒã€ãã«ãããåã³æ©èœããããã«ãªããŸããïŒ å®å šã«ã¯ããããŸããããXcode掟çããŒã¿ã®åé€ãPodfile.lockã®åé€ãpods-dirã®åé€/åã€ã³ã¹ããŒã«ãXcodeãã«ããã©ã«ããŒã®ã¯ãªãŒã³ã¢ãããããã³ã·ã¹ãã ã®åèµ·åãããŸããã£ããšæããŸãã
ReactNativeãã»ãŒ2æ¥éã§0.57.8ãã0.59.9ã«ã¢ããã°ã¬ãŒãããããšããŠããŸãã ãã®ã³ã¡ã³ãã®äžã®ãã¹ãŠã®è§£æ±ºçãè©ŠããŸããããããã§ãåããšã©ãŒãçºçããŸããã éè€ããã·ã³ãã«ãããããŒãèŠã€ãããŸãããYGFloatOptional.cppãèŠã€ãããŸãã....æ°ããReact Nativeãããžã§ã¯ããäœæããŠãããæ¢åã®ãããžã§ã¯ããã¡ã€ã«ãæ°ãããããžã§ã¯ãã«ã³ããŒãã rn-diff-purgeã䜿çšããŠéããé©çšããŸããã ãã®æ¹æ³ã§ããããŸããŸãªãã«ããšã©ãŒãçºçããã€ãã«è«ŠããŸããã ç§ã¯v0.57.8ã倧奜ã
ãããã£ãŠãdiffã59.4ã«ã¢ããã°ã¬ãŒãããåŸïŒ rn-diff-purgeã䜿çšïŒãããã«ããå šå¡ãšåãåé¡ãçºçããŸããïŒæåã«
YGFloatOptional.cpp
ãšã©ãŒã次ã«folly/Portability.h
ãšã©ãŒïŒã ãã ããã©ã®ãœãªã¥ãŒã·ã§ã³ãããèªäœã§ã¯æ©èœããªãã£ãããããããåé¡ã解決ããããã«ç§ãè¡ã£ãããšã§ãã# Clean caches/build folder/existing pods rm -rf node_modules rm -rf ~/Library/Developer/Xcode/DerivedData rm -rf ios/build rm -rf ios/Pods # Reinstall deps npm install
次ã«ãPodfileã次ã®ããã«æŽæ°ããŸããã
# Uncomment the next line to define a global platform for your project # platform :ios, '9.0' target 'CityChallenge' do # Uncomment the next line if you're using Swift or would like to use dynamic frameworks # use_frameworks! pod 'React', :path => '../node_modules/react-native', subspecs: [ # Comment out any unneeded subspecs to reduce bundle size. 'Core', 'CxxBridge', # --> I was missing Cxxbridge here, may have resolved the issue for me as well 'DevSupport', 'RCTActionSheet', 'RCTAnimation', 'RCTBlob', 'RCTCameraRoll', 'RCTGeolocation', 'RCTImage', 'RCTNetwork', 'RCTPushNotification', 'RCTSettings', 'RCTTest', 'RCTText', 'RCTVibration', 'RCTWebSocket', 'RCTLinkingIOS' ] pod 'yoga', :path => '../node_modules/react-native/ReactCommon/yoga' # Third party --> This bit is also new pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec' end
ãã®åŸãããããåã€ã³ã¹ããŒã«ããŸãã
cd ios pod install
ãã®åŸããããžã§ã¯ãã¯åã³æ£åžžã«æ§ç¯ãéå§ããŸãã
@Hlessããã«ã¡ã¯ã ç§ã¯ããªãã®è§£æ±ºçãè©ŠããŸããã ãããç§ã®ããããã¡ã€ã«ã§ã
target '..' do
# this is very important to have!
rn_path = '../node_modules/react-native'
pod 'yoga', path: "#{rn_path}/ReactCommon/yoga/yoga.podspec"
pod 'React', path: rn_path, subspecs: [
'Core',
'CxxBridge',
'RCTActionSheet',
'RCTAnimation',
'RCTGeolocation',
'RCTImage',
'RCTLinkingIOS',
'RCTNetwork',
'RCTSettings',
'RCTText',
'RCTVibration',
'RCTWebSocket'
]
pod 'RNImageCropPicker', :path => '../node_modules/react-native-image-crop-picker'
pod 'AppCenter/Crashes', '~> 1.12.0'
pod 'AppCenter/Analytics', '~> 1.12.0'
pod 'AppCenterReactNativeShared', '~> 1.11.0'
pod 'Fabric'
pod 'Crashlytics'
# Uncomment the next line if you're using Swift or would like to use dynamic frameworks
# use_frameworks!
platform :ios, '9.0'
pod 'react-native-webview', :path => '../node_modules/react-native-webview'
pod 'react-native-document-picker', :path => '../node_modules/react-native-document-picker'
pod 'react-native-video', :path => '../node_modules/react-native-video'
pod 'RNReanimated', :path => '../node_modules/react-native-reanimated'
pod 'rn-fetch-blob', :path => '../node_modules/rn-fetch-blob'
pod 'react-native-netinfo', :path => '../node_modules/@react-native-community/netinfo'
pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'
end
post_install do |installer|
installer.pods_project.targets.each do |target|
if target.name == "React"
target.remove_from_project
end
end
end
ãã ããä»åã¯ã·ã³ãã«ã®éè€ãšã©ãŒã®ãããã«ãã倱æããŸãã ç§ã¯ãã®è§£æ±ºçãèŠã€ããŸãã
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[RCTRootView reactTag]: unrecognized selector sent to instance 0x7fbf02c05530'
解決çãã®åé¡ã«ã¯ãä»ã®ãœãªã¥ãŒã·ã§ã³ãšã¯éã§ãã ãªããŠæªãã¢ããã°ã¬ãŒãã®è©±ã :(
æåŸã«ãiOSãããžã§ã¯ããæ£åžžã«ãã«ãããã¢ããã°ã¬ãŒãã®é²è¡ç¶æ³ã«æžåœã«åãçµãã åŸããšã©ãŒãªãã§ã·ãã¥ã¬ãŒã¿ãŒã§å®è¡ããŸããã æåã«rn-diff-purgeã䜿çšããŠdiffãé©çšãã次ã«@Hless 'ãœãªã¥ãŒã·ã§ã³ãé©çšããŸãããæåŸã«éè€ã·ã³ãã«ãšã©ãŒãçºçãããã®ãœãªã¥ãŒã·ã§ã³ã®æé ã«åŸã£ãŠä¿®æ£ããŸããããããžã§ã¯ãã¯æ£ããæ©èœããŠããŸãã
以äžã§è§£æ±ºããŸããïŒ
rm -rf node_modules
rm -rf ios/Pods
rm ios/Podfile.lock
rm -rf ~Library/Developer/Xcode/DerivedData
次ã«ãäŸåé¢ä¿ïŒnpmãšpodïŒãåã€ã³ã¹ããŒã«ãããšãæ©èœããŸãã:)
rm -rfãLibrary / Developer / XCode / DerivedData
æ£ããè¡ã¯æ¬¡ã®ããã«ãªããŸãïŒ rm -rf ~/Library/Developer/Xcode/DerivedData
RNã§é«ªã®æ¯ãåŒã£åŒµãåé¡ãçºçããæå³ã®ãªããšã©ãŒã¡ãã»ãŒãžã衚瀺ããããã³ã«ãç§ã¯å¿
æ»ã«githubã§è§£æ±ºçãæ¢ããŸãã ã»ãšãã©ã®å Žåã解決çã¯ããã£ãã·ã¥ã®åé€ã掟çããŒã¿ã®åé€ãXcodeã®åãªãŒãã³ããã«ããã©ã«ããŒã®ã¯ãªã¢ãªã©ã§ããäœå¹Žã«ãããã£ãŠãpackage.jsonã«npmã¹ã¯ãªãããšããŠè¿œå ãããã®bashã¹ã¯ãªããããŸãšããŸããã ä»ãã»ãšãã©ã®åé¡ã«å¯Ÿããç§ã®æåã®gotoãœãªã¥ãŒã·ã§ã³ã¯npm run clear
ã§ãã
// package.json
{
"scripts": {
"clear": ". scripts/Clear.sh",
}
}
// scripts/Clear.sh
#!/bin/bash
echo "rm -rf ios/build..."
rm -rf ios/build
echo "rm -rf android/app/build..."
rm -rf android/app/build
echo "Removed all Xcode derived data..."
rm -rf ~/Library/Developer/Xcode/DerivedData
echo "rm -rf lib... (for Flow)"
rm -rf lib
echo "watchman watch-del-all..."
watchman watch-del-all
echo "rm -rf node_modules..."
rm -rf node_modules
echo "npm install..."
npm install
echo "rm -rf $TMPDIR/react-*..."
rm -rf $TMPDIR/react-*
echo "rm -rf $TMPDIR/haste-map-react-native-packager-*..."
rm -rf $TMPDIR/haste-map-react-native-packager-*
PSã ãããŠããã¯ç§ã«ãšã£ãŠããã®åé¡ã解決ããŸããïŒD
ã¡ããã©pod install
ã¯ç§ã®ããã«åãã
ãé¡ãããŸãã ããŠã³ã°ã¬ãŒããããXcode10.1
å¥ã®react-native link
ãç§ãå©ããŠãããŸããã :(
React Nativeã¯æç¶äžå¯èœã§ããã誰ããééãããã¹ãŠã®ãã°ã«å¯ŸããŠ100ã®è§£æ±ºçãæäŸãããŸãã 1ã€ã®å€æŽãšããã«ãããã»ã¹å šäœãå®åæãããã³ReactNativeã䜿çšããçç±ã¯åŽ©å£ããŸãã äŒæ¥ã¯ã©ã®ããã«ããŠãã®éçºããã»ã¹ã補åãã€ãã©ã€ã³ã«çã«è¿œå ã§ããã®ã§ããããã ã°ãããŠãã!!!!
圌ãã¯ããã0.59ããè¯ããªãã ãããšèšããŸã..ããŸãããã°åœŒãã¯ããã«ã€ããŠæ£ããã§ã
@ philipaarseth0.60ãåºããšãã«ããªãã®èšèãé£ã¹ãŠããããããã®ã«ð
ç§ã¯ä»¥åã«ä»ã®ã¹ã¬ããã§ãããèŠãããšããããŸããã以äžãå®è¡ãããšåé¡ã解決ããŸããïŒ
cd node_modules/react-native/scripts
./ios-install-third-party.sh
ããã¯0.59以åã§ä¿®æ£ããããšæããäžéšã®ãã«ãã§èªåçã«å®è¡ãããã®ãèŠããŠããŸããããŸã æ¬ èœããŠããå Žåãããããã§ãã
ãããžã§ã¯ãã®ãã©ãã«ã·ã¥ãŒãã£ã³ã°ã»ã¯ã·ã§ã³ã«å«ãã䟡å€ã¯ééããããŸããããããçºçããã®ã¯ãããåããŠã§ã¯ãªãããã§ãã
次ã®ã³ãã³ããå®è¡ããŸãïŒ$ conda deactivate
@jpudyszããããšããããã¯ç§ã®ããã«åããŸãã ãããããªãrnãšã¬ãã«ããšã©ãŒã«folly / glog / doubleConversionãšã®ãªã¬ãŒã·ã§ã³ã·ã§ãããããã®ã§ããïŒ
ç§ã®ãšã©ãŒãã°ã¯ïŒ
次ã®ã³ãã³ãã«ãããã¢ãã©ã€ã¶ãŒã®åé¡ãçºçããŸããã
/Users/superqa/jenkins/workspace/xxxxx-xxxx-iOS-new/node_modules/react-native/ReactCommon/yoga/yoga/Yoga.cpp normalarm64ãåæããŸã
Base /RCTModuleMethod.mmã®éåžžã®arm64ãåæããŸã
ïŒã¢ãã©ã€ã¶ãŒã®åé¡ããã2ã€ã®ã³ãã³ãïŒ
Androidã¯æ¬åœã«å®ç§ã«åäœããŸããiOSã ãã§ã... :-(
å¯äžã®ææãªåé¿çã¯ãæ®å¿µãªããRNããŒãžã§ã³ãããŠã³ã°ã¬ãŒãããããšãããããŸãã
ãµãŒãããŒãã£ã®äŸåé¢ä¿ããããããããšãããªãé£ãããªããŸãã
ç§ã®å ŽåãXcodeã¯èªåæŽæ°ãè¡ã£ãã ãã§ããã®ãããªåé¡ãçºçããŸããã
åé¡ã解決ããããã«ç§ãããããšã¯æ¬¡ã®ãšããã§ãã
cd ios
rm-frããã
rm Podfile.lock
ãããã®ã€ã³ã¹ããŒã«
ããããåã€ã³ã¹ããŒã«ãããšãPodfileã§åé¡ã解決ããŸãã
掟çããŒã¿ãåé€ãã
cd ios
ããããšPodfile.lockãåé€ããŸã
ãããã®ã€ã³ã¹ããŒã«
äžèšã®ãã¹ãŠã®æé ãå®è¡ãããã«ããæ©èœããããã«ãªããŸãããããã®ãšã©ãŒãçºçããŸãã FWIW Xcode 10.1-> 11.1ããã¢ããã°ã¬ãŒãããŠããŠãreactNativeã0.57.8-> 0.59.9ããã¢ããã°ã¬ãŒãããŠããŸã
dyld: Library not loaded: @rpath/XCTest.framework/XCTest
Referenced from: /Users/par/Library/Developer/CoreSimulator/Devices/2B68242E-D2AF-49A4-9AEA-C320820D8D2F/data/Containers/Bundle/Application/E665681B-C213-42C0-9A51-746B4CA17599/Kismet.app/Kismet
Reason: image not found
ç·šéïŒããããã¡ã€ã«ããRCTTestãåé€ããŸãããããã®åŸã¯åé¡ãããŸããã§ããã
#include <folly/Portability.h>
ãšã©ãŒã衚瀺ãããŠããŸããã ç§ã®å Žåã®åé¡ã¯ãpodfileã«ãµãã¹ããã¯ããªãããšã§ãããããã¯ç§ã«ãšã£ãŠããŸãæ§ç¯ãããŸãïŒ
pod 'React', :path => '../node_modules/react-native', :subspecs => [ 'Core', 'CxxBridge', # Include this for RN >= 0.47 'DevSupport', # Include this to enable In-App Devmenu if RN >= 0.43 'RCTText', 'RCTNetwork', 'RCTWebSocket', # needed for debugging 'RCTImage', 'RCTWebSocket', # Needed for debugging 'RCTAnimation', # Needed for FlatList and animations running on native UI thread # Add any other subspecs you want to use in your project ] pod 'yoga', :path => '../node_modules/react-native/ReactCommon/yoga' # Third party deps podspec link pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec' pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec' pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'
glogãã€ã³ã¹ããŒã«ããéã«åé¡ãçºçããå¥ã®ãã£ã¬ã¯ããªããXcodeãå®è¡ããŠããŠãããã/ Applicationsãã£ã¬ã¯ããªã«ç§»åããããããã®ã³ãã³ãsudo xcode-select --switch /Applications/Xcode.app/
ãçºè¡ããå¿
èŠããããããŒã«ããã¹ãŠå°ç¡ãã«ãªããŸããã ã
@jenskuhrjorgensen rm
ã³ãã³ãã¯ãããã«ã¹ããŒã¹ãããããã$ TMPDIRå
šäœãåé€ããŠããŸãã
@ jduffy7ããã¯ããããå°ãããéãã§ãðThxãããã¯ä¿®æ£ãããŸããïŒ
@jenskuhrjorgensenããããšã!!!!!
pod update
ããŸããããŸããã
ãã¹ãŠã®ã¢ããããŒã .. ïŒ
äžèšã®ãœãªã¥ãŒã·ã§ã³ã¯æ©èœããŸããã§ããã次ã®ãœãªã¥ãŒã·ã§ã³ã¯ãç§ã®ãããžã§ã¯ããåæ§ç¯ããã®ã«åœ¹ç«ã¡ãŸããã
cd ios
pod repo update
pod update
ãããã®ã³ãã³ããå®è¡ããåŸãxcodeã§ãã«ãã§ããŸãããã react-native run-ios
ã¯äœ¿çšããŸãã
rm -rf ios/build
rm -rf ~/Library/Developer/Xcode/DerivedData
watchman watch-del-all
rm -rf node_modules
npm install
ããã¯ã react-native run-ios
åã³äœ¿çšããŠãã«ãããã®ã«åœ¹ç«ã¡ãŸããã
è©ŠããŠã¿ãŠãã ããïŒ //react-native-community.github.io/upgrade-helper/
@khangusleeç§ã¯ãããããŸãããæ²ããããšã«ããã¯æ§ç¯ãããŸãã
ãã®ãšã©ãŒãçºçããŸãã
*ãã«ãã«å€±æããŸãã*
次ã®ãã«ãã³ãã³ãã倱æããŸããïŒ
PhaseScriptExecution [CP]ãããã確èªããManifest.lock /../ ios / build / music / Build / Intermediates.noindex / music.build / Debug-iphonesimulator / music.build / Script-C5D676D55145145333E00AC9.sh
ïŒ1å倱æïŒ
ãã¹ãŠã®ã¡ãã»ãŒãžã衚瀺
ïŒ-1ïŒãµã³ãããã¯ã¹ãPodfile.lockãšåæããŠããŸããã 'pod install'ãå®è¡ããããCocoaPodsã€ã³ã¹ããŒã«ãæŽæ°ããŸãã
ãµã³ãããã¯ã¹ã¯Podfile.lockãšåæããŠããŸããã 'pod install'ãå®è¡ããããCocoaPodsã€ã³ã¹ããŒã«ãæŽæ°ããŸãã
ãšã©ãŒã¡ãã»ãŒãžãã°ãŒã°ã«ã§ãã°ããæ€çŽ¢ãããšãããã§è§£æ±ºçãåŸãã
æãåèã«ãªãã³ã¡ã³ã
ç§ã¯åãåé¡ãæ±ããŠããŸã...ãreactnativeã®ã¢ããã°ã¬ãŒãã«åé¡ããããã³ã«ãšãŠãç²ããŠããŸãã