kolyvan / kxsmb

KxSMB is objective-c wrapper for libsmbclient (samba.org) lib.
BSD 2-Clause "Simplified" License
287 stars 97 forks source link

Build field : No such file or directory -- crt_externs.h #41

Open wanxy0527 opened 6 years ago

wanxy0527 commented 6 years ago

when i rake it

No such file or directory @ rb_sysopen - /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/include/crt_externs.h ~/smb_111/kxsmb/Rakefile:52:in copyIfNotExists' ~/smb_111/kxsmb/Rakefile:235:incheckExtInclude' ~/smb_111/kxsmb/Rakefile:242:in `block in <top (required)>' Tasks: TOP => default => build_all => build_smb_armv7

I do not konw how to resove this issue

cshtdd commented 4 years ago

Try resetting your XCode CLI Tools path

 sudo xcode-select -r

If that doesn't work then change the XCODE_PATH variable in the Rakefile like this

XCODE_PATH="/Applications/Xcode.app/Contents/Developer"