kabiroberai / theos-jailed

A Theos module to develop jailed tweaks for iOS 8 and up
Other
365 stars 64 forks source link

App crashing immediately at start after using theos-jailed #61

Closed xMarkSt closed 4 years ago

xMarkSt commented 4 years ago

Hi, I'm having some trouble getting theos-jailed to work. When I install and open the app, it crashes immediately. Running make package install doesn't give me any errors.

One thing that stands out to me is this: LC_CODE_SIGNATURE is not the last load command, so couldn't remove. Is this something that could be causing problems?

No crash logs are available, but I checked the device console in xcode, here is the output for when I open the app:

default 03:49:49.599246-0800    SpringBoard could not enable test hierarchy: ApplePinningAllowTestCertsiPhoneApplicationSigning not true
default 03:49:49.602432-0800    securityd   cert[0]: SubjectCommonName =(leaf)[]> 0
default 03:49:49.603758-0800    securityd   cert[0]: CheckLeafMarkerOid =(leaf)[]> 0
default 03:49:49.614106-0800    SpringBoard  [leaf CheckLeafMarkerOid IssuerCommonName SubjectCommonName]
default 03:49:49.618052-0800    SpringBoard could not enable test hierarchy: ApplePinningAllowTestCertsiPhoneApplicationSigning not true
default 03:49:49.618891-0800    securityd   cert[0]: IssuerCommonName =(path)[]> 0
default 03:49:49.624774-0800    securityd   cert[0]: SubjectCommonName =(leaf)[]> 0
default 03:49:49.625160-0800    securityd   cert[0]: CheckLeafMarkerOid =(leaf)[]> 0
default 03:49:49.632601-0800    SpringBoard  [leaf CheckLeafMarkerOid IssuerCommonName SubjectCommonName]
default 03:49:49.641307-0800    securityd   cert[0]: IssuerCommonName =(path)[]> 0
default 03:49:49.642412-0800    SpringBoard Running <SBAppToAppWorkspaceTransaction: 0x44983ad0> for transition request:
<SBMainWorkspaceTransitionRequest: 0x15687830; eventLabel: ActivateApplication = eu.markstam.boom; display: Main; source: HomeScreen> {
    applicationContext = <SBWorkspaceApplicationTransitionContext: 0x1568fdc0; background: NO> entities = {
        SBLayoutPrimaryRole = <SBWorkspaceApplication: 0x156ea060; ID: eu.markstam.boom; layoutRole: primary>;
    };
}
default 03:49:49.647249-0800    assertiond  Process already exists for eu.markstam.boom; ignoring job submission request from <BSProcessHandle: 0x16e66d90; SpringBoard:1331; valid: YES>
default 03:49:49.662450-0800    SpringBoard [eu.markstam.boom] Bootstrap failed with error: <NSError: 0x153a86e0; domain: BKSProcessErrorDomain; code: 1 (bootstrap-failed); reason: "Process already exists for job specification">
error   03:49:49.662802-0800    SpringBoard Bootstrapping failed for <FBApplicationProcess: 0xf55ab60; eu.markstam.boom; pid: -1> with error: Error Domain=BKSProcessErrorDomain Code=1 "Unable to bootstrap process with bundleID eu.markstam.boom" UserInfo={BSErrorCodeDescription=bootstrap-failed, NSLocalizedFailureReason=Process already exists for job specification, NSLocalizedDescription=Unable to bootstrap process with bundleID eu.markstam.boom}
default 03:49:49.664036-0800    SpringBoard <FBApplicationProcess: 0xf55ab60; eu.markstam.boom; pid: -1> exited.
default 03:49:49.999183-0800    locationd   Client com.apple.springboard disconnected
default 03:49:50.057532-0800    SpringBoard Disabling home screen icon rotation for reason: SBAppToAppWorkspaceTransaction
default 03:49:50.079602-0800    SpringBoard Disabling home screen icon rotation for reason: <SBCrossfadeIconZoomAnimator:0x44970340>
default 03:49:50.080152-0800    SpringBoard Looking up unclipped icon for app <private>
default 03:49:50.081357-0800    SpringBoard Dismissing banner for notification (null)
default 03:49:50.083123-0800    SpringBoard Stopping device motion, mode=0x<private>
default 03:49:50.098433-0800    CommCenter  #I CSIAppInfo.AppObserver: observe_block_invoke: FBSDisplayLayoutUpdateHandler: update start
default 03:49:50.104722-0800    backboardd  Gyro samples data gap or out of order! deltaInterval=<private>
default 03:49:50.120440-0800    SpringBoard Process exited: <FBApplicationProcess: 0xf55ab60; eu.markstam.boom; pid: -1> -> <FBApplicationProcessExitContext: 0x156eb690; exitReason: (none); terminationReason: (none)>
default 03:49:50.140516-0800    CommCenter  #I CSIAppInfo.AppObserver: observe_block_invoke: FBSDisplayLayoutUpdateHandler: app <private> (UIApplicationElement 1 hasKeyboardFocus 0)
default 03:49:50.145895-0800    sharingd    SystemUI unknown identifier: 'eu.markstam.boom'
default 03:49:50.146132-0800    sharingd    SystemUI changed: 0x10 -> 0x0

I tried googling for 'Process already exists for job specification' but that didn't gave me many results other than signing problems, but I don't know what signing problems there could be.

The ipa works fine using the original binary and the tweak also works as a cydia tweak.

My Makefile:

MODULES = jailed

include $(THEOS)/makefiles/common.mk

TWEAK_NAME = boomclonejailed
DISPLAY_NAME = boomclone-jailed
BUNDLE_ID = eu.markstam.boom

boomclonejailed_FILES = Tweak.xm
boomclonejailed_IPA = /Users/markstam/Projects/boomclonejailed/ipa/boom32.ipa

include $(THEOS_MAKE_PATH)/tweak.mk

Some device info: Device: iPad 3,4 iOS version: 10.3.3 32 bit device

Do you have any idea what could be causing this problem? Thanks in advance.

xMarkSt commented 4 years ago

Some additional information: make info says I need to add this capability: iCloud (requires extra configuration) I didn't add this because xcode doesn't list this option, assuming this is only for paid developer accounts, which I do not have.

xMarkSt commented 4 years ago

Fixed it, the problem was me changing the bundle id which also had to be changed in the binary.