libimobiledevice / libplist

A library to handle Apple Property List format in binary or XML
https://libimobiledevice.org
GNU Lesser General Public License v2.1
535 stars 304 forks source link

cannot find <cstddef> file in plist/node.h Xcode #113

Closed akshay2604 closed 6 years ago

akshay2604 commented 6 years ago

I am running a react native project and found this error during build. It maybe a problem with my xcode settings but i am not sure. Any insights on why this error may come up during build? image

here is the stack trace image

aDreamCatcher commented 6 years ago

I also had the same problem.

akshay2604 commented 6 years ago

@aDreamCatcher how did you solve it?

aDreamCatcher commented 6 years ago

@akshay2604 Change the header file extension(xx.h -> xx.hh).

akshay2604 commented 6 years ago

@aDreamCatcher which file ? i tried changing node.h -> node.hh but it did not work Also tried changing main.m -> main.mm(see stack trace). did not work

akshay2604 commented 6 years ago

Hey I got it working 👍 . i changed string.h to string.hh. but since this is included change in the /usr section, it is not a permanent fix.