Realm-js: compiler error with Xcode 10.2

Created on 31 Mar 2019  路  10Comments  路  Source: realm/realm-js

Goals

When I were compiling the React Native Project with "react-native run-ios", the compiler prompts an error.

Expected Results

No error.

Actual Results

* 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>

Version of Realm and Tooling

  • Realm JS SDK Version: 2.25.0
  • React Native: 0.57.8
  • Node: v8.11.4
  • Client OS & Version: iOS 12.2.0

Also checked with

  • React Native: 0.58.6 and latest, same issue
  • Node: 10.15.2
O-Community T-Enhancement

All 10 comments

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.

  1. xcode update to recent
  2. rebooting mac
  3. delete ios/build
  4. react-native run-ios
Was this page helpful?
0 / 5 - 0 ratings