Lucky_girl
Lucky_girl

Reputation: 4863

An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2)

I'm getting such error, while building IOS app in React Native project:

was encountered processing the command (domain=NSPOSIXErrorDomain, code=2) Print: Entry, ":CFBundleIdentifier", Does Not Exist

I read threads in GitHub regarding that issues, however didn't find solutions there which could solve my problem. Any ideas how to fix it?

Upvotes: 12

Views: 27474

Answers (3)

Jaminj
Jaminj

Reputation: 41

In my case the Xcode build folder needed to be cleaned. To fix, in Xcode go to Product | Clean Build Folder

Upvotes: 2

Shiva
Shiva

Reputation: 12514

In my case, the cause was - The build file name was MyMob.app but the app it tries to install to the simulator was mymob.app.

I solved it by changing the line in mymob.xcscheme:46

BuildableName = "MyMob.app"
BuildableName = "mymob.app"

Log was

iinfo Installing "build/mymob/Build/Products/Debug-iphonesimulator/mymob.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.
info Launching "com.mymob.app"
error Failed to launch the app on simulator, An error was encountered processing the command (domain=FBSOpenApplicationServiceErrorDomain, code=4):
The request to open "com.mymob.app" failed.
Underlying error (domain=FBSOpenApplicationErrorDomain, code=4):
        The operation couldn't be completed. Application info provider (FBSApplicationLibrary) returned nil for "com.mymob.app"
        Application info provider (FBSApplicationLibrary) returned nil for "com.mymob.app"

Upvotes: 1

Kiran JD
Kiran JD

Reputation: 571

The cause might be that you have some build files from the previous build which are causing the problem.

Clear the ios/build/your_project to trigger a fresh build

Upvotes: 3

Related Questions