Realm-js: Followed the instructions on a help page to delete everything in a certain file, now running into build issues related to things in that file

Created on 28 Dec 2017  路  3Comments  路  Source: realm/realm-js

I am trying to solve a problem that led me to this help page here where if you are having issues with an iOS device simulator, the recommended solution is to

If your problem is on iOS, try: 1. Close all simulators/device builds 2. Stop the package manager running in terminal (or better yet, just restart terminal) 3. Open the ios folder in your app root in finder 4. Go into the build folder (note: you won鈥檛 see this build folder in atom, so just right click ios and click open in finder) 5. Delete everything inside of the build folder (just move to trash and keep trash around in case you鈥檙e worried) 6. Run react-native run-ios to rebuild the whole thing

However it seems like react-native run-ios does not rebuild the whole thing, as after deleting everything in that folder I am running into these:

** BUILD FAILED **



The following build commands failed:
    PhaseScriptExecution Download\ Core /Users/harshagoli/Projects/Hail-react-native/ios/build/Build/Intermediates.noindex/RealmJS.build/Debug-iphonesimulator/RealmJS.build/Script-F63FF2C51C12462600B3B8E0.sh
(1 failure)

Installing build/Build/Products/Debug-iphonesimulator/Hail.app
An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2):
lstat of /Users/harshagoli/Projects/Hail-react-native/ios/build/Build/Products/Debug-iphonesimulator/Hail.app failed: No such file or directory
No such file or directory
Print: Entry, ":CFBundleIdentifier", Does Not Exist

Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/Hail.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist

Running

React-Native: 0.51.0
Realm: 2.1.1

Most helpful comment

I'm getting the same issue. After react-native link realm I get the error below.

** BUILD FAILED **


The following commands produced analyzer issues:
    Analyze Base/RCTModuleMethod.mm
(1 command with analyzer issues)

The following build commands failed:

    PhaseScriptExecution Download\ Core /path/to/project/ios/build/Build/Intermediates.noindex/RealmJS.build/Debug-iphonesimulator/RealmJS.build/Script-F63FF2C51C12462600B3B8E0.sh
(1 failure)

Installing build/Build/Products/Debug-iphonesimulator/Project.app
An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2):
Failed to install the requested application
An application bundle was not found at the provided path.
Provide a valid path to the desired application bundle.
Print: Entry, ":CFBundleIdentifier", Does Not Exist

Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/Project.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist

Running:

react-native: 0.51.0
realm: 2.1.1

Reverting to version 2.0.13 fixes the issue.

All 3 comments

I'm getting the same issue. After react-native link realm I get the error below.

** BUILD FAILED **


The following commands produced analyzer issues:
    Analyze Base/RCTModuleMethod.mm
(1 command with analyzer issues)

The following build commands failed:

    PhaseScriptExecution Download\ Core /path/to/project/ios/build/Build/Intermediates.noindex/RealmJS.build/Debug-iphonesimulator/RealmJS.build/Script-F63FF2C51C12462600B3B8E0.sh
(1 failure)

Installing build/Build/Products/Debug-iphonesimulator/Project.app
An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2):
Failed to install the requested application
An application bundle was not found at the provided path.
Provide a valid path to the desired application bundle.
Print: Entry, ":CFBundleIdentifier", Does Not Exist

Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/Project.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist

Running:

react-native: 0.51.0
realm: 2.1.1

Reverting to version 2.0.13 fixes the issue.

Reverting solved that error, however after running react-native link realm, I ran into this

** BUILD FAILED **


The following build commands failed:

    CompileC build/Build/Intermediates.noindex/hail-react-native.build/Debug-iphonesimulator/hail-react-nativeTests.build/Objects-normal/x86_64/hail-react-nativeTests.o hail-react-nativeTests/hail-react-nativeTests.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)

Error message:

image

Solution

I resolved this with this comment after trying every solution under the sun.

  1. delete ios/ or android/
  2. react-native eject <-- this was what did it for me
  3. react-native-git-upgrade
  4. react-native link
  5. react-native run-ios

I have faced similar problem but solution is stop npm server and start again it.it is wok for me.

Was this page helpful?
0 / 5 - 0 ratings