Closed steelzeh closed 6 years ago
I also just tried creating a new apple id, and redid what make info said. Still doesn't work. tried using DEV_CERT_NAME but all i get is "Failed to get codesign name"
Please tell me what i'm doing wrong? Thanks.
What does your Makefile look like? (With the PROFILE= line)
MODULES = jailed include ~/Documents/theos/makefiles/common.mk
PROFILE = ID-6E212F1F.de.j-gessner.protube2
TWEAK_NAME = ProTube DISPLAY_NAME = ProTube BUNDLE_ID = de.j-gessner.protube2
ProTube_FRAMEWORKS = UIKit ProTube_FILES = Tweak.xm ProTube_IPA = /Users/Thomas/Dropbox/Udvikling/Tweaks/ProTube/ProTube.ipa
include $(THEOS_MAKE_PATH)/tweak.mk
i also tried make package install PROFILE=ID-6E212F1F.de.j-gessner.protube2 But same thing happens, adding it to the makefile was just easier.
What's the output when you run security find-certificate -c "iPhone Developer" login.keychain | grep alis | cut -f4 -d\" | cut -f1 -d\"
?
iPhone Developer: My name (W82C6*****)
Is that the same account that you used when creating the Xcode project?
Yes i only have the one which is enrolled in their program, that's the one i use for all my other iOS legit apps.
It’s quite strange that it doesn’t work. Add the following lines of code below https://github.com/kabiroberai/theos-jailed/blob/master/module/bin/ipa.sh#L90 in the location where you cloned Theos Jailed, run ./install again, and tell me the output of make do DEV_CERT_NAME="iPhone Developer"
(be sure to remove any personal details)
log 1 "Dev Cert Name: $DEV_CERT_NAME"
log 1 "Codesign Name: $codesign_name"
I put the two lines in after line 93, when the codesign_name is assigned, but it doesn't get there because the if statement that looks for profile breaks it. So i put them at the top also, so you could see something be printer out.
What’s the result of running grep -F "<string>iOS Team Provisioning Profile:" ~/Library/MobileDevice/Provisioning\ Profiles/*
?
Binary file /Users/Thomas/Library/MobileDevice/Provisioning Profiles/80b71dbe-ad81-4925-aba0-f79f0f370229.mobileprovision matches Binary file /Users/Thomas/Library/MobileDevice/Provisioning Profiles/aeb3bebc-d556-4aab-8124-10564deb0fc0.mobileprovision matches
Try grep -Fa "<string>iOS Team Provisioning Profile:" ~/Library/MobileDevice/Provisioning\ Profiles/*
/Users/Thomas/Library/MobileDevice/Provisioning Profiles/80b71dbe-ad81-4925-aba0-f79f0f370229.mobileprovision:
Hmm don't see the one xcode should have generated, but weirdly if i download the provisioning profile from developer.apple and install it, it doesn't show up also.
Oh, it’s because Xcode doesn’t think it needs to generate a profile since you already have a wildcard one. You can force it to generate a profile by turning on a capability that requires an entitlement (like app groups), and then turning it off again
Oh okay, that's why. So now it can find the profile, but it still says that it was signed with invalid entitlements.
Could you try installing the ipa through Xcode? It might give you a more descriptive error message
Dont know if this will help you 👍 https://imgur.com/a/kPSd1
Try codesign -d --entitlements - .theos/Payload/*.app
Do you want me to extract the iPA that i'm using to attach the tweak to or the iPA that theos generates, and then run codesign command on the payload?
Run that exact command after cd
ing into your project’s directory. .theos
is a hidden folder created in each project.
It’ll output the entitlements that the app requires, so just paste them here.
Hmm no such file or directory. Did ls -lah and looks like the folder is there.
nvm found it under _/
Whoops, forgot that it was in _
😛
That link gives me an “Oops! We couldn't find that page” error
Yeah sorry, updated link :)
What’s the result of the same codesign command when you run it with the original ipa file?
Looks like this: https://imgur.com/a/7P1ZS
Got it to work, thank you for your patience and help!
Hmm no, only worked with my (Enrolled) account that signed the ipa, when i try to impact it with impactor and using a different account, one that is not enrolled. I still get invalid entitlements, do you know why this happens? :(
Any news on this?
Hey, I have exams until tomorrow, so I’ll get back to this once they’re over.
What happens when you install an un-tweaked ProTube.ipa via Impactor?
Thank you for answering, hope your exams went well.
The ipa i'm using works fine when i impact it without tweaking.
Any news on this? :)
Sorry, I didn't see your previous comment. Could you try packaging with CODESIGN_IPA=0
? You won't be able to install directly from Theos Jailed with that, but it may get Impactor to work.
Closing due to inactivity
iam facing the same problem iam getting error after make package
installation.cpp:42 Failed to verify code signature of /private/var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.sFbr8h/extracted/Payload/cutecut.app/Frameworks/CydiaSubstrate.framework : 0xe8008016 (The executable was signed with invalid entitlements.)
when i download it from my mobile it work but from another phone i got this massage !!?!?
What do you mean by “download it from my mobile”?
i mean cydia impactor when i download it to another phones i got this massage please help
i guess the problem in entitlement i don't know how to fix this
Are you using the latest version of Theos Jailed? Try packaging your Cydia Impactor builds with CODESIGN_IPA=0
you mean to add CODESIGN_IPA=0 on make file?
You can do it that way or you can use make package CODESIGN_IPA=0
i love you man !!
and if i want to put it inside plist in website to direct download without cydia impactor will it work or i need to sign it ?
You have to sign it for that. Ensure that your provisioning profile contains the target device’s UDID.
but tutuapp when you download the app they don't ask for udid?
I'm having some difficulties when i need to sign the iPA. When i run it with profile in makefile i get "Could not find profile"
I tried creating a new XCode Project like it said in make info, ran the app, deleted it and ran "make package install" and it throws "Could not find profile"
So i went to developer.apple to create a profile manually, created both Development and Distribution provisioning profiles with my certificates, and that doesn't work.
If i remove profile= from makefile and just run "make package install" then it installs fine on my phone since i am enrolled, but when i try to run it via Impactor i get invalid entitlements, not codesigned.
Any ideas? Thanks.