Code Monkey home page Code Monkey logo

node-xpc-connection's Introduction

node-xpc-connection

Gitter

Connection binding for node.js

Supported data types

  • int32/uint32
  • string
  • array
  • buffer
  • uuid
  • object

Example

var XpcConnection = require('xpc-connection');

var xpcConnection = new XpcConnection('<Mach service name>');

xpcConnection.on('error', function(message) {
    ...
});

xpcConnection.on('event', function(event) {
    ...
});

xpcConnection.setup();

var mesage = {
    ... 
};

xpcConnection.sendMessage(mesage);

Build Errors

Before creating a new issue for build errors, please set your path to the following:

/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin

MacPorts and other similiar tools might be adding an incompatible compiler to your PATH (see issue #2) for more details.

Analytics

node-xpc-connection's People

Contributors

dustywusty avatar francishart avatar sandeepmistry avatar wingillis avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

node-xpc-connection's Issues

Error when installing xpc-connection on OSX El Capitan

I am trying to install bleno on my Macbook pro running OSX El Capitan but it fails to install the xpc-connection module. I have tried to install xpc-connection module on its own but that fails as well. The error file is below. I did download the code from github for the xpc-connection module and built it by using "sudo node-gyp rebuild" and this successfully built it but bleno still did not start. It was complaining about not finding xpc-connection. Please help.

xcode-select -p
/Applications/Xcode.app/Contents/Developer

xcode-select -v
xcode-select version 2343.

gcc -v
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 7.3.0 (clang-703.0.29)
Target: x86_64-apple-darwin15.4.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

which gcc
/usr/bin/gcc

===== Error file ======
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node',
1 verbose cli '/usr/local/bin/npm',
1 verbose cli 'install',
1 verbose cli '-g',
1 verbose cli 'xpc-connection' ]
2 info using [email protected]
3 info using [email protected]
4 silly loadCurrentTree Starting
5 silly install loadCurrentTree
6 silly install readGlobalPackageData
7 silly fetchPackageMetaData xpc-connection
8 silly fetchNamedPackageData xpc-connection
9 silly mapToRegistry name xpc-connection
10 silly mapToRegistry using default registry
11 silly mapToRegistry registry https://registry.npmjs.org/
12 silly mapToRegistry data Result {
12 silly mapToRegistry raw: 'xpc-connection',
12 silly mapToRegistry scope: null,
12 silly mapToRegistry name: 'xpc-connection',
12 silly mapToRegistry rawSpec: '',
12 silly mapToRegistry spec: 'latest',
12 silly mapToRegistry type: 'tag' }
13 silly mapToRegistry uri https://registry.npmjs.org/xpc-connection
14 verbose request uri https://registry.npmjs.org/xpc-connection
15 verbose request no auth needed
16 info attempt registry request try #1 at 6:43:27 PM
17 verbose request id 652a4722b6edee04
18 verbose etag "D7L5PUPWDQU3I72FED6TBUILY"
19 http request GET https://registry.npmjs.org/xpc-connection
20 http 304 https://registry.npmjs.org/xpc-connection
21 verbose headers { date: 'Tue, 05 Apr 2016 00:43:28 GMT',
21 verbose headers via: '1.1 varnish',
21 verbose headers 'cache-control': 'max-age=300',
21 verbose headers etag: '"D7L5PUPWDQU3I72FED6TBUILY"',
21 verbose headers age: '0',
21 verbose headers connection: 'keep-alive',
21 verbose headers 'x-served-by': 'cache-sjc3125-SJC',
21 verbose headers 'x-cache': 'MISS',
21 verbose headers 'x-cache-hits': '0',
21 verbose headers 'x-timer': 'S1459817008.066305,VS0,VE91',
21 verbose headers vary: 'Accept' }
22 silly get cb [ 304,
22 silly get { date: 'Tue, 05 Apr 2016 00:43:28 GMT',
22 silly get via: '1.1 varnish',
22 silly get 'cache-control': 'max-age=300',
22 silly get etag: '"D7L5PUPWDQU3I72FED6TBUILY"',
22 silly get age: '0',
22 silly get connection: 'keep-alive',
22 silly get 'x-served-by': 'cache-sjc3125-SJC',
22 silly get 'x-cache': 'MISS',
22 silly get 'x-cache-hits': '0',
22 silly get 'x-timer': 'S1459817008.066305,VS0,VE91',
22 silly get vary: 'Accept' } ]
23 verbose etag https://registry.npmjs.org/xpc-connection from cache
24 verbose get saving xpc-connection to /Users/karim/.npm/registry.npmjs.org/xpc-connection/.cache.json
25 verbose correctMkdir /Users/karim/.npm correctMkdir not in flight; initializing
26 silly install normalizeTree
27 silly loadCurrentTree Finishing
28 silly loadIdealTree Starting
29 silly install loadIdealTree
30 silly cloneCurrentTree Starting
31 silly install cloneCurrentTreeToIdealTree
32 silly cloneCurrentTree Finishing
33 silly loadShrinkwrap Starting
34 silly install loadShrinkwrap
35 silly loadShrinkwrap Finishing
36 silly loadAllDepsIntoIdealTree Starting
37 silly install loadAllDepsIntoIdealTree
38 silly resolveWithNewModule [email protected] checking installable status
39 silly cache add args [ 'xpc-connection', null ]
40 verbose cache add spec xpc-connection
41 silly cache add parsed spec Result {
41 silly cache add raw: 'xpc-connection',
41 silly cache add scope: null,
41 silly cache add name: 'xpc-connection',
41 silly cache add scope: null,
41 silly cache add name: 'xpc-connection',
41 silly cache add rawSpec: '',
41 silly cache add spec: 'latest',
41 silly cache add type: 'tag' }
42 silly addNamed xpc-connection@latest
43 verbose addNamed "latest" is being treated as a dist-tag for xpc-connection
44 info addNameTag [ 'xpc-connection', 'latest' ]
45 silly mapToRegistry name xpc-connection
46 silly mapToRegistry using default registry
47 silly mapToRegistry registry https://registry.npmjs.org/
48 silly mapToRegistry data Result {
48 silly mapToRegistry raw: 'xpc-connection',
48 silly mapToRegistry scope: null,
48 silly mapToRegistry name: 'xpc-connection',
48 silly mapToRegistry rawSpec: '',
48 silly mapToRegistry spec: 'latest',
48 silly mapToRegistry type: 'tag' }
49 silly mapToRegistry uri https://registry.npmjs.org/xpc-connection
50 verbose addNameTag registry:https://registry.npmjs.org/xpc-connection not in flight; fetching
51 verbose get https://registry.npmjs.org/xpc-connection not expired, no request
52 silly addNameTag next cb for xpc-connection with tag latest
53 silly addNamed [email protected]
54 verbose addNamed "0.1.4" is a plain semver version for xpc-connection
55 silly cache afterAdd [email protected]
56 verbose afterAdd /Users/karim/.npm/xpc-connection/0.1.4/package/package.json not in flight; writing
57 verbose correctMkdir /Users/karim/.npm correctMkdir not in flight; initializing
58 verbose afterAdd /Users/karim/.npm/xpc-connection/0.1.4/package/package.json written
59 silly fetchNamedPackageData nan
60 silly mapToRegistry name nan
61 silly mapToRegistry using default registry
62 silly mapToRegistry registry https://registry.npmjs.org/
63 silly mapToRegistry data Result {
63 silly mapToRegistry raw: 'nan',
63 silly mapToRegistry scope: null,
63 silly mapToRegistry name: 'nan',
63 silly mapToRegistry rawSpec: '',
63 silly mapToRegistry spec: 'latest',
63 silly mapToRegistry type: 'tag' }
64 silly mapToRegistry uri https://registry.npmjs.org/nan
65 verbose request uri https://registry.npmjs.org/nan
66 verbose request no auth needed
67 info attempt registry request try #1 at 6:43:28 PM
68 verbose etag "2UZKQOUIL0TMX4WY7FZ5Q5HJQ"
69 http request GET https://registry.npmjs.org/nan
70 http 304 https://registry.npmjs.org/nan
71 verbose headers { date: 'Tue, 05 Apr 2016 00:43:28 GMT',
71 verbose headers via: '1.1 varnish',
71 verbose headers 'cache-control': 'max-age=300',
71 verbose headers etag: '"2UZKQOUIL0TMX4WY7FZ5Q5HJQ"',
71 verbose headers age: '110',
71 verbose headers connection: 'keep-alive',
71 verbose headers 'x-served-by': 'cache-sjc3125-SJC',
71 verbose headers 'x-cache': 'HIT',
71 verbose headers 'x-cache-hits': '5',
71 verbose headers 'x-timer': 'S1459817008.317294,VS0,VE0',
71 verbose headers vary: 'Accept' }
72 silly get cb [ 304,
72 silly get { date: 'Tue, 05 Apr 2016 00:43:28 GMT',
72 silly get via: '1.1 varnish',
72 silly get 'cache-control': 'max-age=300',
72 silly get etag: '"2UZKQOUIL0TMX4WY7FZ5Q5HJQ"',
72 silly get age: '110',
72 silly get connection: 'keep-alive',
72 silly get 'x-served-by': 'cache-sjc3125-SJC',
72 silly get 'x-cache': 'HIT',
72 silly get 'x-cache-hits': '5',
72 silly get 'x-timer': 'S1459817008.317294,VS0,VE0',
72 silly get vary: 'Accept' } ]
73 verbose etag https://registry.npmjs.org/nan from cache
74 verbose get saving nan to /Users/karim/.npm/registry.npmjs.org/nan/.cache.json
75 verbose correctMkdir /Users/karim/.npm correctMkdir not in flight; initializing
76 silly resolveWithNewModule [email protected] checking installable status
77 silly cache add args [ 'nan@^2.0.5', null ]
78 verbose cache add spec nan@^2.0.5
79 silly cache add parsed spec Result {
78 verbose cache add spec nan@^2.0.5
79 silly cache add parsed spec Result {
79 silly cache add raw: 'nan@^2.0.5',
79 silly cache add scope: null,
79 silly cache add name: 'nan',
79 silly cache add rawSpec: '^2.0.5',
79 silly cache add spec: '>=2.0.5 <3.0.0',
79 silly cache add type: 'range' }
80 silly addNamed nan@>=2.0.5 <3.0.0
81 verbose addNamed ">=2.0.5 <3.0.0" is a valid semver range for nan
82 silly addNameRange { name: 'nan', range: '>=2.0.5 <3.0.0', hasData: false }
83 silly mapToRegistry name nan
84 silly mapToRegistry using default registry
85 silly mapToRegistry registry https://registry.npmjs.org/
86 silly mapToRegistry data Result {
86 silly mapToRegistry raw: 'nan',
86 silly mapToRegistry scope: null,
86 silly mapToRegistry name: 'nan',
86 silly mapToRegistry rawSpec: '',
86 silly mapToRegistry spec: 'latest',
86 silly mapToRegistry type: 'tag' }
87 silly mapToRegistry uri https://registry.npmjs.org/nan
88 verbose addNameRange registry:https://registry.npmjs.org/nan not in flight; fetching
89 verbose get https://registry.npmjs.org/nan not expired, no request
90 silly addNameRange number 2 { name: 'nan', range: '>=2.0.5 <3.0.0', hasData: true }
91 silly addNameRange versions [ 'nan',
91 silly addNameRange [ '0.3.0-wip',
91 silly addNameRange '0.3.0-wip2',
91 silly addNameRange '0.3.0',
91 silly addNameRange '0.3.1',
91 silly addNameRange '0.3.2',
91 silly addNameRange '0.4.0',
91 silly addNameRange '0.4.1',
91 silly addNameRange '0.4.2',
91 silly addNameRange '0.4.3',
91 silly addNameRange '0.4.4',
91 silly addNameRange '0.5.0',
91 silly addNameRange '0.5.1',
91 silly addNameRange '0.5.2',
91 silly addNameRange '0.6.0',
91 silly addNameRange '0.7.0',
91 silly addNameRange '0.7.1',
91 silly addNameRange '0.8.0',
91 silly addNameRange '1.0.0',
91 silly addNameRange '1.1.0',
91 silly addNameRange '1.1.1',
91 silly addNameRange '1.1.2',
91 silly addNameRange '1.2.0',
91 silly addNameRange '1.3.0',
91 silly addNameRange '1.4.0',
91 silly addNameRange '1.4.1',
91 silly addNameRange '1.5.0',
91 silly addNameRange '1.4.2',
91 silly addNameRange '1.4.3',
91 silly addNameRange '1.5.1',
91 silly addNameRange '1.5.2',
91 silly addNameRange '1.6.0',
91 silly addNameRange '1.5.3',
91 silly addNameRange '1.6.1',
91 silly addNameRange '1.6.2',
91 silly addNameRange '1.7.0',
91 silly addNameRange '1.8.0',
91 silly addNameRange '1.8.1',
91 silly addNameRange '1.8.2',
91 silly addNameRange '1.8.3',
91 silly addNameRange '1.8.4',
91 silly addNameRange '1.9.0',
91 silly addNameRange '2.0.0',
91 silly addNameRange '2.0.1',
91 silly addNameRange '2.0.2',
91 silly addNameRange '2.0.3',
91 silly addNameRange '2.0.4',
91 silly addNameRange '2.0.5',
91 silly addNameRange '2.0.6',
91 silly addNameRange '2.0.7',
91 silly addNameRange '2.0.8',
91 silly addNameRange '2.0.7',
91 silly addNameRange '2.0.8',
91 silly addNameRange '2.0.9',
91 silly addNameRange '2.1.0',
91 silly addNameRange '2.2.0',
91 silly addNameRange '2.2.1' ] ]
92 silly addNamed [email protected]
93 verbose addNamed "2.2.1" is a plain semver version for nan
94 silly cache afterAdd [email protected]
95 verbose afterAdd /Users/karim/.npm/nan/2.2.1/package/package.json not in flight; writing
96 verbose correctMkdir /Users/karim/.npm correctMkdir not in flight; initializing
97 verbose afterAdd /Users/karim/.npm/nan/2.2.1/package/package.json written
98 silly loadAllDepsIntoIdealTree Finishing
99 silly idealTree:prePrune lib
99 silly idealTree:prePrune └─┬ [email protected]
99 silly idealTree:prePrune └── [email protected]
100 silly loadIdealTree Finishing
101 silly currentTree lib
102 silly idealTree lib
102 silly idealTree └─┬ [email protected]
102 silly idealTree └── [email protected]
103 silly generateActionsToTake Starting
104 silly install generateActionsToTake
105 silly generateActionsToTake Finishing
106 silly diffTrees action count 2
107 silly diffTrees add [email protected]
108 silly diffTrees add [email protected]
109 silly decomposeActions action count 16
110 silly decomposeActions fetch [email protected]
111 silly decomposeActions extract [email protected]
112 silly decomposeActions test [email protected]
113 silly decomposeActions preinstall [email protected]
114 silly decomposeActions build [email protected]
115 silly decomposeActions install [email protected]
116 silly decomposeActions postinstall [email protected]
117 silly decomposeActions finalize [email protected]
118 silly decomposeActions fetch [email protected]
119 silly decomposeActions extract [email protected]
120 silly decomposeActions test [email protected]
121 silly decomposeActions preinstall [email protected]
122 silly decomposeActions build [email protected]
123 silly decomposeActions install [email protected]
124 silly decomposeActions postinstall [email protected]
125 silly decomposeActions finalize [email protected]
126 silly executeActions Starting
127 silly install executeActions
128 silly doSerial global-install 0
129 silly doParallel fetch 2
130 verbose correctMkdir /Users/karim/.npm/_locks correctMkdir not in flight; initializing
131 verbose lock using /Users/karim/.npm/_locks/staging-3a08f0df5026584d.lock for /usr/local/lib/node_modules/.staging
132 silly doParallel extract 2
133 silly extract [email protected]
134 silly extract [email protected]
135 verbose unbuild lib/node_modules/.staging/nan-8282166e
136 verbose unbuild lib/node_modules/.staging/xpc-connection-92a38890
137 silly gentlyRm /usr/local/lib/node_modules/.staging/nan-8282166e is being purged from base /usr/local
138 verbose gentlyRm don't care about contents; nuking /usr/local/lib/node_modules/.staging/nan-8282166e
139 verbose tar unpack /Users/karim/.npm/nan/2.2.1/package.tgz
140 verbose tar unpacking to /usr/local/lib/node_modules/.staging/nan-8282166e
141 silly gentlyRm /usr/local/lib/node_modules/.staging/nan-8282166e is being purged
142 verbose gentlyRm don't care about contents; nuking /usr/local/lib/node_modules/.staging/nan-8282166e
143 silly gentlyRm /usr/local/lib/node_modules/.staging/xpc-connection-92a38890 is being purged from base /usr/local
144 verbose gentlyRm don't care about contents; nuking /usr/local/lib/node_modules/.staging/xpc-connection-92a38890
145 silly gunzTarPerm modes [ '755', '644' ]
146 verbose tar unpack /Users/karim/.npm/xpc-connection/0.1.4/package.tgz
147 verbose tar unpacking to /usr/local/lib/node_modules/.staging/xpc-connection-92a38890
148 silly gentlyRm /usr/local/lib/node_modules/.staging/xpc-connection-92a38890 is being purged
149 verbose gentlyRm don't care about contents; nuking /usr/local/lib/node_modules/.staging/xpc-connection-92a38890
150 silly gunzTarPerm modes [ '755', '644' ]
151 silly gunzTarPerm extractEntry package.json
152 silly gunzTarPerm modified mode [ 'package.json', 436, 420 ]
153 silly gunzTarPerm extractEntry package.json
154 silly gunzTarPerm extractEntry include_dirs.js
155 silly gunzTarPerm modified mode [ 'include_dirs.js', 436, 420 ]
156 silly gunzTarPerm extractEntry nan_converters.h
157 silly gunzTarPerm modified mode [ 'nan_converters.h', 436, 420 ]
156 silly gunzTarPerm extractEntry nan_converters.h
157 silly gunzTarPerm modified mode [ 'nan_converters.h', 436, 420 ]
158 silly gunzTarPerm extractEntry .npmignore
159 silly gunzTarPerm extractEntry README.md
160 silly gunzTarPerm extractEntry LICENSE.md
161 silly gunzTarPerm modified mode [ 'LICENSE.md', 436, 420 ]
162 silly gunzTarPerm extractEntry .dntrc
163 silly gunzTarPerm modified mode [ '.dntrc', 436, 420 ]
164 silly gunzTarPerm extractEntry LICENSE
165 silly gunzTarPerm extractEntry index.js
166 silly gunzTarPerm extractEntry appveyor.yml
167 silly gunzTarPerm modified mode [ 'appveyor.yml', 436, 420 ]
168 silly gunzTarPerm extractEntry doc/new.md
169 silly gunzTarPerm modified mode [ 'doc/new.md', 436, 420 ]
170 silly gunzTarPerm extractEntry test.js
171 silly gunzTarPerm extractEntry binding.gyp
172 silly gunzTarPerm extractEntry doc/.build.sh
173 silly gunzTarPerm modified mode [ 'doc/.build.sh', 509, 493 ]
174 silly gunzTarPerm extractEntry src/XpcConnection.cpp
175 silly gunzTarPerm extractEntry src/XpcConnection.h
176 silly gunzTarPerm extractEntry doc/buffers.md
177 silly gunzTarPerm modified mode [ 'doc/buffers.md', 436, 420 ]
178 silly gunzTarPerm extractEntry doc/callback.md
179 silly gunzTarPerm modified mode [ 'doc/callback.md', 436, 420 ]
180 silly gunzTarPerm extractEntry doc/converters.md
181 silly gunzTarPerm modified mode [ 'doc/converters.md', 436, 420 ]
182 silly gunzTarPerm extractEntry doc/errors.md
183 silly gunzTarPerm modified mode [ 'doc/errors.md', 436, 420 ]
184 silly gunzTarPerm extractEntry doc/maybe_types.md
185 silly gunzTarPerm modified mode [ 'doc/maybe_types.md', 436, 420 ]
186 silly gunzTarPerm extractEntry doc/methods.md
187 silly gunzTarPerm modified mode [ 'doc/methods.md', 436, 420 ]
188 silly gunzTarPerm extractEntry doc/asyncworker.md
189 silly gunzTarPerm modified mode [ 'doc/asyncworker.md', 436, 420 ]
190 silly gunzTarPerm extractEntry doc/node_misc.md
191 silly gunzTarPerm modified mode [ 'doc/node_misc.md', 436, 420 ]
192 silly gunzTarPerm extractEntry doc/object_wrappers.md
193 silly gunzTarPerm modified mode [ 'doc/object_wrappers.md', 436, 420 ]
194 silly gunzTarPerm extractEntry doc/persistent.md
195 silly gunzTarPerm modified mode [ 'doc/persistent.md', 436, 420 ]
196 silly gunzTarPerm extractEntry doc/scopes.md
197 silly gunzTarPerm modified mode [ 'doc/scopes.md', 436, 420 ]
198 silly gunzTarPerm extractEntry doc/script.md
199 silly gunzTarPerm modified mode [ 'doc/script.md', 436, 420 ]
200 silly gunzTarPerm extractEntry doc/string_bytes.md
201 silly gunzTarPerm modified mode [ 'doc/string_bytes.md', 436, 420 ]
202 silly gunzTarPerm extractEntry doc/v8_internals.md
203 silly gunzTarPerm modified mode [ 'doc/v8_internals.md', 436, 420 ]
204 silly gentlyRm /usr/local/lib/node_modules/.staging/xpc-connection-92a38890/node_modules is being purged
205 verbose gentlyRm don't care about contents; nuking /usr/local/lib/node_modules/.staging/xpc-connection-92a38890/node_modules
206 silly gunzTarPerm extractEntry doc/v8_misc.md
207 silly gunzTarPerm modified mode [ 'doc/v8_misc.md', 436, 420 ]
208 silly gunzTarPerm extractEntry nan.h
209 silly gunzTarPerm modified mode [ 'nan.h', 436, 420 ]
210 silly gunzTarPerm extractEntry nan_callbacks.h
211 silly gunzTarPerm modified mode [ 'nan_callbacks.h', 436, 420 ]
212 silly gunzTarPerm extractEntry nan_callbacks_12_inl.h
213 silly gunzTarPerm modified mode [ 'nan_callbacks_12_inl.h', 436, 420 ]
214 silly gunzTarPerm extractEntry nan_callbacks_pre_12_inl.h
215 silly gunzTarPerm modified mode [ 'nan_callbacks_pre_12_inl.h', 436, 420 ]
216 silly gunzTarPerm extractEntry nan_converters_43_inl.h
217 silly gunzTarPerm modified mode [ 'nan_converters_43_inl.h', 436, 420 ]
218 silly gunzTarPerm extractEntry nan_converters_pre_43_inl.h
219 silly gunzTarPerm modified mode [ 'nan_converters_pre_43_inl.h', 436, 420 ]
220 silly gunzTarPerm extractEntry nan_implementation_12_inl.h
221 silly gunzTarPerm modified mode [ 'nan_implementation_12_inl.h', 436, 420 ]
222 silly gunzTarPerm extractEntry nan_implementation_pre_12_inl.h
223 silly gunzTarPerm modified mode [ 'nan_implementation_pre_12_inl.h', 436, 420 ]
224 silly gunzTarPerm extractEntry nan_maybe_43_inl.h
225 silly gunzTarPerm modified mode [ 'nan_maybe_43_inl.h', 436, 420 ]
226 silly gunzTarPerm extractEntry nan_maybe_pre_43_inl.h
227 silly gunzTarPerm modified mode [ 'nan_maybe_pre_43_inl.h', 436, 420 ]
228 silly gunzTarPerm extractEntry nan_new.h
229 silly gunzTarPerm modified mode [ 'nan_new.h', 436, 420 ]
230 silly gunzTarPerm extractEntry nan_object_wrap.h
231 silly gunzTarPerm modified mode [ 'nan_object_wrap.h', 436, 420 ]
230 silly gunzTarPerm extractEntry nan_object_wrap.h
231 silly gunzTarPerm modified mode [ 'nan_object_wrap.h', 436, 420 ]
232 silly gunzTarPerm extractEntry nan_persistent_12_inl.h
233 silly gunzTarPerm modified mode [ 'nan_persistent_12_inl.h', 436, 420 ]
234 silly gunzTarPerm extractEntry nan_persistent_pre_12_inl.h
235 silly gunzTarPerm modified mode [ 'nan_persistent_pre_12_inl.h', 436, 420 ]
236 silly gunzTarPerm extractEntry nan_string_bytes.h
237 silly gunzTarPerm modified mode [ 'nan_string_bytes.h', 436, 420 ]
238 silly gunzTarPerm extractEntry nan_typedarray_contents.h
239 silly gunzTarPerm modified mode [ 'nan_typedarray_contents.h', 436, 420 ]
240 silly gunzTarPerm extractEntry nan_weak.h
241 silly gunzTarPerm modified mode [ 'nan_weak.h', 436, 420 ]
242 silly gunzTarPerm extractEntry CHANGELOG.md
243 silly gunzTarPerm modified mode [ 'CHANGELOG.md', 436, 420 ]
244 silly gunzTarPerm extractEntry tools/package.json
245 silly gunzTarPerm modified mode [ 'tools/package.json', 436, 420 ]
246 silly gunzTarPerm extractEntry tools/README.md
247 silly gunzTarPerm modified mode [ 'tools/README.md', 436, 420 ]
248 silly gunzTarPerm extractEntry tools/1to2.js
249 silly gunzTarPerm modified mode [ 'tools/1to2.js', 509, 493 ]
250 silly gentlyRm /usr/local/lib/node_modules/.staging/nan-8282166e/node_modules is being purged
251 verbose gentlyRm don't care about contents; nuking /usr/local/lib/node_modules/.staging/nan-8282166e/node_modules
252 silly doParallel preinstall 2
253 silly preinstall [email protected] /usr/local/lib/node_modules/.staging/nan-8282166e
254 info lifecycle [email protected]preinstall: [email protected]
255 silly preinstall [email protected] /usr/local/lib/node_modules/.staging/xpc-connection-92a38890
256 info lifecycle [email protected]
preinstall: [email protected]
257 silly lifecycle [email protected]preinstall: no script for preinstall, continuing
258 silly lifecycle [email protected]
preinstall: no script for preinstall, continuing
259 silly doReverseSerial remove 0
260 silly doSerial move 0
261 silly doSerial finalize 2
262 silly finalize /usr/local/lib/node_modules/xpc-connection/node_modules/nan
263 silly finalize /usr/local/lib/node_modules/xpc-connection
264 silly doSerial build 2
265 silly build [email protected]
266 info linkStuff [email protected]
267 silly linkStuff [email protected] has /usr/local/lib/node_modules/xpc-connection/node_modules as its parent node_modules
268 silly linkStuff [email protected] is part of a global install
269 silly linkStuff [email protected] is installed into a global node_modules
270 verbose linkBins [email protected]
271 verbose linkMans [email protected]
272 silly build [email protected]
273 info linkStuff [email protected]
274 silly linkStuff [email protected] has /usr/local/lib/node_modules as its parent node_modules
275 silly linkStuff [email protected] is part of a global install
276 silly linkStuff [email protected] is installed into a global node_modules
277 silly linkStuff [email protected] is installed into the top-level global node_modules
278 verbose linkBins [email protected]
279 verbose linkMans [email protected]
280 silly doSerial global-link 0
281 silly doParallel update-linked 0
282 silly doSerial install 2
283 silly install [email protected] /usr/local/lib/node_modules/.staging/nan-8282166e
284 info lifecycle [email protected]install: [email protected]
285 silly lifecycle [email protected]
install: no script for install, continuing
286 silly install [email protected] /usr/local/lib/node_modules/.staging/xpc-connection-92a38890
287 info lifecycle [email protected]install: [email protected]
288 verbose lifecycle [email protected]
install: unsafe-perm in lifecycle false
289 verbose lifecycle [email protected]install: PATH: /usr/local/lib/node_modules/npm/bin/node-gyp-bin:/usr/local/lib/node_m$
290 verbose lifecycle [email protected]
install: CWD: /usr/local/lib/node_modules/xpc-connection
291 silly lifecycle [email protected]install: Args: [ '-c', 'node-gyp rebuild' ]
292 info lifecycle [email protected]
install: Failed to exec install script
293 verbose unlock done using /Users/karim/.npm/_locks/staging-3a08f0df5026584d.lock for /usr/local/lib/node_modules/.staging
294 silly rollbackFailedOptional Starting
295 silly rollbackFailedOptional Finishing
296 silly runTopLevelLifecycles Starting
297 silly runTopLevelLifecycles Finishing
298 silly install printInstalled
299 verbose stack Error: [email protected] install: node-gyp rebuild
299 verbose stack spawn ENOENT
299 verbose stack at ChildProcess. (/usr/local/lib/node_modules/npm/lib/utils/spawn.js:17:16)
299 verbose stack at emitTwo (events.js:100:13)
299 verbose stack at ChildProcess.emit (events.js:185:7)
299 verbose stack at maybeClose (internal/child_process.js:850:16)
299 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:5)299 verbose stack at maybeClose (internal/child_process.js:850:16)
299 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:5)
300 verbose pkgid [email protected]
301 verbose cwd /Users/karim/NodeProjects/SmartPillBox
302 error Darwin 15.4.0
303 error argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "xpc-connection"
304 error node v5.10.0
305 error npm v3.8.3
306 error file sh
307 error code ELIFECYCLE
308 error errno ENOENT
309 error syscall spawn
310 error [email protected] install: node-gyp rebuild
310 error spawn ENOENT
311 error Failed at the [email protected] install script 'node-gyp rebuild'.
311 error Make sure you have the latest version of node.js and npm installed.
311 error If you do, this is most likely a problem with the xpc-connection package,
311 error not with npm itself.
311 error Tell the author that this fails on your system:
311 error node-gyp rebuild
311 error You can get information on how to open an issue for this project with:
311 error npm bugs xpc-connection
311 error Or if that isn't available, you can get their info via:
311 error npm owner ls xpc-connection
311 error There is likely additional logging output above.
312 verbose exit [ 1, true ]

Failed install on Mac

Getting the following error on install

npm install xpc-connection
npm WARN package.json [email protected] No description
npm WARN package.json [email protected] No repository field.
npm http GET https://registry.npmjs.org/xpc-connection
npm http 200 https://registry.npmjs.org/xpc-connection
npm http GET https://registry.npmjs.org/xpc-connection/-/xpc-connection-0.0.3.tgz
npm http 200 https://registry.npmjs.org/xpc-connection/-/xpc-connection-0.0.3.tgz

> [email protected] install /Users/facultymatt/Sites/labs/bluetooth/node_modules/xpc-connection
> node-gyp rebuild

make: Entering directory `/Users/facultymatt/Sites/labs/bluetooth/node_modules/xpc-connection/build'
  CXX(target) Release/obj.target/binding/src/XpcConnection.o
In file included from /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:161,
                 from ../src/XpcConnection.cpp:1:
/System/Library/Frameworks/Foundation.framework/Headers/NSUserNotification.h:16: error: expected `}' before '__attribute__'
/System/Library/Frameworks/Foundation.framework/Headers/NSUserNotification.h:16: error: expected unqualified-id before '=' token
/System/Library/Frameworks/Foundation.framework/Headers/NSUserNotification.h:17: error: expected declaration before '}' token
make: *** [Release/obj.target/binding/src/XpcConnection.o] Error 1
make: Leaving directory `/Users/facultymatt/Sites/labs/bluetooth/node_modules/xpc-connection/build'
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:807:12)
gyp ERR! System Darwin 13.1.0
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/facultymatt/Sites/labs/bluetooth/node_modules/xpc-connection
gyp ERR! node -v v0.10.28
gyp ERR! node-gyp -v v0.13.0
gyp ERR! not ok 
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] install script.
npm ERR! This is most likely a problem with the xpc-connection package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get their info via:
npm ERR!     npm owner ls xpc-connection
npm ERR! There is likely additional logging output above.

npm ERR! System Darwin 13.1.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "xpc-connection"
npm ERR! cwd /Users/facultymatt/Sites/labs/bluetooth
npm ERR! node -v v0.10.28
npm ERR! npm -v 1.4.9
npm ERR! code ELIFECYCLE
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /Users/facultymatt/Sites/labs/bluetooth/npm-debug.log
npm ERR! not ok code 0

Originally reported as error at noble/noble#75 but tracked to this package.

Installation issue on Darwin 13.0.0

Hi,

I am trying to install node-xpc-connection on a MacBook Air with the last Mac OS X: Darwin 13.0.0.

This is the result of the command uname -a:

13.0.0 Darwin Kernel Version 13.0.0: Thu Sep 19 22:22:27 PDT 2013; root:xnu-2422.1.72~6/RELEASE_X86_64 x86_64

I have the following response with the sudo npm install xpc-connection -g:

sh-3.2# sudo npm install xpc-connection -g
npm http GET https://registry.npmjs.org/xpc-connection
npm http 200 https://registry.npmjs.org/xpc-connection
npm http GET https://registry.npmjs.org/xpc-connection/-/xpc-connection-0.0.3.tgz
npm http 200 https://registry.npmjs.org/xpc-connection/-/xpc-connection-0.0.3.tgz

> [email protected] install /usr/local/lib/node_modules/xpc-connection
> node-gyp rebuild

  CXX(target) Release/obj.target/binding/src/XpcConnection.o
  SOLINK_MODULE(target) Release/binding.node
  SOLINK_MODULE(target) Release/binding.node: Finished
[email protected] /usr/local/lib/node_modules/xpc-connection

But at the end, when I try to install your other node project noble, it failed to install xpc-connection.
Were you aware of this? Do you have any solution?

Thanks in advance,
Regards

xpc-connection refuses to install

Hello.

I have attempted to install xpc connection but my Mac refuses to install it. I have changed the directory, followed instructions in issue #2 with nothing changed.

Below is what I have.

$ xcode-select -p
/Applications/Xcode.app/Contents/Developer

$ xcode-select -v
xcode-select version 2354.

$ gcc -v
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/c++/4.2.1
Apple LLVM version 10.0.1 (clang-1001.0.46.3)
Target: x86_64-apple-darwin18.2.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

$ which gcc
/usr/bin/gcc

$ sudo npm i -g xpc-connection

[email protected] install /Users/ernest/.npm-global/lib/node_modules/xpc-connection
node-gyp rebuild

gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir '/Users/ernest/.npm-global/lib/node_modules/xpc-connection/build'
gyp ERR! System Darwin 18.2.0
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/ernest/.npm-global/lib/node_modules/xpc-connection
gyp ERR! node -v v11.13.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/ernest/.npm/_logs/2019-04-01T13_20_38_392Z-debug.log

npm install compiler errors

when I try to install I get a ton of compiler errors:

npm install xpc-connection

[email protected] install /Users/daveharmon/dev/amulet-dev/companion/bleno/node_modules/xpc-connection
node-gyp rebuild

CXX(target) Release/obj.target/binding/src/XpcConnection.o
In file included from ../src/XpcConnection.cpp:1:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/queue:169:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/deque:158:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__split_buffer:7:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/algorithm:626:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cstring:79:9: error: no member named 'strcoll' in the global namespace
using ::strcoll;
~~^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cstring:80:9: error: no member named 'strxfrm' in the global namespace
using ::strxfrm;
~~^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cstring:109:9: error: no member named 'strerror' in the global namespace
using ::strerror;
~~^
In file included from ../src/XpcConnection.cpp:1:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/queue:169:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/deque:158:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__split_buffer:7:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/algorithm:628:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:606:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/iterator:346:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/iosfwd:90:
In file included from /usr/include/wchar.h:70:
/usr/include/_types.h:42:9: error: unknown type name '__uint32_t'
typedef __uint32_t __darwin_wctype_t;
^
In file included from ../src/XpcConnection.cpp:1:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/queue:169:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/deque:158:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__split_buffer:7:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/algorithm:628:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:606:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/iterator:346:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/iosfwd:90:
In file included from /usr/include/wchar.h:76:
/usr/include/sys/_types/_mbstate_t.h:31:9: error: unknown type name '__darwin_mbstate_t'; did you mean '__darwin_wctrans_t'?
typedef __darwin_mbstate_t mbstate_t;
^
/usr/include/_types.h:40:14: note: '__darwin_wctrans_t' declared here
typedef int __darwin_wctrans_t;
^
In file included from ../src/XpcConnection.cpp:1:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/queue:169:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/deque:158:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__split_buffer:7:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/algorithm:628:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:606:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/iterator:346:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/iosfwd:90:
In file included from /usr/include/wchar.h:77:
/usr/include/sys/_types/_ct_rune_t.h:31:9: error: unknown type name '__darwin_ct_rune_t'; did you mean '__darwin_wctrans_t'?
typedef __darwin_ct_rune_t ct_rune_t;
^
/usr/include/_types.h:40:14: note: '__darwin_wctrans_t' declared here
typedef int __darwin_wctrans_t;
^
In file included from ../src/XpcConnection.cpp:1:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/queue:169:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/deque:158:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__split_buffer:7:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/algorithm:628:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:606:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/iterator:346:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/iosfwd:90:
In file included from /usr/include/wchar.h:78:
/usr/include/sys/_types/_rune_t.h:30:9: error: unknown type name '__darwin_rune_t'; did you mean '__darwin_wctrans_t'?
typedef __darwin_rune_t rune_t;
^
/usr/include/_types.h:40:14: note: '__darwin_wctrans_t' declared here
typedef int __darwin_wctrans_t;
^
In file included from ../src/XpcConnection.cpp:1:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/queue:169:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/deque:158:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__split_buffer:7:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/algorithm:628:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:606:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/iterator:346:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/iosfwd:90:
In file included from /usr/include/wchar.h:92:
In file included from /usr/include/_wctype.h:45:
/usr/include/sys/_types/_wint_t.h:31:9: error: unknown type name '__darwin_wint_t'; did you mean '__darwin_wctrans_t'?
typedef __darwin_wint_t wint_t;
^
/usr/include/_types.h:40:14: note: '__darwin_wctrans_t' declared here
typedef int __darwin_wctrans_t;
^
In file included from ../src/XpcConnection.cpp:1:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/queue:169:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/deque:158:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__split_buffer:7:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/algorithm:628:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:606:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/iterator:346:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/iosfwd:90:
In file included from /usr/include/wchar.h:92:
/usr/include/_wctype.h:65:1: error: unknown type name '__header_inline'
__DARWIN_WCTYPE_TOP_inline int
^
/usr/include/_wctype.h:54:36: note: expanded from macro '__DARWIN_WCTYPE_TOP_inline'
#define __DARWIN_WCTYPE_TOP_inline __header_inline
^
/usr/include/_wctype.h:65:28: error: expected unqualified-id
__DARWIN_WCTYPE_TOP_inline int
^
/usr/include/_wctype.h:71:1: error: unknown type name '__header_inline'
__DARWIN_WCTYPE_TOP_inline int
^
/usr/include/_wctype.h:54:36: note: expanded from macro '__DARWIN_WCTYPE_TOP_inline'
#define __DARWIN_WCTYPE_TOP_inline __header_inline
^
/usr/include/_wctype.h:71:28: error: expected unqualified-id
__DARWIN_WCTYPE_TOP_inline int
^
/usr/include/_wctype.h:77:1: error: unknown type name '__header_inline'
__DARWIN_WCTYPE_TOP_inline int
^
/usr/include/_wctype.h:54:36: note: expanded from macro '__DARWIN_WCTYPE_TOP_inline'
#define __DARWIN_WCTYPE_TOP_inline __header_inline
^
/usr/include/_wctype.h:77:28: error: expected unqualified-id
__DARWIN_WCTYPE_TOP_inline int
^
/usr/include/_wctype.h:83:1: error: unknown type name '__header_inline'
__DARWIN_WCTYPE_TOP_inline int
^
/usr/include/_wctype.h:54:36: note: expanded from macro '__DARWIN_WCTYPE_TOP_inline'
#define __DARWIN_WCTYPE_TOP_inline __header_inline
^
/usr/include/_wctype.h:83:28: error: expected unqualified-id
__DARWIN_WCTYPE_TOP_inline int
^
/usr/include/_wctype.h:89:1: error: unknown type name '__header_inline'
__DARWIN_WCTYPE_TOP_inline int
^
/usr/include/_wctype.h:54:36: note: expanded from macro '__DARWIN_WCTYPE_TOP_inline'
#define __DARWIN_WCTYPE_TOP_inline __header_inline
^
/usr/include/_wctype.h:89:28: error: expected unqualified-id
__DARWIN_WCTYPE_TOP_inline int
^
/usr/include/_wctype.h:95:1: error: unknown type name '__header_inline'
__DARWIN_WCTYPE_TOP_inline int
^
/usr/include/_wctype.h:54:36: note: expanded from macro '__DARWIN_WCTYPE_TOP_inline'
#define __DARWIN_WCTYPE_TOP_inline __header_inline
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: *** [Release/obj.target/binding/src/XpcConnection.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:192:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Darwin 16.4.0
gyp ERR! command "/usr/local/Cellar/node/7.5.0/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/daveharmon/dev/amulet-dev/companion/bleno/node_modules/xpc-connection
gyp ERR! node -v v7.5.0
gyp ERR! node-gyp -v v3.5.0
gyp ERR! not ok
npm ERR! Darwin 16.4.0
npm ERR! argv "/usr/local/Cellar/node/7.5.0/bin/node" "/usr/local/bin/npm" "install" "xpc-connection"
npm ERR! node v7.5.0
npm ERR! npm v4.1.2
npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the xpc-connection package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs xpc-connection
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls xpc-connection
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /Users/daveharmon/dev/amulet-dev/companion/bleno/npm-debug.log

c++ -v
Apple LLVM version 8.0.0 (clang-800.0.42.1)
Target: x86_64-apple-darwin16.4.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

node -v
v7.5.0

npm -v
4.1.2

Any idea what the issue might be? I've noticed that some people have issues with the path but I've attempted the fix for that bug without success and this seems to be different from that.

Fails to build Mac OS

Steps to reproduce:

npm install -g xpc-connection

Os: Catalina 10.15.1
Node: (versions tried) 13.2.0, 131.0, 10.11.0, 9.11.2, 8.16.2

Errors

[email protected] install /Users/.nvm/versions/node/v10.11.0/lib/node_modules/xpc-connection

node-gyp rebuild

CXX(target) Release/obj.target/binding/src/XpcConnection.o
../src/XpcConnection.cpp:143:89: error: too few arguments to function call, expected 2, have 1
Local propertyValue = object->GetRealNamedProperty(propertyName->ToString());
~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/Users/.node-gyp/10.11.0/include/node/v8.h:3558:3: note: 'GetRealNamedProperty' declared here
V8_WARN_UNUSED_RESULT MaybeLocal GetRealNamedProperty(
^
/Users/.node-gyp/10.11.0/include/node/v8config.h:416:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT attribute((warn_unused_result))
^
../src/XpcConnection.cpp:254:12: warning: 'MakeCallback' is deprecated [-Wdeprecated-declarations]
Nan::MakeCallback(Nan::New(this->This), Nan::New("emit").ToLocalChecked(), 2, argv);
^
../node_modules/nan/nan.h:1045:3: note: 'MakeCallback' has been explicitly marked deprecated here
NAN_DEPRECATED inline v8::Localv8::Value MakeCallback(
^
../node_modules/nan/nan.h:104:40: note: expanded from macro 'NAN_DEPRECATED'

define NAN_DEPRECATED attribute((deprecated))

                                   ^

../src/XpcConnection.cpp:263:12: warning: 'MakeCallback' is deprecated [-Wdeprecated-declarations]
Nan::MakeCallback(Nan::New(this->This), Nan::New("emit").ToLocalChecked(), 2, argv);
^
../node_modules/nan/nan.h:1045:3: note: 'MakeCallback' has been explicitly marked deprecated here
NAN_DEPRECATED inline v8::Localv8::Value MakeCallback(
^
../node_modules/nan/nan.h:104:40: note: expanded from macro 'NAN_DEPRECATED'

define NAN_DEPRECATED attribute((deprecated))

                                   ^

2 warnings and 1 error generated.
make: *** [Release/obj.target/binding/src/XpcConnection.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/Users/.nvm/versions/node/v10.11.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack at ChildProcess.emit (events.js:182:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:240:12)
gyp ERR! System Darwin 19.0.0
gyp ERR! command "/Users/.nvm/versions/node/v10.11.0/bin/node" "/Users/.nvm/versions/node/v10.11.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/nvm/versions/node/v10.11.0/lib/node_modules/xpc-connection
gyp ERR! node -v v10.11.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/.npm/_logs/2019-12-03T20_28_46_634Z-debug.log

nan dependency

Should the nan dependency only be in dev?
I don't think we need it production

nwjs crash when require('noble')

platform: OSX v10.11.6
node: 6.3.1
npm: 3.10.3
xcode: 7.3.1
nwjs: 0.16.1

Sorry for yet another issue related to nwjs/electron!

I'm using a new-ish version of nwjs which doesn't require nw-gyp. npm install noble has no errors, but when I require('noble') in JavaScript I get a crash with some errors from the dynamic linker.

Tims-MacBook:...$ npm install noble --save

> [email protected] install /Users/.../node_modules/xpc-connection
> node-gyp rebuild

  CXX(target) Release/obj.target/binding/src/XpcConnection.o
  SOLINK_MODULE(target) Release/binding.node
[email protected] /Users/...
└─┬ [email protected] 
  ├── [email protected] 
  └── [email protected] 

npm WARN optional Skipping failed optional dependency /noble/bluetooth-hci-socket:
npm WARN notsup Not compatible with your operating system or architecture: [email protected]

Tims-MacBook:...$ nw .
Using nw.js v0.16.1-sdk
dyld: lazy symbol binding failed: Symbol not found: __ZN2v816FunctionTemplate3NewEPNS_7IsolateEPFvRKNS_20FunctionCallbackInfoINS_5ValueEEEENS_5LocalIS4_EENSA_INS_9SignatureEEEi
  Referenced from: /Users/.../node_modules/xpc-connection/build/Release/binding.node
  Expected in: flat namespace

dyld: Symbol not found: __ZN2v816FunctionTemplate3NewEPNS_7IsolateEPFvRKNS_20FunctionCallbackInfoINS_5ValueEEEENS_5LocalIS4_EENSA_INS_9SignatureEEEi
  Referenced from: /Users/.../node_modules/xpc-connection/build/Release/binding.node
  Expected in: flat namespace

====================
bye!

Further testing shows that this also occurs with require('xpc-connection').

I'll test if I have any luck with nw-gyp

Install fails on macOS 10.14 and node 6

I already checked the other issues about failed installs, but couldn't find this exact issue, which is:
../src/XpcConnection.cpp:1:10: fatal error: 'queue' file not found

Here is the full output

> [email protected] install /usr/local/lib/node_modules/xpc-connection
> node-gyp rebuild

  CXX(target) Release/obj.target/binding/src/XpcConnection.o
warning: include path for stdlibc++ headers not found; pass '-std=libc++' on the command line to use the
      libc++ standard library instead [-Wstdlibcxx-not-found]
../src/XpcConnection.cpp:1:10: fatal error: 'queue' file not found
#include <queue>
         ^~~~~~~
1 warning and 1 error generated.
make: *** [Release/obj.target/binding/src/XpcConnection.o] Error 1
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack     at emitTwo (events.js:106:13)
gyp ERR! stack     at ChildProcess.emit (events.js:191:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:219:12)
gyp ERR! System Darwin 18.0.0
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/xpc-connection
gyp ERR! node -v v6.11.5
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok 
npm ERR! Darwin 18.0.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "i" "-g" "xpc-connection"
npm ERR! node v6.11.5
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the xpc-connection package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs xpc-connection
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls xpc-connection
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Volumes/MacintoshHD2/Users/Jan/VirtualBoxVMs/Ubuntu 18.04/shared/tempguard.1.0/usr/lib/npm-debug.log

Module installation fails on Mac (macOS 10.13.4) after upgrade to node v10.0.0 and npm v6.0.0

Module installation fails on Mac (macOS 10.13.4) after upgrade to node v10.0.0 and npm v6.0.0

$ echo $PATH
/usr/local/opt/llvm/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:/Applications/Server.app/Contents/ServerRoot/usr/bin:/Applications/Server.app/Contents/ServerRoot/usr/sbin

Manipulations with PATH (as mentioned in #2) do not help

$ npm i -g xpc-connection

> [email protected] install /usr/local/lib/node_modules/xpc-connection
> node-gyp rebuild

  CXX(target) Release/obj.target/binding/src/XpcConnection.o
../src/XpcConnection.cpp:143:89: error: too few arguments to function call, expected 2, have 1
      Local<Value> propertyValue = object->GetRealNamedProperty(propertyName->ToString());
                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~                         ^
/Users/gpa/.node-gyp/10.0.0/include/node/v8.h:3428:3: note: 'GetRealNamedProperty' declared here
  V8_WARN_UNUSED_RESULT MaybeLocal<Value> GetRealNamedProperty(
  ^
/Users/gpa/.node-gyp/10.0.0/include/node/v8config.h:410:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
                              ^
../src/XpcConnection.cpp:254:12: warning: 'MakeCallback' is deprecated [-Wdeprecated-declarations]
      Nan::MakeCallback(Nan::New<Object>(this->This), Nan::New("emit").ToLocalChecked(), 2, argv);
           ^
../node_modules/nan/nan.h:950:3: note: 'MakeCallback' has been explicitly marked deprecated here
  NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback(
  ^
../node_modules/nan/nan.h:98:40: note: expanded from macro 'NAN_DEPRECATED'
# define NAN_DEPRECATED __attribute__((deprecated))
                                       ^
../src/XpcConnection.cpp:263:12: warning: 'MakeCallback' is deprecated [-Wdeprecated-declarations]
      Nan::MakeCallback(Nan::New<Object>(this->This), Nan::New("emit").ToLocalChecked(), 2, argv);
           ^
../node_modules/nan/nan.h:950:3: note: 'MakeCallback' has been explicitly marked deprecated here
  NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback(
  ^
../node_modules/nan/nan.h:98:40: note: expanded from macro 'NAN_DEPRECATED'
# define NAN_DEPRECATED __attribute__((deprecated))
                                       ^
2 warnings and 1 error generated.
make: *** [Release/obj.target/binding/src/XpcConnection.o] Error 1
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:258:23)
gyp ERR! stack     at ChildProcess.emit (events.js:182:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:225:12)
gyp ERR! System Darwin 16.7.0
gyp ERR! command "/usr/local/Cellar/node/10.0.0/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/xpc-connection
gyp ERR! node -v v10.0.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok 
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

JXCore fails to run Noble

I know there's already a similar issue #308 but I don't have the folders or jx command line program that the users in the thread use. For instance I don't have a ~/.node-gyp/jxb310 folder to delete before rebuilding the modules in my project.

Recap: JXCore works. Noble works. JXCore + Noble does not work:

dyld: lazy symbol binding failed: Symbol not found: __ZN4node6Buffer3NewEPKcm
Referenced from: /Users/marc/Code/noble/node_modules/xpc-connection/build/Release/binding.node
Expected in: dynamic lookup

dyld: Symbol not found: __ZN4node6Buffer3NewEPKcm
Referenced from: /Users/marc/Code/noble/node_modules/xpc-connection/build/Release/binding.node
Expected in: dynamic lookup

Trace/BPT trap: 5

Changing node versions, recompiling, rebuilding, none of those steps worked.

Node v4 node-gyp rebuild fails

$ node-gyp rebuild
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | darwin | x64
gyp info spawn python
gyp info spawn args [ '/usr/local/lib/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args   'binding.gyp',
gyp info spawn args   '-f',
gyp info spawn args   'make',
gyp info spawn args   '-I',
gyp info spawn args   
gyp info spawn args   '-I',
gyp info spawn args   '/usr/local/lib/node_modules/node-gyp/addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/Users/god/.node-gyp/4.0.0/include/node/common.gypi',
gyp info spawn args   '-Dlibrary=shared_library',
gyp info spawn args   '-Dvisibility=default',
gyp info spawn args   '-Dnode_root_dir=/Users/god/.node-gyp/4.0.0',
gyp info spawn args   '-Dnode_gyp_dir=/usr/local/lib/node_modules/node-gyp',
gyp info spawn args   '-Dnode_lib_file=node.lib',
gyp info spawn args   '-
gyp info spawn args   '--depth=.',
gyp info spawn args   '--no-parallel',
gyp info spawn args   '--generator-output',
gyp info spawn args   'build',
gyp info spawn args   '-Goutput_dir=.' ]
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
  CXX(target) Release/obj.target/binding/src/XpcConnection.o
In file included from ../src/XpcConnection.cpp:7:
In file included from ../src/XpcConnection.h:10:
../node_modules/nan/nan.h:324:27: error: redefinition of
      'NanEnsureHandleOrPersistent'
  NAN_INLINE v8::Local<T> NanEnsureHandleOrPersi...
                          ^
../node_modules/nan/nan.h:319:17: note: previous
      definition is here
  v8::Handle<T> NanEnsureHandleOrPersistent(cons...
                ^
../node_modules/nan/nan.h:344:27: error: redefinition of
      'NanEnsureLocal'
  NAN_INLINE v8::Local<T> NanEnsureLocal(const v...
                          ^
../node_modules/nan/nan.h:334:27: note: previous
      definition is here
  NAN_INLINE v8::Local<T> NanEnsureLocal(const v...
                          ^
../node_modules/nan/nan.h:757:13: error: no member named
      'smalloc' in namespace 'node'
    , node::smalloc::FreeCallback callback
      ~~~~~~^
../node_modules/nan/nan.h:768:12: error: no matching
      function for call to 'New'
    return node::Buffer::New(v8::Isolate::GetCur...
           ^~~~~~~~~~~~~~~~~
/Users/god/.node-gyp/4.0.0/include/node/node_buffer.h:31:40: note:
      candidate function not viable: no known conversion
      from 'uint32_t' (aka 'unsigned int') to
      'enum encoding' for 3rd argument
NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::I...
                                       ^
/Users/god/.node-gyp/4.0.0/include/node/node_buffer.h:43:40: note:
      candidate function not viable: 2nd argument
      ('const char *') would lose const qualifier
NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::I...
                                       ^
/Users/god/.node-gyp/4.0.0/include/node/node_buffer.h:28:40: note:
      candidate function not viable: requires 2
      arguments, but 3 were provided
NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::I...
                                       ^
/Users/god/.node-gyp/4.0.0/include/node/node_buffer.h:36:40: note:
      candidate function not viable: requires 5
      arguments, but 3 were provided
NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::I...
                                       ^
In file included from ../src/XpcConnection.cpp:7:
In file included from ../src/XpcConnection.h:10:
../node_modules/nan/nan.h:772:12: error: no viable
      conversion from 'v8::MaybeLocal<v8::Object>' to
      'v8::Local<v8::Object>'
  ...node::Buffer::New(v8::Isolate::GetCurrent(), size);
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/god/.node-gyp/4.0.0/include/node/v8.h:210:7: note:
      candidate constructor (the implicit copy
      constructor) not viable: no known conversion from
      'v8::MaybeLocal<v8::Object>' to 'const
      v8::Local<v8::Object> &' for 1st argument
class Local {
      ^
/Users/god/.node-gyp/4.0.0/include/node/v8.h:210:7: note:
      candidate constructor (the implicit move
      constructor) not viable: no known conversion from
      'v8::MaybeLocal<v8::Object>' to
      'v8::Local<v8::Object> &&' for 1st argument
class Local {
      ^
/Users/god/.node-gyp/4.0.0/include/node/v8.h:214:13: note:
      candidate template ignored: could not match
      'Local' against 'MaybeLocal'
  V8_INLINE Local(Local<S> that)
            ^
/Users/god/.node-gyp/4.0.0/include/node/v8.h:326:13: note:
      candidate template ignored: could not match 'S *'
      against 'v8::MaybeLocal<v8::Object>'
  V8_INLINE Local(S* that)
            ^
In file included from ../src/XpcConnection.cpp:7:
In file included from ../src/XpcConnection.h:10:
../node_modules/nan/nan.h:779:26: error: no member named
      'Use' in namespace 'node::Buffer'
    return node::Buffer::Use(v8::Isolate::GetCur...
           ~~~~~~~~~~~~~~^
In file included from ../src/XpcConnection.cpp:5:
In file included from /Users/god/.node-gyp/4.0.0/include/node/node_buffer.h:4:
In file included from /Users/god/.node-gyp/4.0.0/include/node/node.h:42:
/Users/god/.node-gyp/4.0.0/include/node/v8.h:221:5: error:
      assigning to 'v8::Primitive *volatile' from
      incompatible type 'v8::Value *'
    TYPE_CHECK(T, S);
    ^~~~~~~~~~~~~~~~
/Users/god/.node-gyp/4.0.0/include/node/v8.h:180:37: note:
      expanded from macro 'TYPE_CHECK'
  ...volatile*>(0)) = static_cast<S*>(0);      \
                    ^ ~~~~~~~~~~~~~~~~~~
../node_modules/nan/nan.h:501:12: note: in instantiation
      of function template specialization
      'v8::Local<v8::Primitive>::Local<v8::Value>'
      requested here
    return NanEscapeScope(NanNew(v8::Undefined(v...
           ^
../node_modules/nan/nan.h:483:30: note: expanded from
      macro 'NanEscapeScope'
# define NanEscapeScope(val) scope.Escape(Nan::i...
                             ^
In file included from ../src/XpcConnection.cpp:5:
In file included from /Users/god/.node-gyp/4.0.0/include/node/node_buffer.h:4:
In file included from /Users/god/.node-gyp/4.0.0/include/node/node.h:42:
/Users/god/.node-gyp/4.0.0/include/node/v8.h:221:5: error:
      assigning to 'v8::Boolean *volatile' from
      incompatible type 'v8::Value *'
    TYPE_CHECK(T, S);
    ^~~~~~~~~~~~~~~~
/Users/god/.node-gyp/4.0.0/include/node/v8.h:180:37: note:
      expanded from macro 'TYPE_CHECK'
  ...volatile*>(0)) = static_cast<S*>(0);      \
                    ^ ~~~~~~~~~~~~~~~~~~
../node_modules/nan/nan.h:511:12: note: in instantiation
      of function template specialization
      'v8::Local<v8::Boolean>::Local<v8::Value>'
      requested here
    return NanEscapeScope(NanNew(v8::True(v8::Is...
           ^
../node_modules/nan/nan.h:483:30: note: expanded from
      macro 'NanEscapeScope'
# define NanEscapeScope(val) scope.Escape(Nan::i...
                             ^
In file included from ../src/XpcConnection.cpp:5:
In file included from /Users/god/.node-gyp/4.0.0/include/node/node_buffer.h:4:
In file included from /Users/god/.node-gyp/4.0.0/include/node/node.h:42:
/Users/god/.node-gyp/4.0.0/include/node/v8.h:221:5: error:
      assigning to 'v8::Function *volatile' from
      incompatible type 'v8::Value *'
    TYPE_CHECK(T, S);
    ^~~~~~~~~~~~~~~~
/Users/god/.node-gyp/4.0.0/include/node/v8.h:180:37: note:
      expanded from macro 'TYPE_CHECK'
  ...volatile*>(0)) = static_cast<S*>(0);      \
                    ^ ~~~~~~~~~~~~~~~~~~
../node_modules/nan/nan.h:1645:12: note: in
      instantiation of function template specialization
      'v8::Local<v8::Function>::Local<v8::Value>'
      requested here
    return NanEscapeScope(NanNew(handle)->Get(kC...
           ^
../node_modules/nan/nan.h:483:30: note: expanded from
      macro 'NanEscapeScope'
# define NanEscapeScope(val) scope.Escape(Nan::i...
                             ^
In file included from ../src/XpcConnection.cpp:5:
In file included from /Users/god/.node-gyp/4.0.0/include/node/node_buffer.h:4:
In file included from /Users/god/.node-gyp/4.0.0/include/node/node.h:42:
/Users/god/.node-gyp/4.0.0/include/node/v8.h:221:5: error:
      assigning to 'v8::Object *volatile' from
      incompatible type 'v8::Value *'
    TYPE_CHECK(T, S);
    ^~~~~~~~~~~~~~~~
/Users/god/.node-gyp/4.0.0/include/node/v8.h:180:37: note:
      expanded from macro 'TYPE_CHECK'
  ...volatile*>(0)) = static_cast<S*>(0);      \
                    ^ ~~~~~~~~~~~~~~~~~~
../node_modules/nan/nan.h:1776:12: note: in
      instantiation of function template specialization
      'v8::Local<v8::Object>::Local<v8::Value>'
      requested here
    return NanEscapeScope(
           ^
../node_modules/nan/nan.h:483:30: note: expanded from
      macro 'NanEscapeScope'
# define NanEscapeScope(val) scope.Escape(Nan::i...
                             ^
10 errors generated.
make: *** [Release/obj.target/binding/src/XpcConnection.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/node-gyp/lib/build.js:270:23)
gyp ERR! stack     at emitTwo (events.js:87:13)
gyp ERR! stack     at ChildProcess.emit (events.js:172:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Darwin 14.4.0
gyp ERR! command "/usr/local/bin/node" "/usr/local/bin/node-gyp" "rebuild"
gyp ERR! cwd 
gyp ERR! node -v v4.0.0
gyp ERR! node-gyp -v v3.0.1
gyp ERR! not ok

I'm not terribly strong with node-gyp, but I reinstalled it, tried to reinstall xpc-connection. Alas.

0.1.4 build fails when building for nw 0.8.6

γ ~/dev/xpc-test-1.4/node_modules/xpc-connection nw-gyp rebuild --target=0.8.6
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | darwin | x64
gyp info spawn python
gyp info spawn args [ '/Users/ard/.nvm/v0.10.40/lib/node_modules/nw-gyp/gyp/gyp_main.py',
gyp info spawn args   'binding.gyp',
gyp info spawn args   '-f',
gyp info spawn args   'make',
gyp info spawn args   '-I',
gyp info spawn args   '/Users/ard/dev/xpc-test-1.4/node_modules/xpc-connection/build/config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/Users/ard/.nvm/v0.10.40/lib/node_modules/nw-gyp/addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/Users/ard/.nw-gyp/0.8.6/common.gypi',
gyp info spawn args   '-Dlibrary=shared_library',
gyp info spawn args   '-Dvisibility=default',
gyp info spawn args   '-Dnode_root_dir=/Users/ard/.nw-gyp/0.8.6',
gyp info spawn args   '-Dmodule_root_dir=/Users/ard/dev/xpc-test-1.4/node_modules/xpc-connection',
gyp info spawn args   '--depth=.',
gyp info spawn args   '--generator-output',
gyp info spawn args   'build',
gyp info spawn args   '-Goutput_dir=.' ]
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
  CXX(target) Release/obj.target/binding/src/XpcConnection.o
In file included from ../src/XpcConnection.cpp:5:
In file included from /Users/ard/.nw-gyp/0.8.6/src/node_buffer.h:25:
In file included from /Users/ard/.nw-gyp/0.8.6/src/node.h:71:
/Users/ard/.nw-gyp/0.8.6/src/node_object_wrap.h:82:13: warning: 'MakeWeak' is deprecated [-Wdeprecated-declarations]
    handle_.MakeWeak(v8::Isolate::GetCurrent(), this, WeakCallback);
            ^
/Users/ard/.nw-gyp/0.8.6/deps/v8/include/v8.h:658:22: note: 'MakeWeak<node::ObjectWrap>' has been explicitly marked deprecated here
  V8_DEPRECATED(void MakeWeak(
                     ^
/Users/ard/.nw-gyp/0.8.6/deps/v8/include/v8.h:92:35: note: expanded from macro 'V8_DEPRECATED'
#define V8_DEPRECATED(declarator) declarator __attribute__ ((deprecated))
                                  ^
In file included from ../src/XpcConnection.cpp:5:
In file included from /Users/ard/.nw-gyp/0.8.6/src/node_buffer.h:25:
/Users/ard/.nw-gyp/0.8.6/src/node.h:124:31: warning: 'New' is deprecated [-Wdeprecated-declarations]
        v8::FunctionTemplate::New(callback)->GetFunction());
                              ^
/Users/ard/.nw-gyp/0.8.6/deps/v8/include/v8.h:3339:48: note: 'New' has been explicitly marked deprecated here
  V8_DEPRECATED(static Local<FunctionTemplate> New(
                                               ^
/Users/ard/.nw-gyp/0.8.6/deps/v8/include/v8.h:92:35: note: expanded from macro 'V8_DEPRECATED'
#define V8_DEPRECATED(declarator) declarator __attribute__ ((deprecated))
                                  ^
In file included from ../src/XpcConnection.cpp:5:
In file included from /Users/ard/.nw-gyp/0.8.6/src/node_buffer.h:25:
/Users/ard/.nw-gyp/0.8.6/src/node.h:131:67: warning: 'New' is deprecated [-Wdeprecated-declarations]
    v8::Local<v8::FunctionTemplate> templ = v8::FunctionTemplate::New(callback);
                                                                  ^
/Users/ard/.nw-gyp/0.8.6/deps/v8/include/v8.h:3339:48: note: 'New' has been explicitly marked deprecated here
  V8_DEPRECATED(static Local<FunctionTemplate> New(
                                               ^
/Users/ard/.nw-gyp/0.8.6/deps/v8/include/v8.h:92:35: note: expanded from macro 'V8_DEPRECATED'
#define V8_DEPRECATED(declarator) declarator __attribute__ ((deprecated))
                                  ^
In file included from ../src/XpcConnection.cpp:7:
In file included from ../src/XpcConnection.h:10:
In file included from ../node_modules/nan/nan.h:188:
In file included from ../node_modules/nan/nan_new.h:193:
../node_modules/nan/nan_implementation_pre_12_inl.h:108:31: warning: 'New' is deprecated [-Wdeprecated-declarations]
        v8::FunctionTemplate::New(imp::FunctionCallbackWrapper
                              ^
/Users/ard/.nw-gyp/0.8.6/deps/v8/include/v8.h:3339:48: note: 'New' has been explicitly marked deprecated here
  V8_DEPRECATED(static Local<FunctionTemplate> New(
                                               ^
/Users/ard/.nw-gyp/0.8.6/deps/v8/include/v8.h:92:35: note: expanded from macro 'V8_DEPRECATED'
#define V8_DEPRECATED(declarator) declarator __attribute__ ((deprecated))
                                  ^
In file included from ../src/XpcConnection.cpp:7:
In file included from ../src/XpcConnection.h:10:
In file included from ../node_modules/nan/nan.h:188:
In file included from ../node_modules/nan/nan_new.h:193:
../node_modules/nan/nan_implementation_pre_12_inl.h:112:12: error: call to 'New' is ambiguous
    return v8::FunctionTemplate::New(0, data, signature);
           ^~~~~~~~~~~~~~~~~~~~~~~~~
/Users/ard/.nw-gyp/0.8.6/deps/v8/include/v8.h:3339:48: note: candidate function
  V8_DEPRECATED(static Local<FunctionTemplate> New(
                                               ^
/Users/ard/.nw-gyp/0.8.6/deps/v8/include/v8.h:92:35: note: expanded from macro 'V8_DEPRECATED'
#define V8_DEPRECATED(declarator) declarator __attribute__ ((deprecated))
                                  ^
/Users/ard/.nw-gyp/0.8.6/deps/v8/include/v8.h:3344:34: note: candidate function
  static Local<FunctionTemplate> New(
                                 ^
In file included from ../src/XpcConnection.cpp:7:
In file included from ../src/XpcConnection.h:10:
../node_modules/nan/nan.h:987:13: warning: 'GetHeapStatistics' is deprecated [-Wdeprecated-declarations]
    v8::V8::GetHeapStatistics(heap_statistics);
            ^
/Users/ard/.nw-gyp/0.8.6/deps/v8/include/v8.h:4715:29: note: 'GetHeapStatistics' has been explicitly marked deprecated here
  V8_DEPRECATED(static void GetHeapStatistics(HeapStatistics* heap_statistics));
                            ^
/Users/ard/.nw-gyp/0.8.6/deps/v8/include/v8.h:92:35: note: expanded from macro 'V8_DEPRECATED'
#define V8_DEPRECATED(declarator) declarator __attribute__ ((deprecated))
                                  ^
In file included from ../src/XpcConnection.cpp:7:
In file included from ../src/XpcConnection.h:10:
../node_modules/nan/nan.h:1884:8: warning: 'SetAccessor' is deprecated [-Wdeprecated-declarations]
  tpl->SetAccessor(
       ^
/Users/ard/.nw-gyp/0.8.6/deps/v8/include/v8.h:3464:22: note: 'SetAccessor' has been explicitly marked deprecated here
  V8_DEPRECATED(void SetAccessor(Handle<String> name,
                     ^
/Users/ard/.nw-gyp/0.8.6/deps/v8/include/v8.h:92:35: note: expanded from macro 'V8_DEPRECATED'
#define V8_DEPRECATED(declarator) declarator __attribute__ ((deprecated))
                                  ^
In file included from ../src/XpcConnection.cpp:7:
In file included from ../src/XpcConnection.h:10:
../node_modules/nan/nan.h:1927:15: warning: 'SetAccessor' is deprecated [-Wdeprecated-declarations]
  return obj->SetAccessor(
              ^
/Users/ard/.nw-gyp/0.8.6/deps/v8/include/v8.h:2095:22: note: 'SetAccessor' has been explicitly marked deprecated here
  V8_DEPRECATED(bool SetAccessor(Handle<String> name,
                     ^
/Users/ard/.nw-gyp/0.8.6/deps/v8/include/v8.h:92:35: note: expanded from macro 'V8_DEPRECATED'
#define V8_DEPRECATED(declarator) declarator __attribute__ ((deprecated))
                                  ^
In file included from ../src/XpcConnection.cpp:7:
In file included from ../src/XpcConnection.h:10:
../node_modules/nan/nan.h:1996:8: warning: 'SetNamedPropertyHandler' is deprecated [-Wdeprecated-declarations]
  tpl->SetNamedPropertyHandler(
       ^
/Users/ard/.nw-gyp/0.8.6/deps/v8/include/v8.h:3506:22: note: 'SetNamedPropertyHandler' has been explicitly marked deprecated here
  V8_DEPRECATED(void SetNamedPropertyHandler(
                     ^
/Users/ard/.nw-gyp/0.8.6/deps/v8/include/v8.h:92:35: note: expanded from macro 'V8_DEPRECATED'
#define V8_DEPRECATED(declarator) declarator __attribute__ ((deprecated))
                                  ^
In file included from ../src/XpcConnection.cpp:7:
In file included from ../src/XpcConnection.h:10:
../node_modules/nan/nan.h:2066:8: warning: 'SetIndexedPropertyHandler' is deprecated [-Wdeprecated-declarations]
  tpl->SetIndexedPropertyHandler(
       ^
/Users/ard/.nw-gyp/0.8.6/deps/v8/include/v8.h:3537:22: note: 'SetIndexedPropertyHandler' has been explicitly marked deprecated here
  V8_DEPRECATED(void SetIndexedPropertyHandler(
                     ^
/Users/ard/.nw-gyp/0.8.6/deps/v8/include/v8.h:92:35: note: expanded from macro 'V8_DEPRECATED'
#define V8_DEPRECATED(declarator) declarator __attribute__ ((deprecated))
                                  ^
9 warnings and 1 error generated.
make: *** [Release/obj.target/binding/src/XpcConnection.o] Error 1
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/Users/ard/.nvm/v0.10.40/lib/node_modules/nw-gyp/lib/build.js:267:23)
gyp ERR! stack     at ChildProcess.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:820:12)
gyp ERR! System Darwin 14.3.0
gyp ERR! command "node" "/Users/ard/.nvm/v0.10.40/bin/nw-gyp" "rebuild" "--target=0.8.6"
gyp ERR! cwd /Users/ard/dev/xpc-test-1.4/node_modules/xpc-connection
gyp ERR! node -v v0.10.40
gyp ERR! nw-gyp -v v0.12.4
gyp ERR! not ok 
γ ~/dev/xpc-test-1.4/node_modules/xpc-connection 

works with 0.1.3.

symbolic link pointing to itself OSX 10.12.6

I get xpc-connection installed, but when it finishes, it creates a symbolic link to itself:

lrwxr-xr-x 1 root 1012157403 14 Apr 3 06:45 xpc-connection -> xpc-connection

I used the path that you asked we use. I reinstalled gyp. I've used node 4.7 and 8.9

I removed the link, and now when I go to install I get -

npm ERR! Could not install from "node_modules/xpc-connection" as it does not contain a package.json file.

noble and bleno are installed and i had this working a month ago with no problems...

Any help is greatly appreciated.

Keeps process open

Simple way to reproduce...

let xpc = new (require('xpc-connection'))();

Perhaps we can provide an unref() method (similar to timeouts and http)? or at the very least a way to destroy instances so they don't keep the process open.

node version error when working with electron

node version:v7.4.0
electron:v1.6.2
npm:4.0.5

node_modules/xpc-connection/build/Release/binding.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 51. This version of Node.js requires
NODE_MODULE_VERSION 53. Please try re-compiling or re-installing

Install fails on OSX node v11.1.0

../src/XpcConnection.cpp:143:89: error: too few arguments to function call, expected 2, have 1
Local propertyValue = object->GetRealNamedProperty(propertyName->ToString());

$ node -v
v11.1.0
$ npm -v
6.4.1

$ sw_vers
ProductName: Mac OS X
ProductVersion: 10.14.2
BuildVersion: 18C54

$ gcc -v
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/c++/4.2.1
Apple LLVM version 10.0.0 (clang-1000.11.45.5)
Target: x86_64-apple-darwin18.2.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

I have tried installing this on various combinations with nvm, using 8 or 10 versions.
It installed but newer worked (tested as part of nobble).

Do you plan to support latest node please ?

crash with exception in libuv's threadpool.c on OS X Mavericks 10.9.5

As noted here: node-red/node-red#601

Assertion failed: (uv__has_active_reqs(req->loop)), function uv__queue_done, file ../deps/uv/src/unix/threadpool.c, line 236.
Abort trap: 6

This is running in an environment with noble getting events from a TI Sensortag, and feeding them into Node-RED (which crashes with that error). I'll try to come up with a minimum repeatable way to trigger this.

Build Failure with node v6

running npm install xpc-connection caused a build failure for node v6.3.1 on Mac OS X

> [email protected] install /Users/wgillis/dev/node/micro_leads_stimulator_ui/node_modules/xpc-connection
> node-gyp rebuild

gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
  CXX(target) Release/obj.target/binding/src/XpcConnection.o
In file included from ../src/XpcConnection.cpp:7:
In file included from ../src/XpcConnection.h:10:
../../nan/nan.h:602:20: error: no type named 'GCEpilogueCallback' in 'v8::Isolate'
      v8::Isolate::GCEpilogueCallback callback
      ~~~~~~~~~~~~~^
../../nan/nan.h:608:20: error: no type named 'GCEpilogueCallback' in 'v8::Isolate'
      v8::Isolate::GCEpilogueCallback callback) {
      ~~~~~~~~~~~~~^
../../nan/nan.h:613:20: error: no type named 'GCPrologueCallback' in 'v8::Isolate'
      v8::Isolate::GCPrologueCallback callback
      ~~~~~~~~~~~~~^
../../nan/nan.h:619:20: error: no type named 'GCPrologueCallback' in 'v8::Isolate'
      v8::Isolate::GCPrologueCallback callback) {
      ~~~~~~~~~~~~~^
4 errors generated.
make: *** [Release/obj.target/binding/src/XpcConnection.o] Error 1
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack     at emitTwo (events.js:106:13)
gyp ERR! stack     at ChildProcess.emit (events.js:191:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:204:12)
gyp ERR! System Darwin 15.6.0
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/wgillis/dev/node/micro_leads_stimulator_ui/node_modules/xpc-connection
gyp ERR! node -v v6.3.1
gyp ERR! node-gyp -v v3.3.1
gyp ERR! not ok 
npm WARN install:[email protected] [email protected] install: `node-gyp rebuild`
npm WARN install:[email protected] Exit status 1

xpc-connection issue

Stack trace when running npm install xpc-connection on mac os:

[email protected] install /Users/jessicahastings/Documents/Ucardia/ucardia-service/src/node_modules/xpc-connection
node-gyp rebuild

CXX(target) Release/obj.target/binding/src/XpcConnection.o
../src/XpcConnection.cpp:143:89: error: too few arguments to function call, expected 2, have 1
Local propertyValue = object->GetRealNamedProperty(propertyName->ToString());
~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/Users/jessicahastings/.node-gyp/10.6.0/include/node/v8.h:3480:3: note: 'GetRealNamedProperty' declared here
V8_WARN_UNUSED_RESULT MaybeLocal GetRealNamedProperty(
^
/Users/jessicahastings/.node-gyp/10.6.0/include/node/v8config.h:416:31: note: expanded from macro
'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT attribute((warn_unused_result))
^
../src/XpcConnection.cpp:254:12: warning: 'MakeCallback' is deprecated [-Wdeprecated-declarations]
Nan::MakeCallback(Nan::New(this->This), Nan::New("emit").ToLocalChecked(), 2, argv);
^
../../nan/nan.h:979:3: note: 'MakeCallback' has been explicitly marked deprecated here
NAN_DEPRECATED inline v8::Localv8::Value MakeCallback(
^
../../nan/nan.h:102:40: note: expanded from macro 'NAN_DEPRECATED'

define NAN_DEPRECATED attribute((deprecated))

                                   ^

../src/XpcConnection.cpp:263:12: warning: 'MakeCallback' is deprecated [-Wdeprecated-declarations]
Nan::MakeCallback(Nan::New(this->This), Nan::New("emit").ToLocalChecked(), 2, argv);
^
../../nan/nan.h:979:3: note: 'MakeCallback' has been explicitly marked deprecated here
NAN_DEPRECATED inline v8::Localv8::Value MakeCallback(
^
../../nan/nan.h:102:40: note: expanded from macro 'NAN_DEPRECATED'

define NAN_DEPRECATED attribute((deprecated))

                                   ^

2 warnings and 1 error generated.
make: *** [Release/obj.target/binding/src/XpcConnection.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:258:23)
gyp ERR! stack at ChildProcess.emit (events.js:182:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:237:12)
gyp ERR! System Darwin 18.0.0
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/jessicahastings/Documents/Ucardia/ucardia-service/src/node_modules/xpc-connection
gyp ERR! node -v v10.6.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/bluetooth-hci-socket):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"linux,android,win32","arch":"any"} (current: {"os":"darwin","arch":"x64"})

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/jessicahastings/.npm/_logs/2018-10-12T22_10_06_154Z-debug.log

xpc-connection install issue on mac

I have seen issue #2 , though that one is closed, I am getting issue with xpc connection again, please see the output, kindly suggest what can be done to fix.

> [email protected] install /Users/Deesingh/Coding/N/RWT/RWTCore/node_modules/xpc-connection
> node-gyp rebuild

xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

  CXX(target) Release/obj.target/binding/src/XpcConnection.o
../src/XpcConnection.cpp:3:9: fatal error: 'Foundation/Foundation.h' file not found
#import <Foundation/Foundation.h>
        ^~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
make: *** [Release/obj.target/binding/src/XpcConnection.o] Error 1
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:258:23)
gyp ERR! stack     at emitTwo (events.js:125:13)
gyp ERR! stack     at ChildProcess.emit (events.js:213:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Darwin 17.0.0
gyp ERR! command "/usr/local/Cellar/node/8.7.0/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/Deesingh/Coding/N/RWT/RWTCore/node_modules/xpc-connection
gyp ERR! node -v v8.7.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok 
npm WARN [email protected] No repository field.
npm WARN [email protected] No license field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/bluetooth-hci-socket):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"linux,android,win32","arch":"any"} (current: {"os":"darwin","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/usb/node_modules/node-pre-gyp/node_modules/rimraf/node_modules/glob/node_modules/inherits):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Cannot read property 'type' of undefined
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/usb/node_modules/node-pre-gyp/node_modules/rimraf/node_modules/glob/node_modules/inflight/node_modules/wrappy):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Cannot read property 'type' of undefined
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/xpc-connection):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] install: `node-gyp rebuild`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1

added 205 packages and updated 5 packages in 96.277s
DKS_BLACK:RWTCore Deesingh$ xcode-select -p
/Library/Developer/CommandLineTools
DKS_BLACK:RWTCore Deesingh$ xcode-select -v
xcode-select version 2349.
DKS_BLACK:RWTCore Deesingh$ uname -a
Darwin DKS_BLACK 17.0.0 Darwin Kernel Version 17.0.0: Thu Aug 24 21:48:19 PDT 2017; root:xnu-4570.1.46~2/RELEASE_X86_64 x86_64

Clone of this repo fails to build Node 0.12 / 4.2.3, node-gyp 3.2.1, gcc

➜  node-xpc-connection git:(master) npm install

> [email protected] install /Users/brianfeister/dev/temp/node-xpc-connection
> node-gyp rebuild

  CXX(target) Release/obj.target/binding/src/XpcConnection.o
  SOLINK_MODULE(target) Release/binding.node
ld: library not found for -lgcc_s.10.5
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [Release/binding.node] Error 1
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:269:23)
gyp ERR! stack     at ChildProcess.emit (events.js:110:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:1067:12)
gyp ERR! System Darwin 14.3.0
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/brianfeister/dev/temp/node-xpc-connection
gyp ERR! node -v v0.12.0
gyp ERR! node-gyp -v v2.0.2
gyp ERR! not ok 

npm ERR! Darwin 14.3.0
npm ERR! argv "node" "/usr/local/bin/npm" "install"
npm ERR! node v0.12.0
npm ERR! npm  v2.14.0
npm ERR! code ELIFECYCLE
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the xpc-connection package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get their info via:
npm ERR!     npm owner ls xpc-connection
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/brianfeister/dev/temp/node-xpc-connection/npm-debug.log
➜  node-xpc-connection git:(master) node -v                
v0.12.0
➜  node-xpc-connection git:(master) node-gyp -v            
v3.2.1
➜  node-xpc-connection git:(master) node -v
v4.2.3
➜  node-xpc-connection git:(master) gcc -v
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn)
Target: x86_64-apple-darwin14.3.0
Thread model: posix
➜  node-xpc-connection git:(master) which gcc
/usr/bin/gcc
➜  node-xpc-connection git:(master) echo $PATH
/Users/brianfeister/.nvm/versions/node/v4.2.3/bin:/usr/local/heroku/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin

These config details all seem fine according to other open issues. Any ideas?

Fails to build for node-webkit > 0.8.6

Hi,

I'm trying to get noble v0.3.6 with dependency on xpc-connection 0.0.4 to work with node-webkit > v0.8.6.

Platform: Mac OSX v10.10.1 (yosemite)
Node version: 0.10.33

When trying to build for node-webkit > 0.8.6 I get the following error:

nw-gyp rebuild --target="0.9.0"

gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | darwin | x64
gyp info spawn python
gyp info spawn args [ '/usr/local/lib/node_modules/nw-gyp/gyp/gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'make',
gyp info spawn args '-I',
gyp info spawn args '[project-dir]/nodejs/node_modules/noble/node_modules/xpc-connection/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/usr/local/lib/node_modules/nw-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/Users/mle/.nw-gyp/0.9.0/common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=/Users/mle/.nw-gyp/0.9.0',
gyp info spawn args '-Dmodule_root_dir=/[project-dir]/node_modules/noble/node_modules/xpc-connection',
gyp info spawn args '--depth=.',
gyp info spawn args '--generator-output',
gyp info spawn args 'build',
gyp info spawn args '-Goutput_dir=.' ]
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
CXX(target) Release/obj.target/binding/src/XpcConnection.o
In file included from ../src/XpcConnection.cpp:5:
../src/XpcConnection.h:12:29: error: expected class name
class XpcConnection : node::ObjectWrap {
^
../src/XpcConnection.cpp:19:65: error: cannot initialize a parameter of type
'FunctionCallback' (aka 'void ()(const FunctionCallbackInfov8::Value &)') with an
lvalue of type 'v8::Handlev8::Value (const v8::Arguments &)': type mismatch at 1st
parameter ('const FunctionCallbackInfov8::Value &' vs 'const v8::Arguments &')
v8::Localv8::FunctionTemplate t = v8::FunctionTemplate::New(XpcConnection::New);
^~~~~~~~~~~~~~~~~~
/Users/mle/.nw-gyp/0.9.0/deps/v8/include/v8.h:3379:24: note: passing argument to parameter
'callback' here
FunctionCallback callback = 0,
^
../src/XpcConnection.cpp:25:29: error: no viable conversion from
'v8::Persistentv8::FunctionTemplate' to 'v8::Handlev8::FunctionTemplate'
NODE_SET_PROTOTYPE_METHOD(s_ct, "setup", XpcConnection::Setup);
^~~~
/Users/mle/.nw-gyp/0.9.0/deps/v8/include/v8.h:211:26: note: candidate constructor (the
implicit copy constructor) not viable: no known conversion from
'v8::Persistentv8::FunctionTemplate' to 'const v8::Handlev8::FunctionTemplate &'
for 1st argument
template class Handle {
^
/Users/mle/.nw-gyp/0.9.0/deps/v8/include/v8.h:228:32: note: candidate template ignored:
could not match 'Handle' against 'Persistent'
template V8_INLINE Handle(Handle that)
^
/Users/mle/.nw-gyp/0.9.0/src/node.h:185:72: note: passing argument to parameter 'recv'
here
inline void NODE_SET_PROTOTYPE_METHOD(v8::Handlev8::FunctionTemplate recv,
^
../src/XpcConnection.cpp:26:29: error: no viable conversion from
'v8::Persistentv8::FunctionTemplate' to 'v8::Handlev8::FunctionTemplate'
NODE_SET_PROTOTYPE_METHOD(s_ct, "sendMessage", XpcConnection::SendMessage);
^~~~
/Users/mle/.nw-gyp/0.9.0/deps/v8/include/v8.h:211:26: note: candidate constructor (the
implicit copy constructor) not viable: no known conversion from
'v8::Persistentv8::FunctionTemplate' to 'const v8::Handlev8::FunctionTemplate &'
for 1st argument
template class Handle {
^
/Users/mle/.nw-gyp/0.9.0/deps/v8/include/v8.h:228:32: note: candidate template ignored:
could not match 'Handle' against 'Persistent'
template V8_INLINE Handle(Handle that)
^
/Users/mle/.nw-gyp/0.9.0/src/node.h:185:72: note: passing argument to parameter 'recv'
here
inline void NODE_SET_PROTOTYPE_METHOD(v8::Handlev8::FunctionTemplate recv,
^
../src/XpcConnection.cpp:32:9: error: member initializer 'ObjectWrap' does not name a
non-static data member or base class
node::ObjectWrap(),
^~~~~~~~~~~~
../src/XpcConnection.cpp:85:6: error: no member named 'Wrap' in 'XpcConnection'
p->Wrap(args.This());
~ ^
../src/XpcConnection.cpp:93:28: error: no member named 'ObjectWrap' in namespace 'node'
XpcConnection
p = node::ObjectWrap::Unwrap(args.This());
~~~~~~^
../src/XpcConnection.cpp:93:47: error: 'XpcConnection' does not refer to a value
XpcConnection* p = node::ObjectWrap::Unwrap(args.This());
^
../src/XpcConnection.h:12:7: note: declared here
class XpcConnection : node::ObjectWrap {
^
../src/XpcConnection.cpp:189:11: error: unexpected namespace name 'Buffer': expected
expression
node::Buffer *slowBuffer = node::Buffer::New((char *)xpc_data_get_bytes_ptr(xp...
^
../src/XpcConnection.cpp:189:19: error: use of undeclared identifier 'slowBuffer'
node::Buffer *slowBuffer = node::Buffer::New((char *)xpc_data_get_bytes_ptr(xp...
^
../src/XpcConnection.cpp:195:7: error: use of undeclared identifier 'slowBuffer'
slowBuffer->handle_,
^
../src/XpcConnection.cpp:202:11: error: unexpected namespace name 'Buffer': expected
expression
node::Buffer *slowBuffer = node::Buffer::New((char *)xpc_uuid_get_bytes(xpcObj...
^
../src/XpcConnection.cpp:202:19: error: use of undeclared identifier 'slowBuffer'
node::Buffer *slowBuffer = node::Buffer::New((char *)xpc_uuid_get_bytes(xpcObj...
^
../src/XpcConnection.cpp:208:7: error: use of undeclared identifier 'slowBuffer'
slowBuffer->handle_,
^
../src/XpcConnection.cpp:273:5: error: no matching function for call to 'MakeCallback'
node::MakeCallback(xpcConnnection->This, "emit", 2, argv);
^~~~~~~~~~~~~~~~~~
/Users/mle/.nw-gyp/0.9.0/src/node.h:103:35: note: candidate function not viable: no known
conversion from 'v8::Persistentv8::Object' to 'const v8::Handlev8::Object' for
1st argument
NODE_EXTERN v8::Handlev8::Value MakeCallback(
^
/Users/mle/.nw-gyp/0.9.0/src/node.h:108:35: note: candidate function not viable: no known
conversion from 'v8::Persistentv8::Object' to 'const v8::Handlev8::Object' for
1st argument
NODE_EXTERN v8::Handlev8::Value MakeCallback(
^
/Users/mle/.nw-gyp/0.9.0/src/node.h:113:35: note: candidate function not viable: no known
conversion from 'v8::Persistentv8::Object' to 'const v8::Handlev8::Object' for
1st argument
NODE_EXTERN v8::Handlev8::Value MakeCallback(
^
../src/XpcConnection.cpp:282:5: error: no matching function for call to 'MakeCallback'
node::MakeCallback(xpcConnnection->This, "emit", 2, argv);
^~~~~~~~~~~~~~~~~~
/Users/mle/.nw-gyp/0.9.0/src/node.h:103:35: note: candidate function not viable: no known
conversion from 'v8::Persistentv8::Object' to 'const v8::Handlev8::Object' for
1st argument
NODE_EXTERN v8::Handlev8::Value MakeCallback(
^
/Users/mle/.nw-gyp/0.9.0/src/node.h:108:35: note: candidate function not viable: no known
conversion from 'v8::Persistentv8::Object' to 'const v8::Handlev8::Object' for
1st argument
NODE_EXTERN v8::Handlev8::Value MakeCallback(
^
/Users/mle/.nw-gyp/0.9.0/src/node.h:113:35: note: candidate function not viable: no known
conversion from 'v8::Persistentv8::Object' to 'const v8::Handlev8::Object' for
1st argument
NODE_EXTERN v8::Handlev8::Value MakeCallback(
^
../src/XpcConnection.cpp:292:28: error: no member named 'ObjectWrap' in namespace 'node'
XpcConnection* p = node::ObjectWrap::Unwrap(args.This());
~~~~~~^
../src/XpcConnection.cpp:292:47: error: 'XpcConnection' does not refer to a value
XpcConnection* p = node::ObjectWrap::Unwrap(args.This());
^
../src/XpcConnection.h:12:7: note: declared here
class XpcConnection : node::ObjectWrap {
^
In file included from ../src/XpcConnection.cpp:3:
In file included from /Users/mle/.nw-gyp/0.9.0/src/node_buffer.h:25:
In file included from /Users/mle/.nw-gyp/0.9.0/src/node.h:76:
/Users/mle/.nw-gyp/0.9.0/deps/v8/include/v8.h:481:5: error: assigning to
'v8::Object *volatile' from incompatible type 'v8::Primitive *'
TYPE_CHECK(O, Primitive);
^~~~~~~~~~~~~~~~~~~~~~~~
/Users/mle/.nw-gyp/0.9.0/deps/v8/include/v8.h:182:37: note: expanded from macro
'TYPE_CHECK'
(static_cast<T volatile_>(0)) = static_cast<S_>(0);
^ ~~~~~~~~~~~~~~~~~~
/Users/mle/.nw-gyp/0.9.0/deps/v8/include/v8.h:477:5: note: in instantiation of function
template specialization
'v8::NonCopyablePersistentTraitsv8::FunctionTemplate::Uncompilablev8::Object'
requested here
Uncompilable();
^
/Users/mle/.nw-gyp/0.9.0/deps/v8/include/v8.h:5683:6: note: in instantiation of function
template specialization
'v8::NonCopyablePersistentTraitsv8::FunctionTemplate::Copy<v8::FunctionTemplate,
v8::NonCopyablePersistentTraitsv8::FunctionTemplate >' requested here
M::Copy(that, this);
^
/Users/mle/.nw-gyp/0.9.0/deps/v8/include/v8.h:550:5: note: in instantiation of function
template specialization 'v8::Persistent<v8::FunctionTemplate,
v8::NonCopyablePersistentTraitsv8::FunctionTemplate >::Copy<v8::FunctionTemplate,
v8::NonCopyablePersistentTraitsv8::FunctionTemplate >' requested here
Copy(that);
^
/Users/mle/.nw-gyp/0.9.0/deps/v8/include/v8.h:5650:3: note: in instantiation of member
function 'v8::Persistent<v8::FunctionTemplate,
v8::NonCopyablePersistentTraitsv8::FunctionTemplate >::Persistent' requested here
return New(Isolate::GetCurrent(), that.val_);
^
../src/XpcConnection.cpp:21:48: note: in instantiation of function template specialization
'v8::Persistent<v8::FunctionTemplate,
v8::NonCopyablePersistentTraitsv8::FunctionTemplate >::Newv8::FunctionTemplate'
requested here
s_ct = v8::Persistentv8::FunctionTemplate::New(t);
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: *** [Release/obj.target/binding/src/XpcConnection.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/nw-gyp/lib/build.js:267:23)
gyp ERR! stack at ChildProcess.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:810:12)
gyp ERR! System Darwin 14.0.0
gyp ERR! command "node" "/usr/local/bin/nw-gyp" "rebuild" "--target=0.9.0"
gyp ERR! cwd /[project-dir]/node_modules/noble/node_modules/xpc-connection
gyp ERR! node -v v0.10.33
gyp ERR! nw-gyp -v v0.12.4
gyp ERR! not ok

Any help would be highly appreciated.

Thanks,

Michael

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.