The following build commands failed:
PhaseScriptExecution Install\ Third\ Party /Users/iChep/Documents/Coding/React\ Native\ Apps/albums/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/double-conversion.build/Script-190EE32F1E6A43DE00A8543A.sh
(1 failure)
Installing build/Build/Products/Debug-iphonesimulator/albums.app
No devices are booted.
Print: Entry, ":CFBundleIdentifier", Does Not Exist
Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/albums.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist
I get this issues when trying to built my react native application. I know that this issue is a common one, but I'm trying to solve since 10 hours and I tryed nearly every solution on the Facebook Trubleshooting page and on the github issue page. I'm really frustrated and would appreciate the help.
I'm using Node: 8.1.2,
XCode: 8.3.3,
npm: 5.0.3,
react-native-cli: 2.0.1,
react-native: 0.45.1
When nothing fixes, try on Xcode
Go to File -> Project settings
Click the Advanced button
Select "Custom" and select "Relative to Workspace" in the pull down
click done, done
The reference is this issue on GitHub.
Related
I just created a new React Native app using their CLI interface and it fails without making any changes. I first noticed this when I tried to use version 0.45.1, it still seems to be happening in version 0.46.1
My current version that came with the CLI install.
"react": "16.0.0-alpha.12"
"react-native": "0.46.1"
The last time I was able to successfully run an app was back on version 0.44.3
I've tried running
watchman watch-del-all
rm -rf node_modules
rm -rf $TMPDIR/react-*
npm install
But it doesn't help. Full error message below.
CompileC /Users/brianclarke/Documents/development/ShitProject/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/third-party.build/Objects-normal/x86_64/Conv.o /Users/brianclarke/Documents/development/ShitProject/node_modules/react-native/third-party/folly-2016.09.26.00/folly/Conv.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
Installing build/Build/Products/Debug-iphonesimulator/ShitProject.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/ShitProject.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist
EDIT:
I couldn't figure it out, so I completely reinstalled my OS and everything works fine. Obviously that's not a fix, but felt it was worth sharing.
Every time I install & link the react-native-fbsdk in any react-native project, I get this following error from running react-native run-ios:
** BUILD SUCCEEDED **
The following commands produced analyzer issues:
Analyze {project-dir}/node_modules/react-native/ReactCommon/yoga/yoga/Yoga.c
Analyze {project-dir}/node_modules/react-native/ReactCommon/yoga/yoga/YGNodeList.c
(2 commands with analyzer issues)
Installing build/Build/Products/Debug-iphonesimulator/{App-Name}.app
An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=22):
Failed to install the requested application
The bundle identifier of the application could not be determined.
Ensure that the application's Info.plist contains a value for CFBundleIdentifier.
Print: Entry, ":CFBundleIdentifier", Does Not Exist
Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/{App-Name}/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist
I have followed instructions at the react-native-fbsdk README
and I have followed instructions at the IOS Getting Started Guide
Any Project I create works perfectly fine when running react-native run-ios before installing & linking the react-native-fbsdk.
Here are the following package versions I am using:
npm - 4.6.1
react-native - 0.45.1
react-native-fbsdk - 0.6.0
I was originally using react-native-fbsdk#0.6.1, but it appears that 0.6.1 may have been causing the issue so I changed it to 0.6.0.
I have attempted to create many brand new/fresh 'Hello World' projects and completely install react-native-fbsdk many times, but to no avail and I tried almost ALL of the solutions you can find by googling:
react-native CFBundleIdentifier doesn't exist,
react-native-fbsdk CFBundleIdentifier doesn't exist,
or some other variation of those 2.
Edit: I can run the app on ios via building it in xcode; however, I would like to get rid of the above error in case it might cause any future bugs during release, or with installing any new packages.
I was working through this tutorial, however when I used the react native cli to generate a new project, it would not be able to launch ( with react-native run-ios). I kept getting the above error and I've tried troubleshooting for hours, I think it might be a problem with Xcode as I recently updated it but I'm not sure. Here is the full error message:
Installing build/Build/Products/Debug-iphonesimulator/auth.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/auth.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist
If anyone has encountered this problem and fixed it please let me know what works for you! This has put me at a complete standstill and I would greatly appreciate any help. Could this be a versions issue that react native has not caught up with yet? Thanks!
There is something wrong with react-native init
Please do not initialize the project with react-native init ProjectName
You should append react-native version argument in the end.
For example:
react-native init ProjectName --version 0.44.2
If you are using XCode 10 try downgrading to XCode 9.4.1, by downloading and installing this version in official apple portal.
There might be a lot of possibilities of how to fix it, most of them are clearing npm cache, uninstalling node_modules, deleting ios and android folder and rebuilding, so you should try all of them. But downgrading XCode is what helped me after 5 hours at it
Good luck, don't be discouraged with this error, eventually you will find out the solution!
Developer menu in ios simulator will not launch with either cmd + D or cmd + ctrl + z
things i've checked (in no order) :
cmd + r works properly
myApp and myAppTests schemes are set to debug mode
Slow Animations is off
Hardware > Keyboard > Connect Hardware Keyboard is on
watchman 4.7.0 is installed with brew install watchman (--HEAD needed libtoolize, in which brew changed to glibtoolize, therefore ./autogen couldn't find it )
Cleaned out Derived Data folder
Created new scheme for target
Upgraded XCode to 8.2.1 -> 8.3.1
react-native start --clear-cache starts successfully, react-native run-ios builds successfully
Other Issues
nw_connection_get_connected_socket_block_invoke 1262 Connection has no connected handler run indefinitely
react-native run-ios outputs
Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/zelosApp.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not ExistCommand failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/zelosApp.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist
Versions
react-native = "^0.43.3"
watchman = "4.7.0"
xcode = "8.3.1"
Any tips / questions would be greatly appreciated!
This happens to me too once in a while, and I have not been able to figure out why. However, one workaround is to select Device -> Shake in the simulator menu.
Are you using cocoa pods?
I had this issue as well. I believe the issue is from React being included twice. Once from your main project, and once through the Pods workspace.
Try the fix here: https://github.com/react-native-community/react-native-svg/issues/621
Namely the post install fix on the Podfile:
post_install do |installer_representation|
installer_representation.pods_project.targets.each do |target|
if target.name == "React"
target.remove_from_project
end
end
end
Then, remove any references to the React framework like in linked frameworks in the Xcode project.
I'm able to bring the debug menu back up.
The error was with my importing react in my podfile. React Native .43 found here https://github.com/facebook/react-native/issues/10366
Search your MainApplication.java for any import ... BuildConfig. For example import androidx.multidex.BuildConfig; and REMOVE it
My team is building our first iOS app using React Native. For some reason on my Mac only, the build fails after running react-native run-ios. This has been happening since we added Facebook authentication with the react-native-fbsdk.
We are all running node -v 7.0 and the latest version of Xcode. I have even tried deleting the repo locally and cloning it back down. As an experiment, another member of my team deleted his repo locally, cloned it back down, and was able to get everything working. We sat next to each other and did the exact same steps and it worked for him but not me.
Below is the error message I receive in my terminal:
** BUILD FAILED **
The following build commands failed:
CompileC /Users/philmok/js_projects/pLot/ios/build/Build/Intermediates/RCTFBSDK.build/Debug-iphonesimulator/RCTFBSDK.build/Objects-normal/x86_64/RCTFBSDKGraphRequestManager.o RCTFBSDK/core/RCTFBSDKGraphRequestManager.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
Installing build/Build/Products/Debug-iphonesimulator/pLot.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/pLot.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist
Per the answer on this question, I have tried running react-native upgrade. This will allow the build to complete but it prevents Facebook authentication from working.
Make sure you have downloaded the FBSDK for fb login. Place it in your documents folder and then open your project in xcode. click your project in the left menu and select the build settings tab, give 'framework path' the path to your FBSDK in documents.
add
pod 'FBSDKCoreKit'
pod 'FBSDKLoginKit'
pod 'FBSDKShareKit'
to your Podfile and then pod install
Did you went through all configuration steps? Here is great introduction, step by step how to add facebook sdk to react native app: https://github.com/magus/react-native-facebook-login . Btw. I recommend to use this lib if you can, I had many problems with official facebook sdk, moved to that one, and everything works.