-
Notifications
You must be signed in to change notification settings - Fork 884
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
"unistd.h" should be <unistd.h> #5419
Comments
@eddieSullivan that tip was really great since I was spending hours debugging an issue related to this. @thisisabhash I'm patching the Pod file with is changing is a solution but having this directly added would be great |
Thank you for your message - our team will take a look and post updates. |
Hi, is there a workaround for this? like downgrading react native or AWS? |
Getting the same error after updating from rn 0.71.11 to 0.74.5. |
I'm receiving a similar error after upgrading React Native from 0.73.6 to 0.74.5. |
Thanks for the updates, we are investigating this (#5425) and will provide an update when we can. |
In my Podfile I added this to the end of my
|
The changes are released in https://github.com/aws-amplify/aws-sdk-ios/releases/tag/2.37.0 |
This issue is now closed. Comments on closed issues are hard for our team to see. |
Describe the bug
There are two Objective-C source files that
#include "unistd.h"
, however, since this is a system header, it should be#include <unistd.h>
Using the double-quotes instead of angle brackets causes the file to be searched for in a different set of directories. This means that if there is a non-system header file of the same name, that one will be included rather than the system file.
In my case, this causes a build failure in my React Native app when I upgrade to React Native version 0.74.5, because the "RCT-Folly" library has its own version of "unistd.h", which AWSCore tries to use.
The Objective-C files in question are:
AWSCore/FMDB/AWSFMResultSet.m
and:
AWSCore/FMDB/AWSFMDatabase.m
To Reproduce
Steps to reproduce the behavior:
npx @react-native-community/cli@latest init AwesomeProject --version 0.74.5
cd AwesomeProject
npm install
cd ios
pod 'AWSCore'
to the "AwesomeProject" target inAwesomeProject/ios/Podfile
pod install
xed .
and try to build the workspace in Xcode (I'm on 15.4.0)Observed Behavior
The build fails.
Expected Behavior
A successful build.
Stack Trace
Code Snippet
Unique Configuration
A React Native app
Environment(please complete the following information):
The text was updated successfully, but these errors were encountered: