nx: @nrwl/react-native `run-ios` failed on second run. Newly generated app
Current Behavior
npx nx run-ios mobile failed on the second run
Expected Behavior
Should work properly
GitHub Repo
https://github.com/Singloo/nx-react-native-test
Steps to Reproduce
-
npx create-nx-workspace test-rn
–preset=react-native
–appName=mobile -
npx nx run-ios mobile
-
npx nx run-ios mobile
Nx Report
Node : 16.13.1
OS : darwin x64
npm : 8.1.2
nx : 15.8.6
@nrwl/js : 15.8.6
@nrwl/jest : 15.8.6
@nrwl/linter : 15.8.6
@nrwl/workspace : 15.8.6
@nrwl/cli : 15.8.6
@nrwl/detox : 15.8.6
@nrwl/devkit : 15.8.6
@nrwl/eslint-plugin-nx : 15.8.6
@nrwl/react : 15.8.6
@nrwl/react-native : 15.8.6
@nrwl/tao : 15.8.6
typescript : 4.9.5
Failure Logs
In file included from /Users/origami/Desktop/temp_projects/test-rn/apps/mobile/ios/Pods/RCT-Folly/folly/executors/GlobalExecutor.cpp:26:
/Users/origami/Desktop/temp_projects/test-rn/apps/mobile/ios/Pods/Headers/Private/RCT-Folly/folly/executors/CPUThreadPoolExecutor.h:177:25: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
BlockingQueue<CPUTask>* getTaskQueue();
^
/Users/origami/Desktop/temp_projects/test-rn/apps/mobile/ios/Pods/Headers/Private/RCT-Folly/folly/executors/CPUThreadPoolExecutor.h:177:25: note: insert '_Nullable' if the pointer may be null
BlockingQueue<CPUTask>* getTaskQueue();
^
_Nullable
/Users/origami/Desktop/temp_projects/test-rn/apps/mobile/ios/Pods/Headers/Private/RCT-Folly/folly/executors/CPUThreadPoolExecutor.h:177:25: note: insert '_Nonnull' if the pointer should never be null
BlockingQueue<CPUTask>* getTaskQueue();
^
_Nonnull
1 warning generated.
CompileC /Users/origami/Library/Developer/Xcode/DerivedData/Mobile-cgxbwkilewjtzbcjpnvhzvgelarj/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/React-RCTAnimation.build/Objects-normal/x86_64/RCTNativeAnimatedModule.o /Users/origami/Desktop/temp_projects/test-rn/node_modules/react-native/Libraries/NativeAnimation/RCTNativeAnimatedModule.mm normal x86_64 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'React-RCTAnimation' from project 'Pods')
cd /Users/origami/Desktop/temp_projects/test-rn/apps/mobile/ios/Pods
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c++ -target x86_64-apple-ios12.4-simulator -fmessage-length\=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit\=0 -std\=c++1z -stdlib\=libc++ -fobjc-arc -fmodules -fmodules-cache-path\=/Users/origami/Library/Developer/Xcode/DerivedData/ModuleCache.noindex -fmodules-prune-interval\=86400 -fmodules-prune-after\=345600 -fbuild-session-file\=/Users/origami/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 -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 -Wno-implicit-fallthrough -DPOD_CONFIGURATION_DEBUG\=1 -DDEBUG\=1 -DCOCOAPODS\=1 -DOBJC_OLD_DISPATCH_PROTOTYPES\=0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.2.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -Winvalid-offsetof -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/origami/Library/Developer/Xcode/DerivedData/Mobile-cgxbwkilewjtzbcjpnvhzvgelarj/Index.noindex/DataStore -iquote /Users/origami/Library/Developer/Xcode/DerivedData/Mobile-cgxbwkilewjtzbcjpnvhzvgelarj/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/React-RCTAnimation.build/React-RCTAnimation-generated-files.hmap -I/Users/origami/Library/Developer/Xcode/DerivedData/Mobile-cgxbwkilewjtzbcjpnvhzvgelarj/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/React-RCTAnimation.build/React-RCTAnimation-own-target-headers.hmap -I/Users/origami/Library/Developer/Xcode/DerivedData/Mobile-cgxbwkilewjtzbcjpnvhzvgelarj/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/React-RCTAnimation.build/React-RCTAnimation-all-non-framework-target-headers.hmap -ivfsoverlay /Users/origami/Library/Developer/Xcode/DerivedData/Mobile-cgxbwkilewjtzbcjpnvhzvgelarj/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/React-RCTAnimation.build/all-product-headers.yaml -iquote /Users/origami/Library/Developer/Xcode/DerivedData/Mobile-cgxbwkilewjtzbcjpnvhzvgelarj/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/React-RCTAnimation.build/React-RCTAnimation-project-headers.hmap -I/Users/origami/Library/Developer/Xcode/DerivedData/Mobile-cgxbwkilewjtzbcjpnvhzvgelarj/Build/Products/Debug-iphonesimulator/React-RCTAnimation/include -I/Users/origami/Desktop/temp_projects/test-rn/apps/mobile/ios/Pods/Headers/Private -I/Users/origami/Desktop/temp_projects/test-rn/apps/mobile/ios/Pods/Headers/Private/React-RCTAnimation -I/Users/origami/Desktop/temp_projects/test-rn/apps/mobile/ios/Pods/Headers/Public -I/Users/origami/Desktop/temp_projects/test-rn/apps/mobile/ios/Pods/Headers/Public/DoubleConversion -I/Users/origami/Desktop/temp_projects/test-rn/apps/mobile/ios/Pods/Headers/Public/FBLazyVector -I/Users/origami/Desktop/temp_projects/test-rn/apps/mobile/ios/Pods/Headers/Public/RCT-Folly -I/Users/origami/Desktop/temp_projects/test-rn/apps/mobile/ios/Pods/Headers/Public/RCTRequired -I/Users/origami/Desktop/temp_projects/test-rn/apps/mobile/ios/Pods/Headers/Public/RCTTypeSafety -I/Users/origami/Desktop/temp_projects/test-rn/apps/mobile/ios/Pods/Headers/Public/React-Codegen -I/Users/origami/Desktop/temp_projects/test-rn/apps/mobile/ios/Pods/Headers/Public/React-Core -I/Users/origami/Desktop/temp_projects/test-rn/apps/mobile/ios/Pods/Headers/Public/React-RCTAnimation -I/Users/origami/Desktop/temp_projects/test-rn/apps/mobile/ios/Pods/Headers/Public/React-callinvoker -I/Users/origami/Desktop/temp_projects/test-rn/apps/mobile/ios/Pods/Headers/Public/React-cxxreact -I/Users/origami/Desktop/temp_projects/test-rn/apps/mobile/ios/Pods/Headers/Public/React-hermes -I/Users/origami/Desktop/temp_projects/test-rn/apps/mobile/ios/Pods/Headers/Public/React-jsi -I/Users/origami/Desktop/temp_projects/test-rn/apps/mobile/ios/Pods/Headers/Public/React-jsiexecutor -I/Users/origami/Desktop/temp_projects/test-rn/apps/mobile/ios/Pods/Headers/Public/React-jsinspector -I/Users/origami/Desktop/temp_projects/test-rn/apps/mobile/ios/Pods/Headers/Public/React-logger -I/Users/origami/Desktop/temp_projects/test-rn/apps/mobile/ios/Pods/Headers/Public/React-perflogger -I/Users/origami/Desktop/temp_projects/test-rn/apps/mobile/ios/Pods/Headers/Public/React-runtimeexecutor -I/Users/origami/Desktop/temp_projects/test-rn/apps/mobile/ios/Pods/Headers/Public/ReactCommon -I/Users/origami/Desktop/temp_projects/test-rn/apps/mobile/ios/Pods/Headers/Public/Yoga -I/Users/origami/Desktop/temp_projects/test-rn/apps/mobile/ios/Pods/Headers/Public/fmt -I/Users/origami/Desktop/temp_projects/test-rn/apps/mobile/ios/Pods/Headers/Public/glog -I/Users/origami/Desktop/temp_projects/test-rn/apps/mobile/ios/Pods/Headers/Public/hermes-engine -I/Users/origami/Desktop/temp_projects/test-rn/apps/mobile/ios/Pods/Headers/Public/libevent -I/Users/origami/Desktop/temp_projects/test-rn/apps/mobile/ios/Pods/RCT-Folly -I/Users/origami/Desktop/temp_projects/test-rn/apps/mobile/ios/Pods/Headers/Public/React-Codegen/react/renderer/components -I/Users/origami/Library/Developer/Xcode/DerivedData/Mobile-cgxbwkilewjtzbcjpnvhzvgelarj/Build/Products/Debug-iphonesimulator/React-Codegen/React_Codegen.framework/Headers -I/Users/origami/Library/Developer/Xcode/DerivedData/Mobile-cgxbwkilewjtzbcjpnvhzvgelarj/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/React-RCTAnimation.build/DerivedSources-normal/x86_64 -I/Users/origami/Library/Developer/Xcode/DerivedData/Mobile-cgxbwkilewjtzbcjpnvhzvgelarj/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/React-RCTAnimation.build/DerivedSources/x86_64 -I/Users/origami/Library/Developer/Xcode/DerivedData/Mobile-cgxbwkilewjtzbcjpnvhzvgelarj/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/React-RCTAnimation.build/DerivedSources -F/Users/origami/Library/Developer/Xcode/DerivedData/Mobile-cgxbwkilewjtzbcjpnvhzvgelarj/Build/Products/Debug-iphonesimulator/React-RCTAnimation -F/Users/origami/Desktop/temp_projects/test-rn/apps/mobile/ios/Pods/hermes-engine/destroot/Library/Frameworks/universal -F/Users/origami/Library/Developer/Xcode/DerivedData/Mobile-cgxbwkilewjtzbcjpnvhzvgelarj/Build/Products/Debug-iphonesimulator/XCFrameworkIntermediates/hermes-engine/Pre-built -fmodule-map-file\=/Users/origami/Desktop/temp_projects/test-rn/apps/mobile/ios/Pods/Headers/Public/RCTTypeSafety/RCTTypeSafety.modulemap -fmodule-map-file\=/Users/origami/Desktop/temp_projects/test-rn/apps/mobile/ios/Pods/Headers/Public/React/React-Core.modulemap -fmodule-map-file\=/Users/origami/Desktop/temp_projects/test-rn/apps/mobile/ios/Pods/Headers/Public/ReactCommon/ReactCommon.modulemap -fmodule-map-file\=/Users/origami/Desktop/temp_projects/test-rn/apps/mobile/ios/Pods/Headers/Public/React_Codegen/React-Codegen.modulemap -fmodule-map-file\=/Users/origami/Desktop/temp_projects/test-rn/apps/mobile/ios/Pods/Headers/Public/folly/RCT-Folly.modulemap -fmodule-map-file\=/Users/origami/Desktop/temp_projects/test-rn/apps/mobile/ios/Pods/Headers/Public/yoga/Yoga.modulemap -DFOLLY_NO_CONFIG -DFOLLY_MOBILE\=1 -DFOLLY_USE_LIBCPP\=1 -Wno-comma -Wno-shorten-64-to-32 -Wno-nullability-completeness -include /Users/origami/Desktop/temp_projects/test-rn/apps/mobile/ios/Pods/Target\ Support\ Files/React-RCTAnimation/React-RCTAnimation-prefix.pch -MMD -MT dependencies -MF /Users/origami/Library/Developer/Xcode/DerivedData/Mobile-cgxbwkilewjtzbcjpnvhzvgelarj/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/React-RCTAnimation.build/Objects-normal/x86_64/RCTNativeAnimatedModule.d --serialize-diagnostics /Users/origami/Library/Developer/Xcode/DerivedData/Mobile-cgxbwkilewjtzbcjpnvhzvgelarj/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/React-RCTAnimation.build/Objects-normal/x86_64/RCTNativeAnimatedModule.dia -c /Users/origami/Desktop/temp_projects/test-rn/node_modules/react-native/Libraries/NativeAnimation/RCTNativeAnimatedModule.mm -o /Users/origami/Library/Developer/Xcode/DerivedData/Mobile-cgxbwkilewjtzbcjpnvhzvgelarj/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/React-RCTAnimation.build/Objects-normal/x86_64/RCTNativeAnimatedModule.o -index-unit-output-path /Pods.build/Debug-iphonesimulator/React-RCTAnimation.build/Objects-normal/x86_64/RCTNativeAnimatedModule.o
/Users/origami/Desktop/temp_projects/test-rn/node_modules/react-native/Libraries/NativeAnimation/RCTNativeAnimatedModule.mm:234:22: error: use of undeclared identifier 'JS'
: (JS::NativeAnimatedModule::EventMapping &)eventMapping)
^
/Users/origami/Desktop/temp_projects/test-rn/node_modules/react-native/Libraries/NativeAnimation/RCTNativeAnimatedModule.mm:234:22: error: expected a type
/Users/origami/Desktop/temp_projects/test-rn/node_modules/react-native/Libraries/NativeAnimation/RCTNativeAnimatedModule.mm:237:76: error: property 'nativeEventPath' not found on object of type '__strong id'
eventMappingDict[@"nativeEventPath"] = RCTConvertVecToArray(eventMapping.nativeEventPath());
^
/Users/origami/Desktop/temp_projects/test-rn/node_modules/react-native/Libraries/NativeAnimation/RCTNativeAnimatedModule.mm:239:20: error: property 'animatedValueTag' not found on object of type '__strong id'
if (eventMapping.animatedValueTag()) {
^
/Users/origami/Desktop/temp_projects/test-rn/node_modules/react-native/Libraries/NativeAnimation/RCTNativeAnimatedModule.mm:240:61: error: property 'animatedValueTag' not found on object of type '__strong id'
eventMappingDict[@"animatedValueTag"] = @(*eventMapping.animatedValueTag());
^
5 errors generated.
Additional Information
react-native info
System:
OS: macOS 13.0
CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
Memory: 174.75 MB / 16.00 GB
Shell: 3.4.0 - /usr/local/bin/fish
Binaries:
Node: 16.13.1 - ~/.asdf/installs/nodejs/16.13.1/bin/node
Yarn: 1.22.17 - ~/.asdf/installs/nodejs/16.13.1/.npm/bin/yarn
npm: 8.1.2 - ~/.asdf/plugins/nodejs/shims/npm
Watchman: 2023.02.13.00 - /usr/local/bin/watchman
Managers:
CocoaPods: 1.11.3 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 22.2, iOS 16.2, macOS 13.1, tvOS 16.1, watchOS 9.1
Android SDK: Not Found
IDEs:
Android Studio: 2022.1 AI-221.6008.13.2211.9514443
Xcode: 14.2/14C18 - /usr/bin/xcodebuild
Languages:
Java: 11.0.18 - /usr/bin/javac
npmPackages:
@react-native-community/cli: 10.1.3 => 10.1.3
react: 18.2.0 => 18.2.0
react-native: 0.71.2 => 0.71.2
react-native-macos: Not Found
npmGlobalPackages:
*react-native*: Not Found
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 16 (10 by maintainers)
@Singloo For now, I edited my mobile
project.jsonas follows to makerun-ioswork:Not sure this is really closed. Setting the
installdefault tofalsedoesn’t really fix anything and you’ll still have the same issue ifinstallis set totrue. Regeneratingxcode.envanytime Pod dependencies change, similar to @curthipster’s workaround seems like the more appropriate solution as far as I can understand, but I could be missing something.