Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Sideloading notification with paid dev account #48

Closed
Shura1oplot opened this issue May 17, 2024 · 4 comments
Closed

Sideloading notification with paid dev account #48

Shura1oplot opened this issue May 17, 2024 · 4 comments
Assignees

Comments

@Shura1oplot
Copy link

The description mentioned that while having account with enrolled Apple Developer Program it is possible to have notifications in a sideloaded app.

Sideloading
...
Sideloadly (Free, No notifications*) *Notifications require $99/year Apple Developer Program

I have an Apple Developer Program enrolled, but don't have notifications. Are there any changes to be made in Sideloadly to have notifications?

@SoCuul
Copy link
Owner

SoCuul commented May 17, 2024

There's a long guide you have to go through haha. I'll post a guide when I'm free

@Shura1oplot
Copy link
Author

Thank you! Much appreciated. It'll help me a lot.

@SoCuul
Copy link
Owner

SoCuul commented May 17, 2024

Register app id

  1. Register an identifier with the "App IDs" tag identifier at https://developer.apple.com/account/resources/identifiers/add/bundleId
  2. Enter a description of your choice
  3. Set the bundle id to "explicit", with a value of your choice. For example: com.socuul.youtube
  4. Enable the "Push Notifications" capability, along with any other ones you would like
  5. Click the continue button, then register

Generate Certificate Signing Request

  1. Open the Keychain Access app on your mac.
  2. Under the Keychain Access entry on your menu bar, select Certificate Assistant > Request a Certificate from a Certificate Authority
  3. Enter an email address and a name of your choice (the contents does not matter)
  4. Select saved to disk
  5. Save this file in a folder of your choice

Create distribution certificate

  1. Create a new "Apple Distribution" certificate under the Software header at https://developer.apple.com/account/resources/certificates/add
  2. Upload the Certificate Signing Request file you generated in the previous section
  3. Click the Download button, and save the .cer file in a folder of your choice
  4. Open the downloaded file, and make sure you can find it inside of your keychain.
  5. Right click on the certificate and select Export
  6. Make sure the file format is set to .p12, and save the file in a folder of your choice

Create Ad Hoc profile

  1. Create a new "Ad Hoc" profile under the Distribution header at https://developer.apple.com/account/resources/profiles/add
  2. Select the app id you created earlier
  3. Make sure to select the no option for offline support
  4. Select the distribution certificate you created in the previous section
  5. Select which devices you will install the app on
  6. Provide a name to easily identify the profiler later, then click the Generate button.
  7. Click the Download button, and save the .mobileprovision file in a folder of your choice

Install tools

  1. Make sure you have an installation of homebrew, otherwise install it with /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
  2. Install OpenSSL & zsign
$ brew install openssl@1.1

$ git clone https://github.com/zhlynn/zsign
$ cd zsign
$ chmod +x INSTALL.sh
$ ./INSTALL.sh

Export certificate information

  1. Run the following commands, replacing <yourcert.p12> with the location of your saved p12 certificate file.
$ openssl pkcs12 -in yourcert.p12 -nocerts -nodes -legacy -out ios_dist.key
$ openssl pkcs12 -in yourcert.p12 -clcerts -nokeys -legacy -out ios_dist.pem

Sign app

  1. Run the following command and replace the following values.
    • <dist.cer> → Your distribution certificate file path
    • <adhoc.mobileprovision> → Your ad hoc profile path
    • <bundle.id> → The bundle id of your chosen app (eg: com.hammerandchisel.discord)
    • <app.name> → The name to display on the home screen (eg: Discord)
    • <signed.ipa> → The name to save the signed ipa under
    • <unsigned.ipa> → The path to the unsigned ipa you would like to sign
$ ./zsign -z 5 -k ios_dist.key -c <dist.cer> -m <adhoc.mobileprovision> -b <bundle.id> -n <app.name> -o <signed.ipa> <unsigned.ipa>

Install app

  1. Finally, install the signed .ipa to your device through your preferred method. For example:
    • Sending .ipa to device through AirDrop
    • Dragging .ipa onto connected device in finder
    • Dragging .ipa onto connected device in Apple Configurator
    • Using a command-line tool such as https://libimobiledevice.org/

@SoCuul
Copy link
Owner

SoCuul commented May 17, 2024

Basically, you won't be using sideloadly at all. After it's signed you can just send it to your phone by any means (airdrop, finder over usb, even safari)

Repository owner locked and limited conversation to collaborators May 17, 2024
@SoCuul SoCuul converted this issue into discussion #51 May 17, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants