Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: ENOENT: no such file or directory, scandir '/usr/local/lib/node_modules/xctestwd/XCTestWD/build/Build/Products' #197

Open
dipakkumar1225 opened this issue Oct 1, 2021 · 0 comments

Comments

@dipakkumar1225
Copy link

xcodebuild -version : 12.4
xcodebuild -showsdks  :                                                                                                                         
iOS SDKs:
	iOS 14.4                      	-sdk iphoneos14.4
iOS Simulator SDKs:
	Simulator - iOS 14.4          	-sdk iphonesimulator14.4
macOS SDKs:
	DriverKit 20.2                	-sdk driverkit.macosx20.2
	macOS 11.1                    	-sdk macosx11.1
tvOS SDKs:
	tvOS 14.3                     	-sdk appletvos14.3
tvOS Simulator SDKs:
	Simulator - tvOS 14.3         	-sdk appletvsimulator14.3
watchOS SDKs:
	watchOS 7.2                   	-sdk watchos7.2
watchOS Simulator SDKs:
	Simulator - watchOS 7.2       	-sdk watchsimulator7.2

admin@WJLP-1461 ~ % npm install xctestwd -g
npm WARN deprecated request@2.69.0: request has been deprecated, see request/request#3142
npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm WARN deprecated har-validator@2.0.6: this library is no longer supported
npm WARN deprecated node-uuid@1.4.8: Use uuid module instead
npm WARN deprecated tough-cookie@2.2.2: ReDoS vulnerability parsing Set-Cookie https://nodesecurity.io/advisories/130
npm WARN deprecated hawk@3.1.3: This module moved to @hapi/hawk. Please make sure to switch over as this distribution is no longer supported and may contain bugs and critical security issues.
npm WARN deprecated cryptiles@2.0.5: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated hoek@2.16.3: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated boom@2.10.1: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated sntp@1.0.9: This module moved to @hapi/sntp. Please make sure to switch over as this distribution is no longer supported and may contain bugs and critical security issues.
npm WARN deprecated request@2.88.2: request has been deprecated, see request/request#3142
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated node-uuid@1.4.7: Use uuid module instead
npm WARN deprecated xmldom@0.1.31: Deprecated due to CVE-2021-21366 resolved in 0.5.0

devicelog@1.0.9 install /usr/local/lib/node_modules/xctestwd/node_modules/devicelog
node ./scripts/build.js

xctestwd@1.4.31 install /usr/local/lib/node_modules/xctestwd
node ./scripts/install.js

Xcode version: 12.4
xctestwd frameworks package name: xctestwd-frameworks-12
start to mv /usr/local/lib/node_modules/xctestwd/node_modules/xctestwd-frameworks-12/Carthage /usr/local/lib/node_modules/xctestwd
Carthage is existed: /usr/local/lib/node_modules/xctestwd/Carthage
preparing xctestrun build
Command line invocation:
/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild build -project XCTestWD/XCTestWD.xcodeproj -scheme XCTestWDUITests -destination "platform=iOS Simulator,name=iPhone 5s" -derivedDataPath XCTestWD/build -UseModernBuildSystem=NO

User defaults from command line:
IDEDerivedDataPathOverride = /usr/local/lib/node_modules/xctestwd/XCTestWD/build
UseModernBuildSystem = NO

xcodebuild: error: Unable to find a destination matching the provided destination specifier:
{ platform:iOS Simulator, OS:latest, name:iPhone 5s }

Available destinations for the "XCTestWDUITests" scheme:
	{ platform:macOS, arch:x86_64, variant:Mac Catalyst, id:0DD1CA30-0EC6-5407-8BC6-4EB998808520 }
	{ platform:iOS Simulator, id:E0E38189-14CC-45C7-8BA2-053B3CBF1FEA, OS:14.4, name:iPad (8th generation) }
	{ platform:iOS Simulator, id:84E428EC-12EE-44B3-A9F1-EA2E779C7BC7, OS:14.4, name:iPad Air (4th generation) }
	{ platform:iOS Simulator, id:7D7EE290-A08E-4971-8428-63E592077B65, OS:14.4, name:iPad Pro (9.7-inch) }
	{ platform:iOS Simulator, id:2A27B674-EA76-47DB-8E4B-6E8CD6A46FCC, OS:14.4, name:iPad Pro (11-inch) (2nd generation) }
	{ platform:iOS Simulator, id:B69A538D-7052-4F94-BBD8-B5C7877AC66C, OS:14.4, name:iPad Pro (12.9-inch) (4th generation) }
	{ platform:iOS Simulator, id:5A404F36-1760-4551-AA96-FB82BB64F052, OS:14.4, name:iPhone 8 }
	{ platform:iOS Simulator, id:D1775CAD-B5F3-4D28-8E0A-D40C136AA51E, OS:14.4, name:iPhone 8 Plus }
	{ platform:iOS Simulator, id:F7FE16AD-9F22-4436-9F37-1E77C0BA1924, OS:14.4, name:iPhone 11 }
	{ platform:iOS Simulator, id:0C9242D5-047E-4D65-837F-6DF0A4187D61, OS:14.4, name:iPhone 11 Pro }
	{ platform:iOS Simulator, id:48BE6FDE-C102-41E3-B136-BFB6252F262E, OS:14.4, name:iPhone 11 Pro Max }
	{ platform:iOS Simulator, id:E68290BF-5DCB-46E6-A2A3-EED5633E66E6, OS:14.4, name:iPhone 12 }
	{ platform:iOS Simulator, id:B5E9F16C-0E00-4A9D-A261-AB5A3F0E7FF7, OS:14.4, name:iPhone 12 Pro }
	{ platform:iOS Simulator, id:862478AC-4FBC-427C-B236-CE77849114FF, OS:14.4, name:iPhone 12 Pro Max }
	{ platform:iOS Simulator, id:F41EC708-D83D-4C72-B5A9-F91BC4B205DB, OS:14.4, name:iPhone 12 mini }
	{ platform:iOS Simulator, id:31B9E207-AF1F-48B9-A6DC-C33928EA8763, OS:14.4, name:iPhone SE (2nd generation) }
	{ platform:iOS Simulator, id:1C69A27B-9DEE-477B-B6F5-F4F44D19CE5B, OS:14.4, name:iPod touch (7th generation) }
	{ platform:iOS Simulator, id:594BAD3B-BF7D-4FD3-9F44-24E26C70B527, OS:14.4, name:iphone7 }

Ineligible destinations for the "XCTestWDUITests" scheme:
	{ platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device }
	{ platform:iOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-iphonesimulator:placeholder, name:Any iOS Simulator Device }
	{ platform:macOS, variant:Mac Catalyst, name:Any Mac }

node:internal/fs/utils:323
throw err;
^

Error: ENOENT: no such file or directory, scandir '/usr/local/lib/node_modules/xctestwd/XCTestWD/build/Build/Products'
at Object.readdirSync (node:fs:1058:3)
at Object. (/usr/local/lib/node_modules/xctestwd/scripts/install.js:137:19)
at Module._compile (node:internal/modules/cjs/loader:1092:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1121:10)
at Module.load (node:internal/modules/cjs/loader:972:32)
at Function.Module._load (node:internal/modules/cjs/loader:813:14)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:76:12)
at node:internal/main/run_main_module:17:47 {
errno: -2,
syscall: 'scandir',
code: 'ENOENT',
path: '/usr/local/lib/node_modules/xctestwd/XCTestWD/build/Build/Products'
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! xctestwd@1.4.31 install: node ./scripts/install.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the xctestwd@1.4.31 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/admin/.npm/_logs/2021-10-01T05_16_27_614Z-debug.log

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant