macacajs / app-inspector

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

can't use on xcode12 and iOS14 #254

Closed Shaobo-Zhang-Bose closed 3 years ago

Shaobo-Zhang-Bose commented 3 years ago

Environment check:

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

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

macaca-bot commented 3 years ago

This is the translated issue:


can't use on xcode12 and iOS14

Environment check:

`Bash $ Npm i macaca-cli -g && macaca doctor `


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

mariushorvat commented 3 years ago

these are the errors when I run: app-inspector -u xxxx --verbose on IOS 14 - Xcode 12

xctest-client.js:222:18 [master] pid:17443 Testing failed: Module compiled with Swift 5.2 cannot be imported by the Swift 5.3 compiler: /usr/local/lib/node_modules/app-inspector/node_modules/xctestwd/Carthage/Build/iOS/Swifter.framework/Modules/Swifter.swiftmodule/x86_64-apple-ios-simulator.swiftmodule Testing cancelled because the build failed.

TEST FAILED

The following build commands failed: CompileSwift normal x86_64 /usr/local/lib/node_modules/app-inspector/node_modules/xctestwd/XCTestWD/XCTestWD/Server/XCTestWDController.swift CompileSwift normal x86_64 /usr/local/lib/node_modules/app-inspector/node_modules/xctestwd/XCTestWD/XCTestWD/Server/Controllers/XCTestWDAlertController.swift CompileSwift normal x86_64 /usr/local/lib/node_modules/app-inspector/node_modules/xctestwd/XCTestWD/XCTestWD/Server/Controllers/XCTestWDElementController.swift CompileSwift normal x86_64 /usr/local/lib/node_modules/app-inspector/node_modules/xctestwd/XCTestWD/XCTestWD/Server/Controllers/XCTestWDScreenshotController.swift CompileS...

xctest-client.js:233:20 [master] pid:17443 please check project: /usr/local/lib/node_modules/app-inspector/node_modules/xctestwd/XCTestWD/XCTestWD.xcodeproj xctest-client.js:329:14 [master] pid:17443 killing runnerProc pid: 17479 xctest-client.js:245:16 [master] pid:17443 xctest client exit with code: 65, signal: null

kasia-heetch commented 3 years ago

I am having the same issue - any progress here? :pray:

Shaobo-Zhang-Bose commented 3 years ago

If I use xcode 12 to build, it is failed to build. If I use xcode 11 to build, it can build successfully, but it fail to connect to iOS14.

tking16 commented 3 years ago

Same issue here, got a different error to original post though I believe

`iates.noindex/XCTestWD.build/Debug-iphonesimulator/XCTestWD.build/Objects-normal/x86_64/XCTestWDApplicationTree.o -index-store-path /Users/theo.king/Library/Developer/Xcode/DerivedData/XCTestWD-evljajykmolwzobrozpobiggeeea/Index/DataStore -index-system-modules /usr/local/lib/node_modules/app-inspector/node_modules/xctestwd/XCTestWD/XCTestWD/Server/XCTestWDController.swift:9:8: error: module compiled with Swift 5.1.2 cannot be imported by the Swift 5.3 compiler: /usr/local/lib/node_modules/app-inspector/node_modules/xctestwd/Carthage/Build/iOS/Swifter.framework/Modules/Swifter.swiftmodule/x86_64-apple-ios-simulator.swiftmodule import Swifter ^

xctest-client.js:206:16 [master] pid:20631 Test session results, code coverage, and logs: /Users/theo.king/Library/Developer/Xcode/DerivedData/XCTestWD-evljajykmolwzobrozpobiggeeea/Logs/Test/Run-XCTestWDUITests-2020.10.19_10-59-27-+0100.xcresult

xctest-client.js:222:18 [master] pid:20631 Testing failed: Module compiled with Swift 5.1.2 cannot be imported by the Swift 5.3 compiler: /usr/local/lib/node_modules/app-inspector/node_modules/xctestwd/Carthage/Build/iOS/Swifter.framework/Modules/Swifter.swiftmodule/x86_64-apple-ios-simulator.swiftmodule Testing cancelled because the build failed.

** TEST FAILED **

The following build commands failed: CompileSwift normal x86_64 /usr/local/lib/node_modules/app-inspector/node_modules/xctestwd/XCTestWD/XCTestWD/Server/XCTestWDController.swift CompileSwift normal x86_64 /usr/local/lib/node_modules/app-inspector/node_modules/xctestwd/XCTestWD/XCTestWD/Server/Controllers/XCTestWDAlertController.swift CompileSwift normal x86_64 /usr/local/lib/node_modules/app-inspector/node_modules/xctestwd/XCTestWD/XCTestWD/Server/Controllers/XCTestWDElementController.swift CompileSwift normal x86_64 /usr/local/lib/node_modules/app-inspector/node_modules/xctestwd/XCTestWD/XCTestWD/Server/Controllers/XCTestWDScreenshotController.swift Compil...

xctest-client.js:233:20 [master] pid:20631 please check project: /usr/local/lib/node_modules/app-inspector/node_modules/xctestwd/XCTestWD/XCTestWD.xcodeproj xctest-client.js:329:14 [master] pid:20631 killing runnerProc pid: 20634 xctest-client.js:245:16 [master] pid:20631 xctest client exit with code: 65, signal: null`

ganjarpanji commented 3 years ago

any other workaround inspector besides appium-desktop and macaca-inspector ?

kmilic commented 3 years ago

I'm having same issue with failed build when using xcode 12 and thus not being able to use Macaca for automation on iOS 14. Can you please suggest workaround or let us know if there is a plan to support iOS 14.

tking16 commented 3 years ago

Macaca is clearly dead... You guys are better off using the Appium inspector XCode's built-in app inspector

mariushorvat commented 3 years ago

I had found a workaround (if you guys still want to use Macaca).

It works but you will need to have now 2 Xcode's side by side.

paradite commented 3 years ago

Macaca is clearly dead... You guys are better off using the Appium inspector XCode's built-in app inspector

Sorry I was busy with other things, taking a look this week.

You can use the walkaround that @mariushorvat suggested, or you can manually compile XCTestWD Carthage dependencies and replace the old dependencies copied over from xctestwd-frameworks with new ones. the xctestwd-frameworks is merely an installation-step optimization to pre-compile the Carthage dependencies and save some time. Unfortunately it needs to be updated with every Swift update.

Meanwhile, let's track the issue here: https://github.com/alibaba/macaca/issues/985

tking16 commented 3 years ago

Thanks for the workaround and update!

paradite commented 3 years ago

Thanks for the workaround and update!

fixed. please remove the old app-inspector package and reinstall it