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 12 support #129

Open
gabrc52 opened this issue May 19, 2021 · 21 comments
Open

iOS 12 support #129

gabrc52 opened this issue May 19, 2021 · 21 comments

Comments

@gabrc52
Copy link

gabrc52 commented May 19, 2021

Opening to see if someone has the skills for supporting iOS 12 (and maybe lower versions)?

Alternatively, the UI be decoupled from the server, if it works and there's no UI or only a command-line tool where you have to open a Terminal on the iPhone or SSH to it in order to configure it, it's still pretty fine.

Do you plan support for IOS 12?

Unfortunately, the app is written in SwiftUI, which only supports iOS 13+, and I don’t know UIKit (which is what iOS 12 uses) Its all open source, though, and I would totally welcome another developer forking it and adding support for iOS 12 and below.
https://www.reddit.com/r/jailbreak/comments/i7v04g/free_release_smserver_send_texts_from_your/g14cbpg?utm_source=share&utm_medium=web2x&context=3

@itsjunetime
Copy link
Owner

itsjunetime commented May 19, 2021

Ok, so turns out it was crazily easy to make a (potentially) iOS 12-compatible CLI version of SMServer (commit).

I don't have an iOS 12 device to test with to verify, but it runs fine (mind you, CLI only — the app is just completely blank if you launch it) on my iOS 14.4.2 6s. I'll upload a build of the 12-compatible version here in a minute for others to test out and verify.

I may expand this later to actually create a UI for iOS 12 and lower (since I have now learned UIKit), but for the time being it'll remain CLI.

Edit: download the .deb here. The binary will be located at /Applications/SMServer12.app/SMServer12. I would really appreciate it if someone could try running it with an iOS 10 - 12 device to see if it functions.

@sabogalc
Copy link

sabogalc commented May 21, 2021

image
I was unable to download the .deb, can you upload it to a website like MediaFire, Google Drive, or DropBox?

Update - I was also unable to build the .deb from the source code. Is there any way to build the .deb on Windows?
image

Update 2 - I was unable to run this on macOS as well. Am I missing something?
Screen Shot 2021-05-21 at 12 52 05 PM

@itsjunetime
Copy link
Owner

@CSab6482 sorry about that -- I just fixed the link, and updated the make script as well so that it will work on your mac. Unfortunately, there's no way (as of right now) to build it on windows.

@sabogalc
Copy link

I got it installed on my iPod, and just like you said, the app just shows a black screen when I open it. How do I start the server? Through terminal/SSH commands?
image
IMG_0001

@itsjunetime
Copy link
Owner

Yup, SSH in and try running /Applications/SMServer12/SMServer12 -r to see if it will show that the server has started up

@sabogalc
Copy link

sabogalc commented May 21, 2021

image
I tried SMServer12 -r, SMServer12.app -r, and SMServer -r. Am I in the wrong directory or running the wrong commmand?

Update - Here are the contents of the SMServer12.app folder
image
I also have an SMServer.app folder
image

@sabogalc
Copy link

Another update, when I open Sileo on my iPod, I now receive this error message, after which the app stays frozen. I am going to Restore RootFS using checkra1n and rejailbreak. Maybe an error occurred during my installation of the .deb? I'll retry this with Cydia/Substitute instead of Sileo/Procursus to see if it makes a difference.
Image-1

@gabrc52
Copy link
Author

gabrc52 commented May 21, 2021

I tried SMServer12 -r, SMServer12.app -r, and SMServer -r. Am I in the wrong directory or running the wrong commmand?

@CSab6482 Try ./SMServer12

Unlike Windows, the current directory is not part of the PATH. The dot means current directory.

As for the DPKG error try running dpkg --reconfigure -a

@sabogalc
Copy link

When I have Cydia set as my package manager, I received an error. However, the SMServer app still showed up after I ran uicache
image
Cydia then gave me this error message
Image-1

@sabogalc
Copy link

I tried SMServer12 -r, SMServer12.app -r, and SMServer -r. Am I in the wrong directory or running the wrong commmand?

@CSab6482 Try ./SMServer12

Unlike Windows, the current directory is not part of the PATH. The dot means current directory.

As for the DPKG error try running dpkg --reconfigure -a

This worked!
image
I'll see if the dpkg --reconfigure -a command fixes my problems with Cydia and Sileo, and I'll put my findings in a comment.

@sabogalc
Copy link

I tried SMServer12 -r, SMServer12.app -r, and SMServer -r. Am I in the wrong directory or running the wrong commmand?

@CSab6482 Try ./SMServer12

Unlike Windows, the current directory is not part of the PATH. The dot means current directory.

As for the DPKG error try running dpkg --reconfigure -a

I was not able to run dpkg --reconfigure -a while using Sileo/Procursus
image

@sabogalc
Copy link

sabogalc commented May 21, 2021

As far as I can tell, it works perfectly on iOS 12. The only error I could find was that installing the .deb broke my package managers, but I'm sure that once the tweak is available on Twickd, this problem will not occur.
SMServer 12 5 3

Edit - Does this confirm that SMServer will also work on iOS 10 or 11? Or do we need other people to test that?

@itsjunetime
Copy link
Owner

Does this confirm that SMServer will also work on iOS 10 or 11? Or do we need other people to test that?

I think we'll need to test those as well. I don't know if I'm going to release this on a public repository (since it's CLI-only (for now, at least), and that would confuse people), so it's not crucial that I do extensive testing for those versions, but I think I'll upload a compiled version here, with instructions on how to use, if people would like to use it.

@stevenmirabito
Copy link

I successfully installed the deb posted earlier on an old iPhone 5c with iOS 10.3.3 and can run the server. Some notes:

  • iOS 10.3.3 does not support LZMA compression out of the box, so I needed to install the "XZ Utils" tweak from Cydia for dpkg to unpack the deb
  • Specific to the iPhone 5c (32-bit so no APFS and very little space on the system partition), I needed to use iCleaner to remove languages and keyboards to make enough room to install SMServer
  • The dpkg errors appear to stem from the postinst script checking for /Applications/SMServer.app/SMServer whereas the binary for this build unpacks to /Applications/SMServer12.app/SMServer12

However, it appears the bundled libsmserver is 64-bit only? The UI doesn't load any messages nor can I send messages, and I see this in the syslog:

Jun 13 19:55:57 iMessage-Server syncdefaultsd[1015] <Notice>: MS:Notice: Injecting: com.apple.syncdefaultsd [syncdefaultsd] (1349.70)
Jun 13 19:55:57 iMessage-Server syncdefaultsd[1015] <Error>: MS:Error: binary does not support this cpu type
Jun 13 19:55:57 iMessage-Server syncdefaultsd[1015] <Error>: MS:Error: failure to check libsmserver.dylib

@itsjunetime
Copy link
Owner

@stevenmirabito thank you so much for checking that out! With regard to the issues you listed:

  • I'll make sure to add XZ Utils to the dependency list for SMServer12 & fix the build script to check for it instead of SMServer.app
  • You are correct that libsmserver is 64-bit only. Since up until this point, SMServer only supported iOS 13+, there was no need to build it for armv7. I can update the makefile to add support for armv7 as well.

@vpark
Copy link

vpark commented Jun 20, 2021

Does this mean that the next version will support iOS 12 out of the box? I tried the above method on my iOS 12.5.3 but encountered the same half built package error CSab6482 was seeing.

When I rebooted before cleaning up the package I wasn't able to rejailbreak and had to completely reset my phone.

@yeralin
Copy link

yeralin commented Feb 3, 2022

I just fixed the link
image

Hey, your link is dead. Could you please upload the file to some more reliable file hosting? Maybe Google Drive?

Trying to install it on my old iPad Mini 2 with iOS 9.3.6 :)

Thank you in advance!

@sabogalc
Copy link

sabogalc commented Feb 3, 2022

Could you please upload the file to some more reliable file hosting?

Here ya go.
https://www.mediafire.com/file/yendwdxoc5ob6rx/SMServer12.deb/file

Edit -

Trying to install it on my old iPad Mini 2 with iOS 9.3.6

I'm not sure if this will work on iOS 9, but please test it out and let us know.
If it doesn't work, you can use Remote Messages as an alternative.
iOS 5 version
iOS 6 version
iOS 7 version
iOS 8 version
iOS 9 version
I also made a custom dark mode theme for Remote Messages that you can check out below.
https://redd.it/i5rddy

@yeralin
Copy link

yeralin commented Feb 3, 2022

Hey, sorry I didn't realize I can build it myself using make.sh -ndl command.

Tried installing both .deb and .ipa to no avail on iPad Mini 2 with iOS 9.3.6.

However, Remote Messages worked perfectly. Thank you so much for a reference!

Cheers :)

@juan2three
Copy link

Any update on the support? Works flawlessly via CLI but curious about the frontend to be able to adjust settings

@sabogalc
Copy link

sabogalc commented Apr 3, 2024

The last commit was in 2022 and the developer now works full-time at Beeper so I think it's safe to say the project will not be updated further unless somebody forks it.

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

7 participants