-
Notifications
You must be signed in to change notification settings - Fork 24.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fatal error: 'UIKit/UIUserActivity.h' file not found #25492
Comments
Can you check if you have pods installed correctly? It seems to me it's the same issue as #25480 Also, it seems that you are using an old version of Xcode - can you try and update to 10.2? |
I tried to update the Xcode to 10.2 but it requires a higher macOS version. And for some reason my Mac doesn’t shows me the options to update, I’m currently in macOS 10.13: High Sierra |
Thanks man ! it's like what you said, I updated Xcode to 10.2.1, then it works |
cool :) thanks for letting me know :) |
I was facing above-mentioned issue since last 3-4 days and we can also resolve this issue without update Xcode 10.2.1 because I was facing this issue when I create RN project with 0.60.0 RN version but if I create RN Project with another downgrade version like 0.59.4 then it's started working fine. command use: react-native init project_name --version 0.59.4 |
Same problem here. v0.59 works but v0.60 does not work with Xcode 9.4.1. I cannot upgrade to Xcode 10.2.1 because I m running on a Mac mini 2011. |
I was able to resolve this without upgrading my Xcode (thank god, still using 9.3). The build terminal output showed that there were 3 packages that I had linked manually that I needed to unlink (via: After running that command for the 3 packages I had linked manually, I ran an |
OMG This needs to be on the website. A whole day of googling and this is what worked. Fixed all the rando errors react was throwing. |
Have you fixed this issue? Can anyone please tell me a solution for this? In my case, from XCode I can run the app but can not run the app from the command line ( |
I am using Xcode 10.3 and I am also facing same issue |
works for me with: react-native init project_name --version 0.59.4 |
Seriously! Thank you for this! |
im unable to update my xcode version past 9.2, is there no other way around this?? |
I have just created a project with react native version 0.60.4 and haven't done anything and if I try to run react-native run-ios it gives me this error. I am using xCode v9.3. I can not upgrade as this is the max version supported with my current mac os |
Same with macOS 10.13.6, react-native 0.61.5, Xcode 9.4 (which is a minimum supported version according to the website) |
Ok, I got it. Had issues setting-up a new project after not using React-Native for a lot of time. My system:
Had to reinstall the project in order to use the installation guide from version 0.59.0, because the installation guide from 0.61 uses approach with In other words: |
I just follow the step on the fackbook guide and try to run iOS with the awesome project
React Native version:
react-native-cli: 2.0.1
react-native: 0.60.0
Xcode version :
Version 9.4.1 (9F2000)
when I run react-native run-ios
info In file included from /Users/gonglehan/Desktop/WonderWorld/ProjectN/node_modules/react-native/Libraries/LinkingIOS/RCTLinkingManager.m:8:
/Users/gonglehan/Desktop/WonderWorld/ProjectN/node_modules/react-native/Libraries/LinkingIOS/RCTLinkingManager.h:10:9: fatal error: 'UIKit/UIUserActivity.h' file not found
#import <UIKit/UIUserActivity.h>
^~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
info
error Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65. To debug build logs further, consider building your app with Xcode.app, by opening ProjectN.xcworkspace. Run CLI with --verbose flag for more details.
** BUILD FAILED **
I tried finding this head file from xCode but I found nothing, and when I deleted the #import <UIKit/UIUserActivity.h> from the RCTLinkingManager file. It works fine, however whenever I do another npm install (for example new library or sth). The code come back, and i have to command it again.
The text was updated successfully, but these errors were encountered: