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

Build succeeds but execution fails on kill-app #253

Open
kpranavk opened this issue Aug 7, 2019 · 3 comments
Open

Build succeeds but execution fails on kill-app #253

kpranavk opened this issue Aug 7, 2019 · 3 comments

Comments

@kpranavk
Copy link

kpranavk commented Aug 7, 2019

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

@jmoody
Copy link
Contributor

jmoody commented Aug 8, 2019

iOSDeviceManager is trying to load private libraries and failing. This is not uncommon with new versions of Xcode. We will eventually have a fix for this. You are welcome to try to fix by pulling the calabash/FBSimulatorControl fork and experimenting with the FBControlCoreFrameworkLoader loadPrivateFrameworksOrAbort method.

@kpranavk
Copy link
Author

Hi there, any update on this? Is there an ETA on the fix?

@jmoody
Copy link
Contributor

jmoody commented Oct 15, 2019

This is definitely fixed now on develop and master.

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

2 participants