apothecary icon indicating copy to clipboard operation
apothecary copied to clipboard

unable to lookup 'SDKVersion' in SDK 'iphoneos'

Open hiroMTB opened this issue 1 year ago • 2 comments

issue

I tried to compile OpenCV on my macOs local machine and got an error unable to lookup 'SDKVersion' in SDK 'iphoneos'

temporary quick solution

sudo xcode-select -s /Applications/Xcode.app/Contents/Developer

Related

https://github.com/nodejs/node-gyp/issues/569

hiroMTB avatar Jul 26 '24 14:07 hiroMTB

Nice! Yeah maybe due to Xcode 16 install?

danoli3 avatar Jul 28 '24 07:07 danoli3

Thanks @danoli3! I didn't know that there are 3 command line tools(by homebrew, terminal and xcode) installed. For those who come here in future,

  • https://mac.install.guide/commandlinetools/#:~:text=Xcode%20Command%20Line%20Tools%20are,environment%20for%20programmers%20named%20Xcode.
  • https://apple.stackexchange.com/questions/378316/how-to-delete-command-line-tools-while-keeping-xcode

hiroMTB avatar Jul 28 '24 07:07 hiroMTB