Skip to content

Build succeeds but execution fails on kill-app #253

@kpranavk

Description

@kpranavk

I managed to finally build using Xcode 10.3 however on execution the kill-app feature, I get this error. I don't find any folders by name /usr/lib/swift. I thought Swift was installed as part of Xcode.

all I want to do is kill an app on iOS. I am using the syntax
iOSDeviceManager com.apple.Maps -d <device_id>
and it doesn't work and I get Abort trap: 6

I have seen suggestions to embed swift libraries, fix run search paths etc but none of those changes helped.

2019-08-07 16:32:41.678 iOSDeviceManager[3117:168105] *** Assertion failure in -[FBDeviceControlFrameworkLoader_Essential loadPrivateFrameworksOrAbort], /Users/Ivan/Documents/repos/Xamarin.UITest/FBSimulatorControl/FBControlCore/Utility/FBControlCoreFrameworkLoader.m:84
2019-08-07 16:32:41.679 iOSDeviceManager[3117:168105] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Failed to load private frameworks for FBDeviceControl with error Error Domain=com.facebook.FBControlCore Code=0 "Could not load dylib /usr/lib/swift/libswiftCore.dylib with dlopen: dlopen(/usr/lib/swift/libswiftCore.dylib, 10): image not found" UserInfo={NSLocalizedDescription=Could not load dylib /usr/lib/swift/libswiftCore.dylib with dlopen: dlopen(/usr/lib/swift/libswiftCore.dylib, 10): image not found}'
*** First throw call stack:
(
0 CoreFoundation 0x00007fff2faa7f15 _exceptionPreprocess + 256
1 libobjc.A.dylib 0x00007fff5bc11efb objc_exception_throw + 48
2 CoreFoundation 0x00007fff2fac2dfa +[NSException raise:format:arguments:] + 98
3 Foundation 0x00007fff31e84e0d -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 194
4 FBControlCore 0x00000001026c4e1b -[FBControlCoreFrameworkLoader loadPrivateFrameworksOrAbort] + 635
5 FBDeviceControl 0x000000010279249b +[FBDeviceSet initialize] + 75
6 libobjc.A.dylib 0x00007fff5bc14898 CALLING_SOME
+initialize_METHOD + 19
7 libobjc.A.dylib 0x00007fff5bc04b8d _class_initialize + 282
8 libobjc.A.dylib 0x00007fff5bc04595 lookUpImpOrForward + 238
9 libobjc.A.dylib 0x00007fff5bc04014 _objc_msgSend_uncached + 68
10 iOSDeviceManager 0x0000000102610765 +[PhysicalDevice withID:] + 123
11 iOSDeviceManager 0x0000000102619655 +[Device withID:] + 118
12 iOSDeviceManager 0x000000010261c9ba +[Command deviceFromArgs:] + 130
13 iOSDeviceManager 0x000000010260ca5a +[KillAppCommand execute:] + 45
14 iOSDeviceManager 0x000000010261f49f +[CLI process:] + 1110
15 iOSDeviceManager 0x000000010260a8c5 main + 121
16 libdyld.dylib 0x00007fff5ccd8ed9 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions