Skip to content

Commit

Permalink
Easy development deployment, correct entitlements handling.
Browse files Browse the repository at this point in the history
  • Loading branch information
ZonD80 committed May 24, 2020
1 parent 9e2409a commit aac6328
Show file tree
Hide file tree
Showing 7 changed files with 331 additions and 96 deletions.
6 changes: 6 additions & 0 deletions Entitlements.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,11 @@
<true/>
<key>com.apple.private.security.no-container</key>
<true/>
<key>com.apple.private.security.no-sandbox</key>
<true/>
<key>com.apple.developer.team-identifier</key>
<string>FUCKAPPLE1</string>
<key>application-identifier</key>
<string>FUCKAPPLE1.zond80.duppy2</string>
</dict>
</plist>
25 changes: 2 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ You can download the latest .ipa from [here](https://github.com/ZonD80/duppy/rel


Alernatively, you can build the project manually.
Make sure you have [Carthage](https://github.com/Carthage/Carthage) ,**ldid**, [ideviceisntaller](https://github.com/libimobiledevice/ideviceinstaller) are installed, you can install them via [Homebrew](https://github.com/Homebrew)
Make sure you have [Carthage](https://github.com/Carthage/Carthage) ,**ldid**, are installed, you can install them via [Homebrew](https://github.com/Homebrew)
Run the following commands:
```
$ git clone https://github.com/ZonD80/duppy.git
Expand All @@ -40,28 +40,7 @@ $ carthage update --platform iOS
$ open duppy2.xcodeproj
```

Do not install app to device via xCode, as it is still missing required entilements. To add them:
1. Archive your product (Command-Shift-B) then Control-Click on latest archive and select "Show in Finder"
2. Control-Clck on *.xcarchive and select "Show Package Contents"
3. Navigate to Products->Applications folder->Duppy.app folder
4. Open Termonal and type string ends with space)
```
$ ldid -SEntitlements.xml
```
Drop Duppy file to Terminal and press Enter

6. To verify that Entitlements were set, type (string ends with space):
```
$ codesign -dvvv --entitlements -
```
and drop Duppy file to Terminal.

7. Go to upper "Applications" folder. Type in Terminal (string ends with space):
```
$ ideviceinstaller -i
```

And drop Duppy.app folder to Terminal - app should be installed to device.
Note that app requires special entitlements that will be added during codesigning! **Overwrites will fail, it is normal**, so during every build just delete and app from device prior to installing.

## License
GNU General Public License v3.0. See [LICENSE](LICENSE) file for further information.
Expand Down
30 changes: 28 additions & 2 deletions duppy2.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@

/* Begin PBXFileReference section */
88254A33247A66EE001CB040 /* Entitlements.xml */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = Entitlements.xml; sourceTree = "<group>"; };
888DF239247AAB5D00C73898 /* nstask-bridge.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "nstask-bridge.h"; sourceTree = "<group>"; };
88D4A5AE24793F7700469190 /* Duppy.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Duppy.app; sourceTree = BUILT_PRODUCTS_DIR; };
88D4A5B124793F7700469190 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
88D4A5B524793F7700469190 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -104,6 +105,7 @@
88D4A5BF24793F7900469190 /* Info.plist */,
88D4A5CD247940AF00469190 /* PlistConverter.swift */,
88D4A5CF24794C7A00469190 /* appClass.swift */,
888DF239247AAB5D00C73898 /* nstask-bridge.h */,
);
path = duppy2;
sourceTree = "<group>";
Expand All @@ -128,6 +130,7 @@
88D4A5AB24793F7700469190 /* Frameworks */,
88D4A5AC24793F7700469190 /* Resources */,
88D4A5DA247972EE00469190 /* Embed Frameworks */,
888DF23A247AAFB800C73898 /* ShellScript */,
);
buildRules = (
);
Expand Down Expand Up @@ -188,6 +191,26 @@
};
/* End PBXResourcesBuildPhase section */

/* Begin PBXShellScriptBuildPhase section */
888DF23A247AAFB800C73898 /* ShellScript */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 12;
files = (
);
inputFileListPaths = (
);
inputPaths = (
);
outputFileListPaths = (
);
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "# Type a script or drag a script file from your workspace to insert its path.\necho \"setting entitlements to binary=====================================================================================================================\"\nldid -S\"${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}/Entitlements.xml\" \"${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}/${EXECUTABLE_NAME}\"\n\n";
};
/* End PBXShellScriptBuildPhase section */

/* Begin PBXSourcesBuildPhase section */
88D4A5AA24793F7700469190 /* Sources */ = {
isa = PBXSourcesBuildPhase;
Expand Down Expand Up @@ -354,10 +377,12 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.0.3;
MARKETING_VERSION = 1.1.0;
PRODUCT_BUNDLE_IDENTIFIER = zond80.duppy2;
PRODUCT_NAME = Duppy;
PROVISIONING_PROFILE_SPECIFIER = "";
SWIFT_OBJC_BRIDGING_HEADER = "duppy2/nstask-bridge.h";
"SWIFT_OBJC_BRIDGING_HEADER[arch=*]" = "duppy2/nstask-bridge.h";
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
Expand All @@ -381,10 +406,11 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.0.3;
MARKETING_VERSION = 1.1.0;
PRODUCT_BUNDLE_IDENTIFIER = zond80.duppy2;
PRODUCT_NAME = Duppy;
PROVISIONING_PROFILE_SPECIFIER = "";
SWIFT_OBJC_BRIDGING_HEADER = "duppy2/nstask-bridge.h";
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
Expand Down
Binary file not shown.
Loading

0 comments on commit aac6328

Please sign in to comment.