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

Cannot detect simulator instance #41

Open
boozook opened this issue Feb 17, 2018 · 14 comments
Open

Cannot detect simulator instance #41

boozook opened this issue Feb 17, 2018 · 14 comments

Comments

@boozook
Copy link

boozook commented Feb 17, 2018

I always getting error no valid simulator instance but sim is already started and initially detected by dinghy.

    Finished dev [unoptimized + debuginfo] target(s) in 35.92 secs
(lldb) command source -s 1 '/var/folders/cr/y1wtyb1n2y777n_vwf22z9w00000gn/T/mobiledevice-rs-lldb.Gqd3iLNaZcr6/lldb-script'
process left in lldb state: invalid
error: no valid simulator instance
(lldb) command source -s 1 '/var/folders/cr/y1wtyb1n2y777n_vwf22z9w00000gn/T/mobiledevice-rs-lldb.V02por2HXcEI/lldb-script'
process left in lldb state: invalid
error: no valid simulator instance
~/Developer/Projects/test-proj > cargo dinghy devices
IosSimDevice { id: "796ABB82-3E3B-4DB3-AD49-5153E9CA32F9", name: "iPhone 4s", os: "9.1" }
~/Developer/Projects/test-proj > lldb --version
lldb-900.0.57
  Swift-4.0

Another try:

~/Developer/Projects/test-proj > cargo dinghy devices
IosSimDevice { id: "93447327-AC8C-48FF-B4ED-B3C9614CBFE3", name: "iPhone 4s iOS 8.4", os: "8.4" }
~/Developer/Projects/test-proj > cargo dinghy test
    Finished dev [unoptimized + debuginfo] target(s) in 0.0 secs
(lldb) command source -s 1 '/var/folders/cr/y1wtyb1n2y777n_vwf22z9w00000gn/T/mobiledevice-rs-lldb.n25n5Hu6vJtV/lldb-script'
process left in lldb state: invalid
error: no valid simulator instance
(lldb) command source -s 1 '/var/folders/cr/y1wtyb1n2y777n_vwf22z9w00000gn/T/mobiledevice-rs-lldb.kDQwoGcqnOCU/lldb-script'
process left in lldb state: invalid
error: no valid simulator instance
@kali
Copy link
Collaborator

kali commented Feb 19, 2018

Are you using Xcode 9 ? As far as we can tell, it completely broke the simulator support from LLDB, even though the actual phones are still OK.

Could you try XCode 8 instead ? You will need to install it and run xcode-select before running dinghy.

We will be looking for better ways to workaround this, but i doubt there is an easy fix. I'm afraid all we can really do from dinghy is detect the problem and offer suggestion, but we should definitely do that.

@boozook
Copy link
Author

boozook commented Feb 21, 2018

Yes, it was 9.1. @kali: Thank you! It works perfectly with Sim and iPad2.2 with iOS 9.x!

@boozook
Copy link
Author

boozook commented Feb 21, 2018

@kali But I have tried to run on the iPhone 4 with iOS 7.x and got

cargo dinghy devices
IosDevice { ptr: 0x7ff66ad18db0, id: "161e99fe25dd29ca57cd77096f2df8cf4467e97a", name: "℡", arch_cpu: "armv7" }

cargo dinghy test
    Finished dev [unoptimized + debuginfo] target(s) in 0.0 secs
error: e800009c

cargo dinghy test
    Finished dev [unoptimized + debuginfo] target(s) in 0.0 secs
error: e800009c

Building time in 0.0 secs because already built.

screen shot 2018-02-21 at 21 40 06

@kali
Copy link
Collaborator

kali commented Feb 21, 2018

Wow, this phone is a tiny bit old, I have never tested this configuration :)

The best source of these error code is here: https://www.theiphonewiki.com/wiki/MobileDevice_Library, and yours is nowhere in sight. As these APIs are not really public, it may be very hard to even get an idea of what is actually going wrong.

What you could do, if you're willing to spend time on this, is to have a look at https://github.com/phonegap/ios-deploy and see if it works for your iPhone 4. We have ported most of dinghy iOS support from these projects. If it does work with ios-deploy, there is a little chance we can actually find out what's wrong in dinghy...

@boozook
Copy link
Author

boozook commented Feb 21, 2018

So...
I created test iOS app with minis-ver = 7.1.
Built for generic iOS device & sign.

And ios-deploy successfully installed that onto the iPhone4.
But cannot connect debugger (yet).


~/Developer/Projects/xcodetestappios > (1) ios-deploy -b /Users/fzzr/Developer/Projects/xcodetestappios/Dinghy/Build/Products/Debug-iphoneos/Dinghy.app/ -c
[....] Waiting up to 5 seconds for iOS device to be connected
[....] Found 161e99fe25dd29ca57cd77096f2df8cf4467e97a (N90AP, iPhone 4 (GSM), iphoneos, armv7) a.k.a. '℡' connected through USB.
~/Developer/Projects/xcodetestappios > (1) ios-deploy -b /Users/fzzr/Developer/Projects/xcodetestappios/Dinghy/Build/Products/Debug-iphoneos/Dinghy.app/
[....] Waiting for iOS device to be connected
[....] Using 161e99fe25dd29ca57cd77096f2df8cf4467e97a (UNKN, Unknown Device, uknownos, unkarch).
------ Install phase ------
[  0%] Found 161e99fe25dd29ca57cd77096f2df8cf4467e97a (UNKN, Unknown Device, uknownos, unkarch) connected through WIFI, beginning install
[  7%] Copying /Users/fzzr/Developer/Projects/xcodetestappios/Dinghy/Build/Products/Debug-iphoneos/Dinghy.app/_CodeSignature/CodeResources to device
[  9%] Copying /Users/fzzr/Developer/Projects/xcodetestappios/Dinghy/Build/Products/Debug-iphoneos/Dinghy.app/Base.lproj/LaunchScreen.storyboardc/01J-lp-oVM-view-Ze5-6b-2t3.nib to device
[  9%] Copying /Users/fzzr/Developer/Projects/xcodetestappios/Dinghy/Build/Products/Debug-iphoneos/Dinghy.app/Base.lproj/LaunchScreen.storyboardc/Info.plist to device
[ 10%] Copying /Users/fzzr/Developer/Projects/xcodetestappios/Dinghy/Build/Products/Debug-iphoneos/Dinghy.app/Base.lproj/LaunchScreen.storyboardc/UIViewController-01J-lp-oVM.nib to device
[ 12%] Copying /Users/fzzr/Developer/Projects/xcodetestappios/Dinghy/Build/Products/Debug-iphoneos/Dinghy.app/Base.lproj/Main.storyboardc/BYZ-38-t0r-view-8bC-Xf-vdC~ipad.nib/objects-8.0+.nib to device
[ 13%] Copying /Users/fzzr/Developer/Projects/xcodetestappios/Dinghy/Build/Products/Debug-iphoneos/Dinghy.app/Base.lproj/Main.storyboardc/BYZ-38-t0r-view-8bC-Xf-vdC~ipad.nib/runtime.nib to device
[ 15%] Copying /Users/fzzr/Developer/Projects/xcodetestappios/Dinghy/Build/Products/Debug-iphoneos/Dinghy.app/Base.lproj/Main.storyboardc/BYZ-38-t0r-view-8bC-Xf-vdC~iphone.nib/objects-8.0+.nib to device
[ 16%] Copying /Users/fzzr/Developer/Projects/xcodetestappios/Dinghy/Build/Products/Debug-iphoneos/Dinghy.app/Base.lproj/Main.storyboardc/BYZ-38-t0r-view-8bC-Xf-vdC~iphone.nib/runtime.nib to device
[ 18%] Copying /Users/fzzr/Developer/Projects/xcodetestappios/Dinghy/Build/Products/Debug-iphoneos/Dinghy.app/Base.lproj/Main.storyboardc/UIViewController-BYZ-38-t0r~ipad.nib/objects-8.0+.nib to device
[ 19%] Copying /Users/fzzr/Developer/Projects/xcodetestappios/Dinghy/Build/Products/Debug-iphoneos/Dinghy.app/Base.lproj/Main.storyboardc/UIViewController-BYZ-38-t0r~ipad.nib/runtime.nib to device
[ 20%] Copying /Users/fzzr/Developer/Projects/xcodetestappios/Dinghy/Build/Products/Debug-iphoneos/Dinghy.app/Base.lproj/Main.storyboardc/UIViewController-BYZ-38-t0r~iphone.nib/objects-8.0+.nib to device
[ 21%] Copying /Users/fzzr/Developer/Projects/xcodetestappios/Dinghy/Build/Products/Debug-iphoneos/Dinghy.app/Base.lproj/Main.storyboardc/UIViewController-BYZ-38-t0r~iphone.nib/runtime.nib to device
[ 23%] Copying /Users/fzzr/Developer/Projects/xcodetestappios/Dinghy/Build/Products/Debug-iphoneos/Dinghy.app/Base.lproj/Main~ipad.storyboardc/Info-8.0+.plist to device
[ 24%] Copying /Users/fzzr/Developer/Projects/xcodetestappios/Dinghy/Build/Products/Debug-iphoneos/Dinghy.app/Base.lproj/Main~ipad.storyboardc/Info.plist to device
[ 26%] Copying /Users/fzzr/Developer/Projects/xcodetestappios/Dinghy/Build/Products/Debug-iphoneos/Dinghy.app/Base.lproj/Main~iphone.storyboardc/Info-8.0+.plist to device
[ 26%] Copying /Users/fzzr/Developer/Projects/xcodetestappios/Dinghy/Build/Products/Debug-iphoneos/Dinghy.app/Base.lproj/Main~iphone.storyboardc/Info.plist to device
[ 45%] Copying /Users/fzzr/Developer/Projects/xcodetestappios/Dinghy/Build/Products/Debug-iphoneos/Dinghy.app/Dinghy to device
[ 47%] Copying /Users/fzzr/Developer/Projects/xcodetestappios/Dinghy/Build/Products/Debug-iphoneos/Dinghy.app/embedded.mobileprovision to device
[ 48%] Copying /Users/fzzr/Developer/Projects/xcodetestappios/Dinghy/Build/Products/Debug-iphoneos/Dinghy.app/Info.plist to device
[ 49%] Copying /Users/fzzr/Developer/Projects/xcodetestappios/Dinghy/Build/Products/Debug-iphoneos/Dinghy.app/PkgInfo to device
[ 52%] CreatingStagingDirectory
[ 57%] ExtractingPackage
[ 60%] InspectingPackage
[ 60%] TakingInstallLock
[ 65%] PreflightingApplication
[ 70%] VerifyingApplication
[ 80%] InstallingApplication
[ 85%] PostflightingApplication
[ 90%] SandboxingApplication
[100%] Installed package /Users/fzzr/Developer/Projects/xcodetestappios/Dinghy/Build/Products/Debug-iphoneos/Dinghy.app/
~/Developer/Projects/xcodetestappios > (1) ios-deploy -b /Users/fzzr/Developer/Projects/xcodetestappios/Dinghy/Build/Products/Debug-iphoneos/Dinghy.app/ -d
[....] Waiting for iOS device to be connected
[....] Using 161e99fe25dd29ca57cd77096f2df8cf4467e97a (N90AP, iPhone 4 (GSM), iphoneos, armv7) a.k.a. '℡'.
------ Install phase ------
[  0%] Found 161e99fe25dd29ca57cd77096f2df8cf4467e97a (N90AP, iPhone 4 (GSM), iphoneos, armv7) a.k.a. '℡' connected through USB, beginning install
[  7%] Copying /Users/fzzr/Developer/Projects/xcodetestappios/Dinghy/Build/Products/Debug-iphoneos/Dinghy.app/_CodeSignature/CodeResources to device
[  9%] Copying /Users/fzzr/Developer/Projects/xcodetestappios/Dinghy/Build/Products/Debug-iphoneos/Dinghy.app/Base.lproj/LaunchScreen.storyboardc/01J-lp-oVM-view-Ze5-6b-2t3.nib to device
[  9%] Copying /Users/fzzr/Developer/Projects/xcodetestappios/Dinghy/Build/Products/Debug-iphoneos/Dinghy.app/Base.lproj/LaunchScreen.storyboardc/Info.plist to device
[ 10%] Copying /Users/fzzr/Developer/Projects/xcodetestappios/Dinghy/Build/Products/Debug-iphoneos/Dinghy.app/Base.lproj/LaunchScreen.storyboardc/UIViewController-01J-lp-oVM.nib to device
[ 12%] Copying /Users/fzzr/Developer/Projects/xcodetestappios/Dinghy/Build/Products/Debug-iphoneos/Dinghy.app/Base.lproj/Main.storyboardc/BYZ-38-t0r-view-8bC-Xf-vdC~ipad.nib/objects-8.0+.nib to device
[ 13%] Copying /Users/fzzr/Developer/Projects/xcodetestappios/Dinghy/Build/Products/Debug-iphoneos/Dinghy.app/Base.lproj/Main.storyboardc/BYZ-38-t0r-view-8bC-Xf-vdC~ipad.nib/runtime.nib to device
[ 15%] Copying /Users/fzzr/Developer/Projects/xcodetestappios/Dinghy/Build/Products/Debug-iphoneos/Dinghy.app/Base.lproj/Main.storyboardc/BYZ-38-t0r-view-8bC-Xf-vdC~iphone.nib/objects-8.0+.nib to device
[ 16%] Copying /Users/fzzr/Developer/Projects/xcodetestappios/Dinghy/Build/Products/Debug-iphoneos/Dinghy.app/Base.lproj/Main.storyboardc/BYZ-38-t0r-view-8bC-Xf-vdC~iphone.nib/runtime.nib to device
[ 18%] Copying /Users/fzzr/Developer/Projects/xcodetestappios/Dinghy/Build/Products/Debug-iphoneos/Dinghy.app/Base.lproj/Main.storyboardc/UIViewController-BYZ-38-t0r~ipad.nib/objects-8.0+.nib to device
[ 19%] Copying /Users/fzzr/Developer/Projects/xcodetestappios/Dinghy/Build/Products/Debug-iphoneos/Dinghy.app/Base.lproj/Main.storyboardc/UIViewController-BYZ-38-t0r~ipad.nib/runtime.nib to device
[ 20%] Copying /Users/fzzr/Developer/Projects/xcodetestappios/Dinghy/Build/Products/Debug-iphoneos/Dinghy.app/Base.lproj/Main.storyboardc/UIViewController-BYZ-38-t0r~iphone.nib/objects-8.0+.nib to device
[ 21%] Copying /Users/fzzr/Developer/Projects/xcodetestappios/Dinghy/Build/Products/Debug-iphoneos/Dinghy.app/Base.lproj/Main.storyboardc/UIViewController-BYZ-38-t0r~iphone.nib/runtime.nib to device
[ 23%] Copying /Users/fzzr/Developer/Projects/xcodetestappios/Dinghy/Build/Products/Debug-iphoneos/Dinghy.app/Base.lproj/Main~ipad.storyboardc/Info-8.0+.plist to device
[ 24%] Copying /Users/fzzr/Developer/Projects/xcodetestappios/Dinghy/Build/Products/Debug-iphoneos/Dinghy.app/Base.lproj/Main~ipad.storyboardc/Info.plist to device
[ 26%] Copying /Users/fzzr/Developer/Projects/xcodetestappios/Dinghy/Build/Products/Debug-iphoneos/Dinghy.app/Base.lproj/Main~iphone.storyboardc/Info-8.0+.plist to device
[ 26%] Copying /Users/fzzr/Developer/Projects/xcodetestappios/Dinghy/Build/Products/Debug-iphoneos/Dinghy.app/Base.lproj/Main~iphone.storyboardc/Info.plist to device
[ 45%] Copying /Users/fzzr/Developer/Projects/xcodetestappios/Dinghy/Build/Products/Debug-iphoneos/Dinghy.app/Dinghy to device
[ 47%] Copying /Users/fzzr/Developer/Projects/xcodetestappios/Dinghy/Build/Products/Debug-iphoneos/Dinghy.app/embedded.mobileprovision to device
[ 48%] Copying /Users/fzzr/Developer/Projects/xcodetestappios/Dinghy/Build/Products/Debug-iphoneos/Dinghy.app/Info.plist to device
[ 49%] Copying /Users/fzzr/Developer/Projects/xcodetestappios/Dinghy/Build/Products/Debug-iphoneos/Dinghy.app/PkgInfo to device
[ 52%] CreatingStagingDirectory
[ 57%] ExtractingPackage
[ 60%] InspectingPackage
[ 60%] TakingInstallLock
[ 65%] PreflightingApplication
[ 70%] VerifyingApplication
[ 80%] InstallingApplication
[ 85%] PostflightingApplication
[ 90%] SandboxingApplication
[100%] Installed package /Users/fzzr/Developer/Projects/xcodetestappios/Dinghy/Build/Products/Debug-iphoneos/Dinghy.app/
------ Debug phase ------
Starting debug of 161e99fe25dd29ca57cd77096f2df8cf4467e97a (N90AP, iPhone 4 (GSM), iphoneos, armv7) a.k.a. '℡' connected through USB...
2018-02-21 22:22:32.391 ios-deploy[76142:5062398] [ !! ] Unable to locate DeviceSupport directory with suffix 'DeveloperDiskImage.dmg'. This probably means you don't have Xcode installed, you will need to launch the app manually and logging output will not be shown!
~/Developer/Projects/xcodetestappios > (1) 

@kali
Copy link
Collaborator

kali commented Feb 21, 2018

Yeah... DeveloperDiskImage.dmg is an image that ios-deploy (and dinghy) install on the phone to be able to run and debug remotely. It has to match the architecture and ios version of the phone, and i suspect Apple do not deliver these for old phones.

Not sure we can do much.

@boozook
Copy link
Author

boozook commented Feb 22, 2018

I'd install DeviceSupport image into Xcode (how) and ios-deploy works perfectly!

~/Developer/Projects/xcodetestappios > (1) ios-deploy -b /Users/fzzr/Developer/Projects/xcodetestappios/Dinghy/Build/Products/Debug-iphoneos/Dinghy.app/ --detect_deadlock -v -d
[....] Waiting for iOS device to be connected
[....] Using 161e99fe25dd29ca57cd77096f2df8cf4467e97a (N90AP, iPhone 4 (GSM), iphoneos, armv7) a.k.a. '℡'.
------ Install phase ------
[  0%] Found 161e99fe25dd29ca57cd77096f2df8cf4467e97a (N90AP, iPhone 4 (GSM), iphoneos, armv7) a.k.a. '℡' connected through USB, beginning install
[  5%] Copying /Users/fzzr/Developer/Projects/xcodetestappios/Dinghy/Build/Products/Debug-iphoneos/Dinghy.app/_CodeSignature/CodeResources to device
[  8%] Copying /Users/fzzr/Developer/Projects/xcodetestappios/Dinghy/Build/Products/Debug-iphoneos/Dinghy.app/Base.lproj/LaunchScreen.storyboardc/01J-lp-oVM-view-Ze5-6b-2t3.nib to device
[  9%] Copying /Users/fzzr/Developer/Projects/xcodetestappios/Dinghy/Build/Products/Debug-iphoneos/Dinghy.app/Base.lproj/LaunchScreen.storyboardc/Info.plist to device
[  9%] Copying /Users/fzzr/Developer/Projects/xcodetestappios/Dinghy/Build/Products/Debug-iphoneos/Dinghy.app/Base.lproj/LaunchScreen.storyboardc/UIViewController-01J-lp-oVM.nib to device
[ 11%] Copying /Users/fzzr/Developer/Projects/xcodetestappios/Dinghy/Build/Products/Debug-iphoneos/Dinghy.app/Base.lproj/Main.storyboardc/BYZ-38-t0r-view-8bC-Xf-vdC~ipad.nib/objects-8.0+.nib to device
[ 12%] Copying /Users/fzzr/Developer/Projects/xcodetestappios/Dinghy/Build/Products/Debug-iphoneos/Dinghy.app/Base.lproj/Main.storyboardc/BYZ-38-t0r-view-8bC-Xf-vdC~ipad.nib/runtime.nib to device
[ 14%] Copying /Users/fzzr/Developer/Projects/xcodetestappios/Dinghy/Build/Products/Debug-iphoneos/Dinghy.app/Base.lproj/Main.storyboardc/BYZ-38-t0r-view-8bC-Xf-vdC~iphone.nib/objects-8.0+.nib to device
[ 15%] Copying /Users/fzzr/Developer/Projects/xcodetestappios/Dinghy/Build/Products/Debug-iphoneos/Dinghy.app/Base.lproj/Main.storyboardc/BYZ-38-t0r-view-8bC-Xf-vdC~iphone.nib/runtime.nib to device
[ 17%] Copying /Users/fzzr/Developer/Projects/xcodetestappios/Dinghy/Build/Products/Debug-iphoneos/Dinghy.app/Base.lproj/Main.storyboardc/UIViewController-BYZ-38-t0r~ipad.nib/objects-8.0+.nib to device
[ 18%] Copying /Users/fzzr/Developer/Projects/xcodetestappios/Dinghy/Build/Products/Debug-iphoneos/Dinghy.app/Base.lproj/Main.storyboardc/UIViewController-BYZ-38-t0r~ipad.nib/runtime.nib to device
[ 19%] Copying /Users/fzzr/Developer/Projects/xcodetestappios/Dinghy/Build/Products/Debug-iphoneos/Dinghy.app/Base.lproj/Main.storyboardc/UIViewController-BYZ-38-t0r~iphone.nib/objects-8.0+.nib to device
[ 20%] Copying /Users/fzzr/Developer/Projects/xcodetestappios/Dinghy/Build/Products/Debug-iphoneos/Dinghy.app/Base.lproj/Main.storyboardc/UIViewController-BYZ-38-t0r~iphone.nib/runtime.nib to device
[ 23%] Copying /Users/fzzr/Developer/Projects/xcodetestappios/Dinghy/Build/Products/Debug-iphoneos/Dinghy.app/Base.lproj/Main~ipad.storyboardc/Info-8.0+.plist to device
[ 23%] Copying /Users/fzzr/Developer/Projects/xcodetestappios/Dinghy/Build/Products/Debug-iphoneos/Dinghy.app/Base.lproj/Main~ipad.storyboardc/Info.plist to device
[ 25%] Copying /Users/fzzr/Developer/Projects/xcodetestappios/Dinghy/Build/Products/Debug-iphoneos/Dinghy.app/Base.lproj/Main~iphone.storyboardc/Info-8.0+.plist to device
[ 26%] Copying /Users/fzzr/Developer/Projects/xcodetestappios/Dinghy/Build/Products/Debug-iphoneos/Dinghy.app/Base.lproj/Main~iphone.storyboardc/Info.plist to device
[ 28%] Copying /Users/fzzr/Developer/Projects/xcodetestappios/Dinghy/Build/Products/Debug-iphoneos/Dinghy.app/Dinghy to device
[ 45%] Copying /Users/fzzr/Developer/Projects/xcodetestappios/Dinghy/Build/Products/Debug-iphoneos/Dinghy.app/embedded.mobileprovision to device
[ 47%] Copying /Users/fzzr/Developer/Projects/xcodetestappios/Dinghy/Build/Products/Debug-iphoneos/Dinghy.app/Info.plist to device
[ 48%] Copying /Users/fzzr/Developer/Projects/xcodetestappios/Dinghy/Build/Products/Debug-iphoneos/Dinghy.app/PkgInfo to device
[ 52%] CreatingStagingDirectory
[ 57%] ExtractingPackage
[ 60%] InspectingPackage
[ 60%] TakingInstallLock
[ 65%] PreflightingApplication
[ 65%] InstallingEmbeddedProfile
[ 70%] VerifyingApplication
[ 75%] CreatingContainer
[ 80%] InstallingApplication
[ 85%] PostflightingApplication
[ 90%] SandboxingApplication
[ 95%] GeneratingApplicationMap
[100%] Installed package /Users/fzzr/Developer/Projects/xcodetestappios/Dinghy/Build/Products/Debug-iphoneos/Dinghy.app/
------ Debug phase ------
Starting debug of 161e99fe25dd29ca57cd77096f2df8cf4467e97a (N90AP, iPhone 4 (GSM), iphoneos, armv7) a.k.a. '℡' connected through USB...
[  0%] Looking up developer disk image
[ 90%] Mounting developer disk image
[ 95%] Developer disk image already mounted
[100%] Connecting to remote debug server
-------------------------
(lldb) command source -s 0 '/tmp/C3439430-E0EE-40C2-B627-51018D87A999/fruitstrap-lldb-prep-cmds-161e99fe25dd29ca57cd77096f2df8cf4467e97a'
Executing commands in '/tmp/C3439430-E0EE-40C2-B627-51018D87A999/fruitstrap-lldb-prep-cmds-161e99fe25dd29ca57cd77096f2df8cf4467e97a'.
(lldb)     platform select remote-ios --sysroot '/Users/fzzr/Library/Developer/Xcode/iOS DeviceSupport/7.1.2 (11D257)/Symbols'
  Platform: remote-ios
 Connected: no
  SDK Path: "/Users/fzzr/Library/Developer/Xcode/iOS DeviceSupport/7.1.2 (11D257)/Symbols"
(lldb)     target create "/Users/fzzr/Developer/Projects/xcodetestappios/Dinghy/Build/Products/Debug-iphoneos/Dinghy.app"
Current executable set to '/Users/fzzr/Developer/Projects/xcodetestappios/Dinghy/Build/Products/Debug-iphoneos/Dinghy.app' (armv7).
(lldb)     script fruitstrap_device_app="/private/var/mobile/Applications/9841485C-5920-4D50-BF66-C2076434EE38/Dinghy.app"
(lldb)     script fruitstrap_connect_url="connect://127.0.0.1:55120"
(lldb)     target modules search-paths add /usr "/Users/fzzr/Library/Developer/Xcode/iOS DeviceSupport/7.1.2 (11D257)/Symbols/usr" /System "/Users/fzzr/Library/Developer/Xcode/iOS DeviceSupport/7.1.2 (11D257)/Symbols/System" "/private/var/mobile/Applications/9841485C-5920-4D50-BF66-C2076434EE38" "/Users/fzzr/Developer/Projects/xcodetestappios/Dinghy/Build/Products/Debug-iphoneos" "/var/mobile/Applications/9841485C-5920-4D50-BF66-C2076434EE38" "/Users/fzzr/Developer/Projects/xcodetestappios/Dinghy/Build/Products/Debug-iphoneos" /Developer "/Users/fzzr/Library/Developer/Xcode/iOS DeviceSupport/7.1.2 (11D257)/Symbols/Developer"
(lldb)     command script import "/tmp/C3439430-E0EE-40C2-B627-51018D87A999/fruitstrap_161e99fe25dd29ca57cd77096f2df8cf4467e97a.py"
(lldb)     command script add -f fruitstrap_161e99fe25dd29ca57cd77096f2df8cf4467e97a.connect_command connect
(lldb)     command script add -s asynchronous -f fruitstrap_161e99fe25dd29ca57cd77096f2df8cf4467e97a.run_command run
(lldb)     command script add -s asynchronous -f fruitstrap_161e99fe25dd29ca57cd77096f2df8cf4467e97a.autoexit_command autoexit
(lldb)     command script add -s asynchronous -f fruitstrap_161e99fe25dd29ca57cd77096f2df8cf4467e97a.safequit_command safequit
(lldb)     connect
(lldb)     run
success
(lldb) l
   12  	int main(int argc, char * argv[]) {
   13  		@autoreleasepool {
   14  		    return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
   15  		}
   16  	}
(lldb) 
...

But not dinghy :( - getting the same error e800009c.

@kali
Copy link
Collaborator

kali commented Feb 22, 2018

OK, it means we can probably get it to work. Can you try running dinghy with -v or -vv to see if we have more output.

@boozook
Copy link
Author

boozook commented Feb 22, 2018

~/Developer/Projects/project > cargo dinghy test -vv
       Fresh cc v1.0.4
       Fresh unicode-xid v0.0.4
       Fresh libc v0.2.36
       Fresh byteorder v1.2.1
       Fresh quote v0.3.15
       Fresh zero v0.1.2
       Fresh lazy_static v1.0.0
       Fresh inflate v0.1.1
       Fresh {... some dependencies ...}
       Fresh enumflags v0.2.1
       Fresh image v0.10.4
       Fresh project v0.0.1 (file:///Users/fzzr/Developer/Projects/project)
    Finished dev [unoptimized + debuginfo] target(s) in 0.0 secs
error: e800009c
~/Developer/Projects/project > cargo dinghy devices
IosDevice { ptr: 0x7f81da40eeb0, id: "161e99fe25dd29ca57cd77096f2df8cf4467e97a", name: "℡", arch_cpu: "armv7" }

With -v result is same as with -vv

@kali
Copy link
Collaborator

kali commented Feb 22, 2018

wow, this was not helpful at all. i'll try to find if i can get an iphone 4 to reproduce here.

@kali
Copy link
Collaborator

kali commented Mar 5, 2018

I got it to work, with an iphone 4, using xcode 9.2. I set it up first changing my dummy xcode Dinghy project target to ios 9.1, and then dinghy just worked as expected :/

@kali
Copy link
Collaborator

kali commented Mar 5, 2018

Rectification, that was an iphone 4s. Yours is a 4, not a 4s ?

@boozook
Copy link
Author

boozook commented Mar 5, 2018

4, not a 4s.
On the iPhone 4 maximal OS version is 7.x.

@simlay
Copy link
Contributor

simlay commented Jan 13, 2020

https://bugs.llvm.org/show_bug.cgi?id=36580 seems to be the underlying bug.

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

3 participants