Code Monkey home page Code Monkey logo

automate's Issues

Project fails to build in carthage for version 1.4.3

Starting from a simple carthage.private file that contains github "PGSSoft/AutoMate", running carthage update leads to the following output:

Building scheme "AutoMate iOS" in AutoMate.xcworkspace
Build Failed
Task failed with exit code 65:

Looking in the log file, I see the following error

extensions/XCUIElementTypeQueryProvider+Any.swift:19:49: error: 'Type' is not a member type of 'XCUIElement'
func descendants(matching type: XCUIElement.Type) -> XCUIElementQuery
~~~~~~~~~~~ ^

** ARCHIVE FAILED **

The Type field above has single quote around it in the output file.

Everything works great for version 1.4.2

Is there something that needs to be set differently for 1.4.3?

The current version of swiftlint is failing the build.

When I try to build via Carthage, I get the following errors in the log while it is running swiftlint:

Loading configuration from '.swiftlint.yml'
Linting Swift files in current working directory
Linting 'AppUITestCase.swift' (1/121)
Linting 'AutoMateLaunchEnvironmentKeys.swift' (2/121)
Linting 'AutoMateLaunchEnvironments.swift' (3/121)
Linting 'Array.swift' (4/121)
Linting 'Bundle.swift' (5/121)
Linting 'CoreGraphics.swift' (6/121)
Linting 'Dictionary.swift' (7/121)
Linting 'Sequence.swift' (8/121)
Linting 'String.swift' (9/121)
Linting 'HealthAlert.swift' (10/121)
Linting 'KeyboardLocator.swift' (11/121)
Linting 'LaunchArguments.swift' (12/121)
Linting 'LaunchArgumentProtocols.swift' (13/121)
Linting 'LaunchArgumentValue.swift' (14/121)
Linting 'LaunchEnvironmentProtocols.swift' (15/121)
Linting 'LaunchEnvironments.swift' (16/121)
Linting 'LaunchEnvironmentValue.swift' (17/121)
Linting 'LaunchOptionProtocol.swift' (18/121)
Linting 'LaunchOptionsSet.swift' (19/121)
Linting 'LocationAlert.swift' (20/121)
Linting 'Locator.swift' (21/121)
Linting 'HardwareKeyboard.swift' (22/121)
Linting 'HealthAlerts.swift' (23/121)
Linting 'LocationAlerts.swift' (24/121)
Linting 'ServiceRequestAlerts.swift' (25/121)
Linting 'SoftwareKeyboard.swift' (26/121)
Linting 'SystemCountry.swift' (27/121)
Linting 'SystemLanguage.swift' (28/121)
Linting 'BaseAppPage.swift' (29/121)
/Users/ramij286/Documents/Development/wdpr-dine-opp/Carthage/Checkouts/AutoMate/AutoMate/Models/HealthAlerts.swift:1:93: error: Superfluous Disable Command Violation: SwiftLint rule 'type_body_length' did not trigger a violation in the disabled region. Please remove the disable command. (superfluous_disable_command)
/Users/ramij286/Documents/Development/wdpr-dine-opp/Carthage/Checkouts/AutoMate/AutoMate/Models/HealthAlerts.swift:1:93: error: Superfluous Disable Command Violation: SwiftLint rule 'trailing_comma' did not trigger a violation in the disabled region. Please remove the disable command. (superfluous_disable_command)
/Users/ramij286/Documents/Development/wdpr-dine-opp/Carthage/Checkouts/AutoMate/AutoMate/Models/HealthAlerts.swift:1:93: error: Superfluous Disable Command Violation: SwiftLint rule 'line_length' did not trigger a violation in the disabled region. Please remove the disable command. (superfluous_disable_command)
/Users/ramij286/Documents/Development/wdpr-dine-opp/Carthage/Checkouts/AutoMate/AutoMate/Models/HealthAlerts.swift:1:93: error: Superfluous Disable Command Violation: SwiftLint rule 'file_length' did not trigger a violation in the disabled region. Please remove the disable command. (superfluous_disable_command)
/Users/ramij286/Documents/Development/wdpr-dine-opp/Carthage/Checkouts/AutoMate/AutoMate/Models/LocationAlerts.swift:1:93: error: Superfluous Disable Command Violation: SwiftLint rule 'type_body_length' did not trigger a violation in the disabled region. Please remove the disable command. (superfluous_disable_command)
/Users/ramij286/Documents/Development/wdpr-dine-opp/Carthage/Checkouts/AutoMate/AutoMate/Models/LocationAlerts.swift:1:93: error: Superfluous Disable Command Violation: SwiftLint rule 'trailing_comma' did not trigger a violation in the disabled region. Please remove the disable command. (superfluous_disable_command)
/Users/ramij286/Documents/Development/wdpr-dine-opp/Carthage/Checkouts/AutoMate/AutoMate/Models/LocationAlerts.swift:1:93: error: Superfluous Disable Command Violation: SwiftLint rule 'line_length' did not trigger a violation in the disabled region. Please remove the disable command. (superfluous_disable_command)
/Users/ramij286/Documents/Development/wdpr-dine-opp/Carthage/Checkouts/AutoMate/AutoMate/Models/LocationAlerts.swift:1:93: error: Superfluous Disable Command Violation: SwiftLint rule 'file_length' did not trigger a violation in the disabled region. Please remove the disable command. (superfluous_disable_command)
Linting 'HealthPermissionPage.swift' (30/121)
/Users/ramij286/Documents/Development/wdpr-dine-opp/Carthage/Checkouts/AutoMate/AutoMate/Models/HardwareKeyboard.swift:1:93: error: Superfluous Disable Command Violation: SwiftLint rule 'type_body_length' did not trigger a violation in the disabled region. Please remove the disable command. (superfluous_disable_command)
/Users/ramij286/Documents/Development/wdpr-dine-opp/Carthage/Checkouts/AutoMate/AutoMate/Models/HardwareKeyboard.swift:1:93: error: Superfluous Disable Command Violation: SwiftLint rule 'trailing_comma' did not trigger a violation in the disabled region. Please remove the disable command. (superfluous_disable_command)
/Users/ramij286/Documents/Development/wdpr-dine-opp/Carthage/Checkouts/AutoMate/AutoMate/Models/HardwareKeyboard.swift:1:93: error: Superfluous Disable Command Violation: SwiftLint rule 'line_length' did not trigger a violation in the disabled region. Please remove the disable command. (superfluous_disable_command)
/Users/ramij286/Documents/Development/wdpr-dine-opp/Carthage/Checkouts/AutoMate/AutoMate/Models/HardwareKeyboard.swift:1:93: error: Superfluous Disable Command Violation: SwiftLint rule 'file_length' did not trigger a violation in the disabled region. Please remove the disable command. (superfluous_disable_command)
Linting 'ModalPage.swift' (31/121)
Linting 'PushedPage.swift' (32/121)
/Users/ramij286/Documents/Development/wdpr-dine-opp/Carthage/Checkouts/AutoMate/AutoMate/Models/ServiceRequestAlerts.swift:1:93: error: Superfluous Disable Command Violation: SwiftLint rule 'identifier_name' did not trigger a violation in the disabled region. Please remove the disable command. (superfluous_disable_command)
/Users/ramij286/Documents/Development/wdpr-dine-opp/Carthage/Checkouts/AutoMate/AutoMate/Models/ServiceRequestAlerts.swift:1:93: error: Superfluous Disable Command Violation: SwiftLint rule 'type_body_length' did not trigger a violation in the disabled region. Please remove the disable command. (superfluous_disable_command)
/Users/ramij286/Documents/Development/wdpr-dine-opp/Carthage/Checkouts/AutoMate/AutoMate/Models/ServiceRequestAlerts.swift:1:93: error: Superfluous Disable Command Violation: SwiftLint rule 'trailing_comma' did not trigger a violation in the disabled region. Please remove the disable command. (superfluous_disable_command)
/Users/ramij286/Documents/Development/wdpr-dine-opp/Carthage/Checkouts/AutoMate/AutoMate/Models/ServiceRequestAlerts.swift:1:93: error: Superfluous Disable Command Violation: SwiftLint rule 'line_length' did not trigger a violation in the disabled region. Please remove the disable command. (superfluous_disable_command)
/Users/ramij286/Documents/Development/wdpr-dine-opp/Carthage/Checkouts/AutoMate/AutoMate/Models/SoftwareKeyboard.swift:1:93: error: Superfluous Disable Command Violation: SwiftLint rule 'type_body_length' did not trigger a violation in the disabled region. Please remove the disable command. (superfluous_disable_command)
/Users/ramij286/Documents/Development/wdpr-dine-opp/Carthage/Checkouts/AutoMate/AutoMate/Models/SoftwareKeyboard.swift:1:93: error: Superfluous Disable Command Violation: SwiftLint rule 'trailing_comma' did not trigger a violation in the disabled region. Please remove the disable command. (superfluous_disable_command)
/Users/ramij286/Documents/Development/wdpr-dine-opp/Carthage/Checkouts/AutoMate/AutoMate/Models/SoftwareKeyboard.swift:1:93: error: Superfluous Disable Command Violation: SwiftLint rule 'line_length' did not trigger a violation in the disabled region. Please remove the disable command. (superfluous_disable_command)
/Users/ramij286/Documents/Development/wdpr-dine-opp/Carthage/Checkouts/AutoMate/AutoMate/Models/SoftwareKeyboard.swift:1:93: error: Superfluous Disable Command Violation: SwiftLint rule 'file_length' did not trigger a violation in the disabled region. Please remove the disable command. (superfluous_disable_command)
Linting 'SmartXCUICoordinate.swift' (33/121)
/Users/ramij286/Documents/Development/wdpr-dine-opp/Carthage/Checkouts/AutoMate/AutoMate/Models/SystemCountry.swift:1:93: error: Superfluous Disable Command Violation: SwiftLint rule 'trailing_comma' did not trigger a violation in the disabled region. Please remove the disable command. (superfluous_disable_command)
/Users/ramij286/Documents/Development/wdpr-dine-opp/Carthage/Checkouts/AutoMate/AutoMate/Models/SystemCountry.swift:1:93: error: Superfluous Disable Command Violation: SwiftLint rule 'line_length' did not trigger a violation in the disabled region. Please remove the disable command. (superfluous_disable_command)
Linting 'SystemAlert.swift' (34/121)
/Users/ramij286/Documents/Development/wdpr-dine-opp/Carthage/Checkouts/AutoMate/AutoMate/Models/SystemLanguage.swift:1:93: error: Superfluous Disable Command Violation: SwiftLint rule 'trailing_comma' did not trigger a violation in the disabled region. Please remove the disable command. (superfluous_disable_command)
/Users/ramij286/Documents/Development/wdpr-dine-opp/Carthage/Checkouts/AutoMate/AutoMate/Models/SystemLanguage.swift:1:93: error: Superfluous Disable Command Violation: SwiftLint rule 'line_length' did not trigger a violation in the disabled region. Please remove the disable command. (superfluous_disable_command)
Linting 'SystemLaunchArguments.swift' (35/121)
Linting 'TestLauncher.swift' (36/121)
Linting 'XCTestCase+Identifiable.swift' (37/121)
Linting 'XCTestCase.swift' (38/121)
Linting 'XCUIApplication.swift' (39/121)
Linting 'XCUIElement+Swipe.swift' (40/121)
Linting 'XCUIElement.swift' (41/121)
Linting 'XCUIElementQuery+Locator.swift' (42/121)
Linting 'XCUIElementQuery+Predicate.swift' (43/121)
Linting 'XCUIElementQuery.swift' (44/121)
Linting 'XCUIElementTypeQueryProvider+Any.swift' (45/121)
Linting 'AppDelegate.swift' (46/121)
Linting 'AppearingViewController.swift' (47/121)
Linting 'BluetoothViewController.swift' (48/121)
Linting 'CalendarViewController.swift' (49/121)
Linting 'CallsViewController.swift' (50/121)
Linting 'CameraViewController.swift' (51/121)
Linting 'CollectionViewController.swift' (52/121)
Linting 'ContactsDataStore.swift' (53/121)
Linting 'ContactsViewController.swift' (54/121)
Linting 'ContactTableViewCell.swift' (55/121)
Linting 'Date+Helpers.swift' (56/121)
Linting 'EventsDataStore.swift' (57/121)
Linting 'EventTableViewCell.swift' (58/121)
Linting 'EventViewModel.swift' (59/121)
Linting 'HealthKitViewController.swift' (60/121)
Linting 'HomeKitViewController.swift' (61/121)
Linting 'LaunchEnvironmentsDataViewController.swift' (62/121)
Linting 'LaunchEnvironmentsTableViewController.swift' (63/121)
Linting 'LaunchEnvironmentTableDataSource.swift' (64/121)
Linting 'LaunchOptionsHandler.swift' (65/121)
Linting 'LocationAlwaysViewController.swift' (66/121)
Linting 'LocationWhenInUseViewController.swift' (67/121)
Linting 'LongTableViewController.swift' (68/121)
Linting 'MainViewController.swift' (69/121)
Linting 'MediaLibraryViewController.swift' (70/121)
Linting 'MicrophoneViewController.swift' (71/121)
Linting 'MiddleButtonViewController.swift' (72/121)
Linting 'MotionViewController.swift' (73/121)
Linting 'PermissionsViewController.swift' (74/121)
Linting 'PermissionTableViewCell.swift' (75/121)
Linting 'PhotoViewController.swift' (76/121)
Linting 'RemindersDataStore.swift' (77/121)
Linting 'RemindersViewController.swift' (78/121)
Linting 'ReminderTableViewCell.swift' (79/121)
Linting 'ReminderViewModel.swift' (80/121)
Linting 'RotationViewController.swift' (81/121)
Linting 'ScrollingHorizontallyViewController.swift' (82/121)
Linting 'ScrollingViewController.swift' (83/121)
Linting 'SiriViewController.swift' (84/121)
Linting 'SpeechRecognitionViewController.swift' (85/121)
Linting 'TableViewDataProtocols.swift' (86/121)
Linting 'UIKit+Extensions.swift' (87/121)
Linting 'ContactsSavedDataTests.swift' (88/121)
Linting 'ContactsData.swift' (89/121)
Linting 'EventKitData.swift' (90/121)
Linting 'EventKitSavedDataTests.swift' (91/121)
Linting 'AdditionalExtensionsTests.swift' (92/121)
Linting 'XCUIElementExtensionTests.swift' (93/121)
Linting 'XCUIElementQueryTests.swift' (94/121)
Linting 'ForMovieTests.swift' (95/121)
Linting 'LaunchArgumentsWithAutoMateTests.swift' (96/121)
Linting 'LaunchArgumentsWithoutAutoMateTests.swift' (97/121)
Linting 'AppearingPage.swift' (98/121)
Linting 'AutoMateLaunchEnvironmentsPage.swift' (99/121)
Linting 'CollectionPage.swift' (100/121)
Linting 'ContactsListPage.swift' (101/121)
Linting 'EventsListPage.swift' (102/121)
Linting 'MainPage.swift' (103/121)
Linting 'MiddleButtonPage.swift' (104/121)
Linting 'PermissionsPage.swift' (105/121)
Linting 'PermissionsSubPages.swift' (106/121)
Linting 'PushedPage.swift' (107/121)
Linting 'RemindersListPage.swift' (108/121)
Linting 'RotatePage.swift' (109/121)
Linting 'ScrollPage.swift' (110/121)
Linting 'ScrollVerticallyPage.swift' (111/121)
Linting 'TablePage.swift' (112/121)
Linting 'TextInputPage.swift' (113/121)
Linting 'PermissionsTests.swift' (114/121)
Linting 'TestLauncher.swift' (115/121)
Linting 'ApplicationsFactory.swift' (116/121)
Linting 'LaunchOptionsFactory.swift' (117/121)
Linting 'LaunchOptionsSetTests.swift' (118/121)
Linting 'SystemLaunchArgumentsTests.swift' (119/121)
Linting 'SystemLaunchEnvironmentsTests.swift' (120/121)
Linting 'TestLauncherTests.swift' (121/121)
/Users/ramij286/Documents/Development/wdpr-dine-opp/Carthage/Checkouts/AutoMate/AutoMateTests/LaunchOptionsSetTests.swift:77:28: warning: Is Disjoint Violation: Prefer using `Set.isDisjoint(with:)` over `Set.intersection(_:).isEmpty`. (is_disjoint)
Done linting! Found 25 violations, 24 serious in 121 files.

After changing swift optimization level, the compile still failed

Hello,
My carthage update doesn't work at the compiling. I followed tips online to change the optimization level to "fast single" and rerun, but got below errors.
Please help out. I'm interested in the framework and would like to have a try in our UI testing.
Thanks.

warning: redundant conformance constraint 'Self': 'SystemMessages'
public protocol HealthAlertOk: SystemAlertOk, SystemMessages { }
                                              ^
/Users/QArt/AB/SVNCode/iOS/Pay/branches/GatewayServiceNewUI/AnBangPay_ios/HisunPayUITests/CarthageBuild/Carthage/Checkouts/AutoMate/AutoMate/HealthAlert.swift:15:32: note: conformance constraint 'Self': 'SystemMessages' implied here
public protocol HealthAlertOk: SystemAlertOk, SystemMessages { }
                               ^

<unknown>:0: error: unable to execute command: Segmentation fault: 11
<unknown>:0: error: compile command failed due to signal 11 (use -v to see invocation)
** ARCHIVE FAILED **


The following build commands failed:
	CompileSwift normal arm64 /Users/QArt/AB/SVNCode/iOS/Pay/branches/GatewayServiceNewUI/AnBangPay_ios/HisunPayUITests/CarthageBuild/Carthage/Checkouts/AutoMate/AutoMate/Models/HealthAlerts.swift
	CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler
(2 failures)

Build fails on Xcode 9.0.1

I am receiving the following warning while trying to build in Xcode 9.0.1 about a redundant protocol conformance, which is causing a segmentation fault in the build process.

/Users/ramij286/Documents/Development/AutoMate-jorge/AutoMate/HealthAlert.swift:15:47: warning: redundant conformance constraint 'Self': 'SystemMessages'
public protocol HealthAlertOk: SystemAlertOk, SystemMessages { }
                                              ^
/Users/ramij286/Documents/Development/AutoMate-jorge/AutoMate/HealthAlert.swift:15:32: note: conformance constraint 'Self': 'SystemMessages' implied here
public protocol HealthAlertOk: SystemAlertOk, SystemMessages { }
                               ^
0  swift                    0x000000011106edba PrintStackTraceSignalHandler(void*) + 42
1  swift                    0x000000011106e1f6 SignalHandler(int) + 662
2  libsystem_platform.dylib 0x00007fff92267b3a _sigtramp + 26
3  libsystem_platform.dylib 0x00007fff5228f9d0 _sigtramp + 3221388976
4  swift                    0x000000010db2598f swift::irgen::MetadataPath::follow(swift::irgen::IRGenFunction&, swift::irgen::LocalTypeDataKey, llvm::Value*, swift::EncodedSequence<swift::irgen::MetadataPath::Component>::iterator, swift::EncodedSequence<swift::irgen::MetadataPath::Component>::iterator, swift::EncodedSequence<swift::irgen::MetadataPath::Component>::Map<llvm::Value*>*) + 399
5  swift                    0x000000010da27c20 swift::irgen::emitArchetypeWitnessTableRef(swift::irgen::IRGenFunction&, swift::CanTypeWrapper<swift::ArchetypeType>, swift::ProtocolDecl*) + 1264
6  swift                    0x000000010db28b23 swift::irgen::emitWitnessTableRef(swift::irgen::IRGenFunction&, swift::CanType, llvm::Value**, swift::ProtocolConformanceRef) + 83
7  swift                    0x000000010db29a70 swift::irgen::emitWitnessMethodValue(swift::irgen::IRGenFunction&, swift::CanType, llvm::Value**, swift::SILDeclRef, swift::ProtocolConformanceRef, swift::irgen::Explosion&) + 192
8  swift                    0x000000010db7da81 swift::SILVisitor<(anonymous namespace)::IRGenSILFunction, void>::visit(swift::ValueBase*) + 6401
9  swift                    0x000000010db799b0 swift::irgen::IRGenModule::emitSILFunction(swift::SILFunction*) + 9152
10 swift                    0x000000010da843ee swift::irgen::IRGenerator::emitGlobalTopLevel() + 1022
11 swift                    0x000000010db5bb7b performIRGeneration(swift::IRGenOptions&, swift::ModuleDecl*, std::__1::unique_ptr<swift::SILModule, std::__1::default_delete<swift::SILModule> >, llvm::StringRef, llvm::LLVMContext&, swift::SourceFile*, llvm::GlobalVariable**, unsigned int) + 1243
12 swift                    0x000000010d9e20aa performCompile(swift::CompilerInstance&, swift::CompilerInvocation&, llvm::ArrayRef<char const*>, int&, swift::FrontendObserver*, swift::UnifiedStatsReporter*) + 16778
13 swift                    0x000000010d9dc6b4 swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) + 7716
14 swift                    0x000000010d9915d8 main + 12248
15 libdyld.dylib            0x00007fff92058235 start + 1

Alert for Push Notifications?

Just going through the lib and trying to automate "allow" for push notification registration.
Is there anything ready to use?

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.