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

iOS 14? #1

Closed
radiochild577 opened this issue Oct 13, 2021 · 24 comments
Closed

iOS 14? #1

radiochild577 opened this issue Oct 13, 2021 · 24 comments

Comments

@radiochild577
Copy link

Been using Harbour on my iPhone 11 Pro before it was even released as a TestFlight beta (sideloaded from github source). Love this project and happy to see that it's moving towards an app store release. One question though - I'm still on iOS 14 for work reasons, and cannot upgrade to iOS 15 yet. Is there any reason why the TestFlight build requires iOS 15 as the minimum compatible version? Any chance for iOS 14 being supported?

@rrroyal
Copy link
Owner

rrroyal commented Oct 13, 2021

Hi! I'm glad that you're enjoying the app 🥳

The 2.0 release was built around iOS 15 APIs (i.e. the whole Portainer-related code is using async/await), so it would be hard for me to make all of it working on iOS 14 too 😕
I could make a single build supporting iOS 14, but I would be unable to provide future updates.
Let me know if this works for you!

@radiochild577
Copy link
Author

radiochild577 commented Oct 13, 2021

That would be awesome. I'll be updating to iOS 15 eventually but the timeline is out of my hands. In the meantime a limited iOS 14 compatible build, even without future support, would be GREATLY appreciated!

@rrroyal
Copy link
Owner

rrroyal commented Oct 14, 2021

Here it is: Harbour.ipa.zip 😊
Please let me know if this works for you, as it was built with a non-standard toolchain (swift-DEVELOPMENT-SNAPSHOT-2021-10-05-a-osx) and I don't have any device below iOS 15 😶

Working build, diff

@radiochild577
Copy link
Author

Thanks for the quick build. Looked like this is for minimum of 14.7 so it won't let me install since I'm on 14.3 :(

@rrroyal
Copy link
Owner

rrroyal commented Oct 14, 2021

Can you check this one?

@radiochild577
Copy link
Author

That one installed fine, but crashes on launch. Here's a portion of the crash log - happy to share more if needed

Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Termination Description: DYLD, dyld: Using shared cache: EEFDD874-2301-31BF-B255-11CE61E827BD | Library not loaded: @rpath/libswift_Concurrency.dylib | Referenced from: /private/var/containers/Bundle/Application/32AFEBCA-D99E-44F5-A90D-36E27F072215/Harbour.app/Harbour | Reason: image not found
Triggered by Thread: 0

@rrroyal
Copy link
Owner

rrroyal commented Oct 15, 2021

That tells me all I need. I'll look into that, thanks!

@rrroyal
Copy link
Owner

rrroyal commented Oct 15, 2021

@radiochild577
Copy link
Author

The 2 'optional' versions installed fine and did not crash on launch. However, they did crash as soon as I entered my URL and login info. Might be because I'm not on my local network with the docker system, but connecting through VPN? I'll try them again when I get home later today and report back.

The 2 'required' ones installed but crash on launch.

@radiochild577
Copy link
Author

Just tried on the same LAN as my docker server and same result for the 'optional' named IPAs - crashes when I enter the URL and login info.

Portion of the crash log below, but can provide more if needed

Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0xfffffffffffffff8
VM Region Info: 0xfffffffffffffff8 is not in any region. Bytes after previous region: 18446743592673214457
REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL
commpage (reserved) 1000000000-7000000000 [384.0G] ---/--- SM=NUL ...(unallocated)
--->
UNUSED SPACE AT END

Termination Signal: Segmentation fault: 11
Termination Reason: Namespace SIGNAL, Code 0xb
Terminating Process: exc handler [5801]
Triggered by Thread: 0

@rrroyal
Copy link
Owner

rrroyal commented Oct 16, 2021

What about this one?

@radiochild577
Copy link
Author

radiochild577 commented Oct 16, 2021

No crashes this time! Installed fine and I'm able to login to Portainer successfully. I can access and change the settings in the app, but the root screen after logging in just shows 'Select endpoint'.

Also, on the first launch I wasn't presented with a logging prompt/popup like the previous versions. Had to click settings icon at top and login. Not an issue though, just a difference I noticed in case it matters.

@rrroyal
Copy link
Owner

rrroyal commented Oct 16, 2021

Click the "tag" icon in the top right corner and tap "Refresh" - if you have only one endpoint it should select it automatically, but if it won't, select one from the list.

iOS 14 doesn't support multiple sheets, so the Setup/Login screen isn't presented on the first run - it works fine on the full build ☺️

@radiochild577
Copy link
Author

That makes sense for the initial popup not showing. After I login the tag icon isn't showing - the settings icon moves from top left to top right, and top left icon is blank?

Also it didn't save my login info/password even with the option selected, but does save the URL of my docker instance

@radiochild577
Copy link
Author

Appreciate your continued attempts here. I understand if it's more trouble than it's worth for you

@rrroyal
Copy link
Owner

rrroyal commented Oct 16, 2021

@radiochild577
Copy link
Author

Hate to say it but this one crashes on launch and isn't even showing a crash log at all

@rrroyal
Copy link
Owner

rrroyal commented Oct 16, 2021

Maybe this time...

@radiochild577
Copy link
Author

Ok! This one installed fine and I logged in successfully! It shows my containers after logging in, but when I click on one it can't seem to load the info and gives a red error at the top that reads "The data couldn't be read because i...". I can't see all of the messages. Could this be an issue with permissions or docker config on my end?

@rrroyal
Copy link
Owner

rrroyal commented Oct 17, 2021

It may be that, but not necessarily. You can drag down on the error notification and it will show the whole message.

Can you catch the failing request through proxy and send me the response? It may be possible that I'm decoding something wrong 😖

@radiochild577
Copy link
Author

Ah thanks! Couldn't figure out how to see the full alert. It says "The data couldn't be read because it's missing". But it's not missing 😂

@radiochild577
Copy link
Author

How would I catch the fading request through proxy? Sorry, not sure exactly what you mean here. I run a reverse proxy on my LAN, but couldn't connect through that in Harbour. Had to enter the IP:port of my docker machine to connect in the app. Happy to help do this if you can explain a little more 🙂

Also the app does not save my login info between app launches

@rrroyal
Copy link
Owner

rrroyal commented Oct 17, 2021

Can you try this one, use it for a bit, then go to Settings → 🤫 → Copy logs, remove private/sensitive stuff and send them to my e-mail?
I've never saw any errors regarding missing data, so I'm really confused 😶‍🌫️

Regarding not saving login info, can you check if you have any entries named Harbour ({password,token,username}) in your iCloud keychain (the macOS one)?

Also, sorry for so many builds, but I don't do any telemetry/analytics so I have no idea what's happening 😶

@rrroyal
Copy link
Owner

rrroyal commented Oct 18, 2021

Forwarding:

Why was there no data when checking details? It turns out that the "Platform" key in ContainerDetail payload is optional, and because of that, the whole data wasn't decoded (see: "keyNotFound" in logs). Fixed!
Regarding not saving login info: App uses a shared Keychain (to allow widgets and other extensions access credentials). When sideloading, it doesn't update entitlements, so it failed (see: "OSStatus error"). Fixed!

Attached build fixes those two issues but leaves logging enabled, so that it's easier for me to debug any other errors if any show up 😶‍🌫️

Working build, diff

@rrroyal rrroyal closed this as completed Oct 18, 2021
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