You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Some build products get output to gyp/build rather than build. This is probably a historical accident or quirk of gyp. We should adjust the build to eliminate this special case output directory -- everything should go to build.
gyp is involved here, but this largely seems to be a quirk of xcodebuild -target foo versus xcodebuild -scheme foo. The former seems to set SYMROOT to $SRCROOT/build (and SRCROOT is indeed set to ./gyp by gyp), while the latter uses a directory in ~/Library/Developer/Xcode/DerivedData (the same one that builds from within Xcode use). I can't find this difference between -target and -scheme documented anywhere, and it's contrary to the output of xcodebuild -showBuildSettings, which says that SYMROOT is the ~/Library/... path in either case.
The key here seems to be that SYMROOT needs to be an absolute path. If it's a relative path, it's ignored by xcodebuild -target ..., but if it's absolute, it's respected.
In #4608 I'm setting up the ios and osx gyp files to force an absolute path.
Activity
jfirebaugh commentedon Apr 3, 2016
gyp is involved here, but this largely seems to be a quirk of
xcodebuild -target fooversusxcodebuild -scheme foo. The former seems to setSYMROOTto$SRCROOT/build(andSRCROOTis indeed set to./gypby gyp), while the latter uses a directory in~/Library/Developer/Xcode/DerivedData(the same one that builds from within Xcode use). I can't find this difference between-targetand-schemedocumented anywhere, and it's contrary to the output ofxcodebuild -showBuildSettings, which says thatSYMROOTis the~/Library/...path in either case.mikemorris commentedon Apr 4, 2016
IIRC this was a result of some refactoring I did on the Node.js bindings when we integrated them into this repository.
jfirebaugh commentedon Apr 7, 2016
The key here seems to be that
SYMROOTneeds to be an absolute path. If it's a relative path, it's ignored byxcodebuild -target ..., but if it's absolute, it's respected.In #4608 I'm setting up the ios and osx gyp files to force an absolute path.