macacajs / app-inspector

App-inspector is a mobile UI viewer in browser.
https://macacajs.github.io/app-inspector/
MIT License
390 stars 78 forks source link

Installing app-inspector fails with xcode 11 .0 #241

Closed rayt8909 closed 4 years ago

rayt8909 commented 5 years ago

Environment check:

$ npm i macaca-cli -g && macaca doctor

macaca-doctor version: 2.0.18 Node.js checklist: node env: /usr/local/bin/node node version: v11.13.0

iOS checklist:

macOS version: 10.14.6 Xcode Command Line Tools is ready, version: 2354. xcodebuild version: 11.0 iproxy[usbmuxd] is installed at: /usr/local/bin/iproxy ios_webkit_debug_proxy is installed at: /usr/local/bin/ios_webkit_debug_proxy

Android checklist:

JAVA version is 1.8 JAVA_HOME is set to /Library/Java/JavaVirtualMachines/jdk1.8.0_211.jdk/Contents/Home ANDROID_HOME is set to /Users/raytrejo/android/ Platforms is set to /Users/raytrejo/android/platforms/android-29 ADB tool is set to /Users/raytrejo/android/platform-tools/adb Command Line Tools: gradle is uninstalled

Installed driver list:

xcode version: 11.0 (11A420a)

BUILD FAILED

The following build commands failed: CompileSwift normal x86_64 /Users/raytrejo/node_modules/xctestwd/XCTestWD/XCTestWD/Server/XCTestWDController.swift CompileSwift normal x86_64 /Users/raytrejo/node_modules/xctestwd/XCTestWD/XCTestWD/Server/Controllers/XCTestWDAlertController.swift CompileSwift normal x86_64 /Users/raytrejo/node_modules/xctestwd/XCTestWD/XCTestWD/Server/Controllers/XCTestWDElementController.swift CompileSwift normal x86_64 /Users/raytrejo/node_modules/xctestwd/XCTestWD/XCTestWD/Server/Controllers/XCTestWDScreenshotController.swift CompileSwift normal x86_64 /Users/raytrejo/node_modules/xctestwd/XCTestWD/XCTestWD/Server/Controllers/XCTestWDSessionController.swift CompileSwift normal x86_64 /Users/raytrejo/node_modules/xctestwd/XCTestWD/XCTestWD/Server/Controllers/XCTestWDSourceController.swift CompileSwift normal x86_64 /Users/raytrejo/node_modules/xctestwd/XCTestWD/XCTestWD/Server/Controllers/XCTestWDTitleController.swift CompileSwift normal x86_64 /Users/raytrejo/node_modules/xctestwd/XCTestWD/XCTestWD/Server/Controllers/XCTestWDUrlController.swift CompileSwift normal x86_64 /Users/raytrejo/node_modules/xctestwd/XCTestWD/XCTestWD/Server/Controllers/XCTestWDWindowController.swift CompileSwift normal x86_64 /Users/raytrejo/node_modules/xctestwd/XCTestWD/XCTestWD/Server/Modules/XCTestWDAlert.swift CompileSwift normal x86_64 /Users/raytrejo/node_modules/xctestwd/XCTestWD/XCTestWD/Server/Modules/XCTestWDErrors.swift CompileSwift normal x86_64 /Users/raytrejo/node_modules/xctestwd/XCTestWD/XCTestWD/Server/Modules/XCTestWDReponse.swift CompileSwift normal x86_64 /Users/raytrejo/node_modules/xctestwd/XCTestWD/XCTestWD/Server/XCTestWDFailureProofTestCase.swift CompileSwift normal x86_64 /Users/raytrejo/node_modules/xctestwd/XCTestWD/XCTestWD/Server/Modules/XCTestWDSession.swift CompileSwift normal x86_64 /Users/raytrejo/node_modules/xctestwd/XCTestWD/XCTestWD/Server/Modules/XCTestWDStatus.swift CompileSwift normal x86_64 /Users/raytrejo/node_modules/xctestwd/XCTestWD/XCTestWD/Server/Modules/XCUIElementTypeTransformer.swift CompileSwift normal x86_64 /Users/raytrejo/node_modules/xctestwd/XCTestWD/XCTestWD/Server/Modules/Extensions/XCTestWDFindElementUtils.swift CompileSwift normal x86_64 /Users/raytrejo/node_modules/xctestwd/XCTestWD/XCTestWD/Server/Modules/Extensions/XCTestWDMathUtils.swift CompileSwift normal x86_64 /Users/raytrejo/node_modules/xctestwd/XCTestWD/XCTestWD/Server/Modules/Extensions/XCTestWDXPath.swift CompileSwift normal x86_64 /Users/raytrejo/node_modules/xctestwd/XCTestWD/XCTestWD/Server/Modules/Utils/XCTestWDAccessibility.swift CompileSwift normal x86_64 /Users/raytrejo/node_modules/xctestwd/XCTestWD/XCTestWD/Server/Modules/Utils/XCTestWDApplicationTree.swift CompileSwiftSources normal x86_64 com.apple.xcode.tools.swift.compiler (22 failures) simulator optimization .xctestrun file generated: undefined Successfully updated Bundle Id, but no Team Id was provided. Please update your team id manually in /Users/raytrejo/node_modules/xctestwd/XCTestWD/XCTestWD.xcodeproj/project.pbxproj, or reinstall the module with DEVELOPMENT_TEAM_ID in environment variable.

core-js@2.6.9 postinstall /Users/raytrejo/node_modules/core-js node scripts/postinstall || echo "ignore"

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!

The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:

https://opencollective.com/core-js https://www.patreon.com/zloirock

Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)

npm WARN react-syntax-highlighter@7.0.4 requires a peer of react@>= 0.14.0 but none is installed. You must install peer dependencies yourself. npm WARN raytrejo@1.0.0 No description npm WARN raytrejo@1.0.0 No repository field.

try app-inspector -u xxxx --verbose for more log detail.

macaca-bot commented 5 years ago

This is the translated issue:


Installing app-inspector fails with xcode 11 .0

Environment check:

`Bash $ Npm i macaca-cli -g && macaca doctor ` macaca-doctor version: 2.0.18   Node.js checklist:   node env: / usr / local / bin / node   node version: v11.13.0

  iOS checklist:

  macOS version: 10.14.6   Xcode Command Line Tools is ready, version: 2354.   xcodebuild version: 11.0   iproxy [usbmuxd] is installed at: / usr / local / bin / iproxy   ios_webkit_debug_proxy is installed at: / usr / local / bin / ios_webkit_debug_proxy

  Android checklist:

  JAVA version is 1.8   JAVA_HOME is set to / Library / Java / JavaVirtualMachines / jdk1.8.0_211.jdk / Contents / Home   ANDROID_HOME is set to / Users / raytrejo / android /   Platforms is set to / Users / raytrejo / android / platforms / android-29   ADB tool is set to / Users / raytrejo / android / platform-tools / adb   Command Line Tools: gradle is uninstalled

  Installed driver list:

xcode version: 11.0 (11A420a)

BUILD FAILED

The following build commands failed: CompileSwift normal x86_64 /Users/raytrejo/node_modules/xctestwd/XCTestWD/XCTestWD/Server/XCTestWDController.swift CompileSwift normal x86_64 /Users/raytrejo/node_modules/xctestwd/XCTestWD/XCTestWD/Server/Controllers/XCTestWDAlertController.swift CompileSwift normal x86_64 /Users/raytrejo/node_modules/xctestwd/XCTestWD/XCTestWD/Server/Controllers/XCTestWDElementController.swift CompileSwift normal x86_64 /Users/raytrejo/node_modules/xctestwd/XCTestWD/XCTestWD/Server/Controllers/XCTestWDScreenshotController.swift CompileSwift normal x86_64 /Users/raytrejo/node_modules/xctestwd/XCTestWD/XCTestWD/Server/Controllers/XCTestWDSessionController.swift CompileSwift normal x86_64 /Users/raytrejo/node_modules/xctestwd/XCTestWD/XCTestWD/Server/Controllers/XCTestWDSourceController.swift CompileSwift normal x86_64 /Users/raytrejo/node_modules/xctestwd/XCTestWD/XCTestWD/Server/Controllers/XCTestWDTitleController.swift CompileSwift normal x86_64 /Users/raytrejo/node_modules/xctestwd/XCTestWD/XCTestWD/Server/Controllers/XCTestWDUrlController.swift CompileSwift normal x86_64 /Users/raytrejo/node_modules/xctestwd/XCTestWD/XCTestWD/Server/Controllers/XCTestWDWindowController.swift CompileSwift normal x86_64 /Users/raytrejo/node_modules/xctestwd/XCTestWD/XCTestWD/Server/Modules/XCTestWDAlert.swift CompileSwift normal x86_64 /Users/raytrejo/node_modules/xctestwd/XCTestWD/XCTestWD/Server/Modules/XCTestWDErrors.swift CompileSwift normal x86_64 /Users/raytrejo/node_modules/xctestwd/XCTestWD/XCTestWD/Server/Modules/XCTestWDReponse.swift CompileSwift normal x86_64 /Users/raytrejo/node_modules/xctestwd/XCTestWD/XCTestWD/Server/XCTestWDFailureProofTestCase.swift CompileSwift normal x86_64 /Users/raytrejo/node_modules/xctestwd/XCTestWD/XCTestWD/Server/Modules/XCTestWDSession.swift CompileSwift normal x86_64 /Users/raytrejo/node_modules/xctestwd/XCTestWD/XCTestWD/Server/Modules/XCTestWDStatus.swift CompileSwift normal x86_64 /Users/raytrejo/node_modules/xctestwd/XCTestWD/XCTestWD/Server/Modules/XCUIElementTypeTransformer.swift CompileSwift normal x86_64 /Users/raytrejo/node_modules/xctestwd/XCTestWD/XCTestWD/Server/Modules/Extensions/XCTestWDFindElementUtils.swift CompileSwift normal x86_64 /Users/raytrejo/node_modules/xctestwd/XCTestWD/XCTestWD/Server/Modules/Extensions/XCTestWDMathUtils.swift CompileSwift normal x86_64 /Users/raytrejo/node_modules/xctestwd/XCTestWD/XCTestWD/Server/Modules/Extensions/XCTestWDXPath.swift CompileSwift normal x86_64 /Users/raytrejo/node_modules/xctestwd/XCTestWD/XCTestWD/Server/Modules/Utils/XCTestWDAccessibility.swift CompileSwift normal x86_64 /Users/raytrejo/node_modules/xctestwd/XCTestWD/XCTestWD/Server/Modules/Utils/XCTestWDApplicationTree.swift CompileSwiftSources normal x86_64 com.apple.xcode.tools.swift.compiler (22 failures) simulator optimization .xctestrun file generated: undefined Successfully updated Bundle Id, but no Team Id was provided. Please update your team id manually in /Users/raytrejo/node_modules/xctestwd/XCTestWD/XCTestWD.xcodeproj/project.pbxproj, or reinstall the module with DEVELOPMENT_TEAM_ID in environment variable.

Core-js@2.6.9 postinstall / Users / raytrejo / node_modules / core-js Node scripts / postinstall || echo "ignore"

Thank you for using core-js (https://github.com/zloirock/core-js) for polyfilling JavaScript standard library!

The project needs your help Please consider supporting of core-js on Open Collective or Patreon!:

Https://opencollective.com/core-js Https://www.patreon.com/zloirock

Also, the author of core-js (https://github.com/zloirock) is looking for a good job -)

npm WARN react-syntax-highlighter@7.0.4 requires a peer of react @> = 0.14.0 but none is installed. You must install peer dependencies yourself. npm WARN raytrejo@1.0.0 No description npm WARN raytrejo@1.0.0 No repository field.

Try app-inspector -u xxxx --verbose for more log detail.

hemche commented 5 years ago

follow steps here at https://github.com/macacajs/app-inspector#ios-real-device and see if you get past this error.

WhalenMarting commented 5 years ago

I had the same problem when I updated to xcode11, Here are the tips when compiling:

Module compiled with Swift 5.1 cannot be imported by the Swift 5.1.2 compiler: /usr/local/lib/node_modules/app-inspector/node_modules/_xctestwd@1.4.21@xctestwd/Carthage/Build/iOS/Swifter.framework/Modules/Swifter.swiftmodule/x86_64-apple-ios-simulator.swiftmodule

My environment is Macos10.14.6 xcode Version 11.2 (11B52)

paradite commented 4 years ago

should be fixed now. if still having issues, please create new issue here: https://github.com/alibaba/macaca/issues

rayt8909 commented 4 years ago

npm install -g app-inspector the version did not change? app-inspector@2.0.24

paradite commented 4 years ago

npm install -g app-inspector the version did not change? app-inspector@2.0.24

yes. uninstalling and reinstalling should fix it. only dependency xctestwd's version was updated.