Skip to content

Commit

Permalink
Fakesign ipas with ldid
Browse files Browse the repository at this point in the history
  • Loading branch information
Skittyblock committed Sep 5, 2022
1 parent d600943 commit 6f96046
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ jobs:
run: |
mkdir Payload
cp -r ${{ github.workspace }}/build/Release-iphoneos/WPSetter.app Payload
wget https://github.com/sbingner/ldid/releases/download/v2.1.4%2B16.g5b8581c/ldid-osx.gz
gunzip ldid-osx.gz
chmod +x ldid-osx
./ldid-osx -S${{ github.workspace }}/WallpaperSetter/WallpaperSetter.entitlements Payload/WPSetter.app
zip -r WallpaperSetter.ipa Payload
- name: Upload ipa
uses: actions/[email protected]
Expand Down
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ WallpaperSetter requires the `com.apple.springboard.wallpaper-access` entitlemen
```sh
xcodebuild build CODE_SIGN_IDENTITY= CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO
```
To package it, move the resulting .app in the `build/Release-iphoneos` directory into a `Payload` folder, zip it, and then rename to an ipa file.
To package it, copy the resulting .app in the `build/Release-iphoneos` directory into a `Payload` folder, fakesign it, zip it, and then rename to an ipa file.
```sh
cd build/Release-iphoneos/
mkdir Payload
ldid -S../../WallpaperSetter/WallpaperSetter.entitlements WPSetter.app
cp -r WPSetter.app Payload
zip -r WallpaperSetter.ipa Payload
```

Running on the simulator should work fine.
4 changes: 2 additions & 2 deletions WallpaperSetter.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.0;
MARKETING_VERSION = 1.0.1;
PRODUCT_BUNDLE_IDENTIFIER = xyz.skitty.WallpaperSetter;
PRODUCT_NAME = WPSetter;
PROVISIONING_PROFILE_SPECIFIER = "";
Expand Down Expand Up @@ -330,7 +330,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.0;
MARKETING_VERSION = 1.0.1;
PRODUCT_BUNDLE_IDENTIFIER = xyz.skitty.WallpaperSetter;
PRODUCT_NAME = WPSetter;
PROVISIONING_PROFILE_SPECIFIER = "";
Expand Down

0 comments on commit 6f96046

Please sign in to comment.