When I were compiling the React Native Project with "react-native run-ios", the compiler prompts an error.
No error.
* BUILD FAILED *
The following commands produced analyzer issues:
Analyze /*****/node_modules/react-native/React/Base/RCTModuleMethod.mm normal x86_64
Analyze /*****/node_modules/react-native/Libraries/Network/RCTNetInfo.m normal x86_64
(2 commands with analyzer issues)
The following build commands failed:
CompileC //ios/build/Build/Intermediates.noindex/RealmJS.build/Debug-iphonesimulator/RealmJS.build/Objects-normal/x86_64/rpc.o //node_modules/realm/src/rpc.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
Installing build/Build/Products/Debug-iphonesimulator/.app
An error was encountered processing the command (domain=IXErrorDomain, code=13):
Failed to get bundle ID from //ios/build/Build/Products/Debug-iphonesimulator/*.app
Print: Entry, ":CFBundleIdentifier", Does Not Exist
Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/*.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist
Error: Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/*.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist
at checkExecSyncError (child_process.js:601:13)
at Object.execFileSync (child_process.js:621:13)
at Promise.then (/*****/node_modules/react-native/local-cli/runIOS/runIOS.js:208:5)
at <anonymous>
Also checked with
Guess it's same issue:
** BUILD FAILED **
The following commands produced analyzer issues:
Analyze /Users/hellohellohello/Projects/rnapp/node_modules/react-native/React/Base/RCTModuleMethod.mm normal x86_64
Analyze /Users/hellohellohello/Projects/rnapp/node_modules/react-native/Libraries/Network/RCTNetInfo.m normal x86_64
(2 commands with analyzer issues)
The following build commands failed:
CompileC /Users/hellohellohello/Projects/rnapp/ios/build/Build/Intermediates.noindex/RealmJS.build/Debug-iphonesimulator/RealmJS.build/Objects-normal/x86_64/rpc.o /Users/hellohellohello/Projects/rnapp/node_modules/realm/src/rpc.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
I was helped by this solution in solving this problem:
https://github.com/realm/realm-js/issues/2305#issuecomment-476552419
Thanks @Vadim7394
But In my case, I am getting issue in different file
"/ios/build/Build/Intermediates.noindex/RealmJS.build/Debug-iphonesimulator/RealmJS.build/Objects-normal/x86_64/rpc.o"
Thanks @Vadim7394
I tried solution #2305 (comment) and it's works for me
This is fixed in v2.26.1. This should be closed. cc @kneth.
Was there a regression in version 2.27.0 for this issue? Just updated to realm v2.27.0 and I'm also getting the following error:
```* BUILD FAILED *
The following commands produced analyzer issues:
Analyze /Users/user/projects/my-app-new/node_modules/react-native/ReactCommon/jsi/jsi.cpp normal x86_64
Analyze /Users/user/projects/my-app-new/node_modules/react-native/ReactCommon/yoga/yoga/Yoga.cpp normal x86_64
Analyze /Users/user/projects/my-app-new/node_modules/react-native/React/Base/RCTModuleMethod.mm normal x86_64
(3 commands with analyzer issues)
The following build commands failed:
CompileC /Users/user/projects/my-app-new/ios/build/my/Build/Intermediates.noindex/RealmJS.build/Debug-iphonesimulator/RealmJS.build/Objects-normal/x86_64/rpc.o /Users/user/projects/my-app-new/node_modules/realm/src/rpc.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
. Run CLI with --verbose flag for more details.
```
@hayatae It looks like you are compiling for 64 bit. We are working on it - see #2366.
Hey - looks like you forgot to add a T:* label - could you please add one?
@hayatae I might have been too quick to close the issue as a 64 bit issue.
I solved this issue.