Fake Code Signing not working

Feb 5, 2013
7
0
0
Visit site
Hello,

I have iOS 6.1 (jailbroken) and i'm using xCode 4.6. I fake codesigned and build my application in xcode but when i try to install it with itunes my iphone shows an alert box that says "'application name' failed to install" and then the icon dissapears from the springboard. What am i doing wrong?
 

duckboys

New member
Feb 6, 2013
1
0
0
Visit site
Hey

As a side question, did you have to do anything specific to fake the code signing? I did the typical changes, but after that it never signs, also the ios SDK disappears from xcode.
 
Feb 5, 2013
7
0
0
Visit site
You need to make the changes in the Info.plist make you certificate and then in your build settings you need to change 5 things to your certificate. At least that's what i found for xcode 5.5 i didn't find anything specific for 5.6 so i guess it's the same or nobody found a way to fake code sign in 5.6 yet. I think my application gets signed because i don't get any errors but when i try to install it it seems like ios knows it's not signed properly. (My device is jailbroken)
 
Feb 5, 2013
7
0
0
Visit site
Ok it's working now for me so here is a quick tutorial on the whole process:

1. Close xCode

2. Open Keychain Access

3. In the menu bar click on "Keychain Acces" then go to "Certificate Assistant" and click on "Create a Certificate..."

4. In the field "Name:" give your certificate a name, this can be anything, i just used my own name

5. For "Identity Type" choose (or leave it on) "Self Signed Root"

6. For "Certificate Type" choose "Code Signing"

7. Check "Let me override defaults"

8. Click Create

9. In the field "Serial Number:" type any number you want (for example "12345678")

10. Leave the Validity Period as it is except if you want your certificate to be valid for more than 1 year

11. Click Continue

12. If you want you can fill in your details here

13. Click Continue until it says "Your certificate has been successfully created." (if not try again)

14. Click Done and quit Keychain Access

15. Find xCode in your applications folder.

16. Richt click and then click show package contents.

17. Go to contents > developer > platforms > iphoneos.platform

18. Copy the file "Info.plist" to your desktop (drag while holding the option key will copy the file, make sure it doesn't make a shortcut)

19. Delete the file you just copied (not the one you placed on your desktop, delete the original file in the iphoneos.platform folder)

20. Open the file with Xcode

21. Under default properties change "XCiPhoneOSCodeSignContext" where it says "CODE_SIGN_CONTEXT_CLASS" to "XCCodeSignContext"

22. Do the same under overrideproperties

23. Save and close the file

24. Go back to contents > developer > platforms > iphoneos.platform

25. Paste the file from your desktop back in the folder (your computer might ask you to authenticate)

26. If xcode is open (because of editing the file) close it and then open it again

27. When xcode is open again open the project you want to fake code sign

28. On the left click on your project (the one with the blue icon that says 1 target, iOS sdk 6.1 or something like that under it, if it's not already selected)

29. on the right there is another blue icon with your application name "under project", click this one and then go to "build settings"

30. under "Code Signing" change all 5 values to the name of the certificate you made

31. build your project (command + B)

32. On the left in the group "Products" there is a file that is called *application name*.app drag this file to itunes

33. On your jailbroken iPhone add the source "http://cydia.myrepospace.com/flaminfury/" to cydia

34. In cydia search for "AppSync for iOS 4.x-6.x" and install

35. Now you can sync your iphone with iTunes (make sure in itunes the application is selected to be installed) and the application will install on your iPhone.
 
Last edited:

Laelipoo

Well-known member
Aug 11, 2010
2,206
66
0
Visit site
Ok it's working now for me so here is a quick tutorial on the whole process:

1. Close xCode

2. Open Keychain Access

3. In the menu bar click on "Keychain Acces" then go to "Certificate Assistant" and click on "Create a Certificate..."

4. In the field "Name:" give your certificate a name, this can be anything, i just used my own name

5. For "Identity Type" choose (or leave it on) "Self Signed Root"

6. For "Certificate Type" choose "Code Signing"

7. Check "Let me override defaults"

8. Click Create

9. In the field "Serial Number:" type any number you want (for example "12345678")

10. Leave the Validity Period as it is except if you want your certificate to be valid for more than 1 year

11. Click Continue

12. If you want you can fill in your details here

13. Click Continue until it says "Your certificate has been successfully created." (if not try again)

14. Click Done and quit Keychain Access

15. Find xCode in your applications folder.

16. Richt click and then click show package contents.

17. Go to contents > developer > platforms > iphoneos.platform

18. Copy the file "Info.plist" to your desktop (drag while holding the option key will copy the file, make sure it doesn't make a shortcut)

19. Delete the file you just copied (not the one you placed on your desktop, delete the original file in the iphoneos.platform folder)

20. Open the file with Xcode

21. Under default properties change "XCiPhoneOSCodeSignContext" where it says "CODE_SIGN_CONTEXT_CLASS" to "XCCodeSignContext"

22. Do the same under overrideproperties

23. Save and close the file

24. Go back to contents > developer > platforms > iphoneos.platform

25. Paste the file from your desktop back in the folder (your computer might ask you to authenticate)

26. If xcode is open (because of editing the file) close it and then open it again

27. When xcode is open again open the project you want to fake code sign

28. On the left click on your project (the one with the blue icon that says 1 target, iOS sdk 6.1 or something like that under it, if it's not already selected)

29. on the right there is another blue icon with your application name "under project", click this one and then go to "build settings"

30. under "Code Signing" change all 5 values to the name of the certificate you made

31. build your project (command + B)

32. On the left in the group "Products" there is a file that is called *application name*.app drag this file to itunes

33. On your jailbroken iPhone add the source "http://sinfuliphonerepo.com/" to cydia

34. In cydia search for "AppSync for iOS 4.x-6.x" and install

35. Now you can sync your iphone with iTunes (make sure in itunes the application is selected to be installed) and the application will install on your iPhone.


So uh, I gotta stick my head in here--that last bit (step 32 and on) kinda imply you're trying to sync apps you may not be able to do the normal way. You may want to edit that, since cracked apps aren't allowed here. If you not, sorry, I just want to make sure your intentions are clear.
 

kch50428

Well-known member
Oct 22, 2010
21,025
305
0
Visit site
This does seem hinky... at first look, I was thinking the OP was looking to do something involving their own apps on their own devices... but after seeing the explanation I'm left to wonder why one would need to "fake sign" their own code... not being a developer - I'm not knowledgeable on this...
 

natasftw

Well-known member
Sep 13, 2012
1,355
0
0
Visit site
This does seem hinky... at first look, I was thinking the OP was looking to do something involving their own apps on their own devices... but after seeing the explanation I'm left to wonder why one would need to "fake sign" their own code... not being a developer - I'm not knowledgeable on this...

Apple has a code signing process required for all apps. If the code isn't signed, your phone will reject it. There's a small amount discussing bypassing code signature on the main page of Cydia.

I'm still learning the ways of Apple development, so I could be mistaken. However, if I've interpreted everything correctly to this point you must "fake" the Apple signing process to get your apps to run without being an official developer.
 

natasftw

Well-known member
Sep 13, 2012
1,355
0
0
Visit site
What's wrong with the explanation? I'm trying to put apps i made myself with xcode on my own iPhone

The mention of a known pirating repo makes people question things. Keep in mind you're posting in a place where few spend the time developing apps so some of the terms you're using aren't well known.
 

kch50428

Well-known member
Oct 22, 2010
21,025
305
0
Visit site
I'm still learning the ways of Apple development, so I could be mistaken. However, if I've interpreted everything correctly to this point you must "fake" the Apple signing process to get your apps to run without being an official developer.
So this is for writing apps without being an Apple registered developer... Just so everyone is clear... review the iMore Forum rules for piracy discussion, and act accordingly.
 

Laelipoo

Well-known member
Aug 11, 2010
2,206
66
0
Visit site
Apple has a code signing process required for all apps. If the code isn't signed, your phone will reject it. There's a small amount discussing bypassing code signature on the main page of Cydia.

I'm still learning the ways of Apple development, so I could be mistaken. However, if I've interpreted everything correctly to this point you must "fake" the Apple signing process to get your apps to run without being an official developer.

Hopefully that's all. But between the evil repo and the mention of appsync, I couldn't help but be a little suspicious.
 

natasftw

Well-known member
Sep 13, 2012
1,355
0
0
Visit site
When you add that repo, it pops up a warning telling you it's a known pirating repo :p

That's why I went to find you another repo in a hurry.
 

Sohayb Dosky

New member
May 11, 2013
2
0
0
Visit site
I Already had same problem "name.app" failed to install...so i followed ur steps by adding a source but still i got same Notification ..Help me if u can plz

Note : i am using ios 6.1
 

Just_Me_D

Ambassador Team Leader, Senior Moderator
Moderator
Jan 8, 2012
59,778
645
113
Visit site
I Already had same problem "name.app" failed to install...so i followed ur steps by adding a source but still i got same Notification ..Help me if u can plz

Note : i am using ios 6.1
Assisting you is important to us and there are times when the members of this community who can best provide you with assistance to your particular issue or concern may not be available at the time of your post so please be patient while awaiting a reply. In the meantime, feel free to peruse the various sections of the iMore forum as well as the iMore Blog and check back periodically for a reply to your post. Thank you.
 

Latest posts

Trending Posts

Members online

Forum statistics

Threads
260,328
Messages
1,766,436
Members
441,237
Latest member
INTERNET BUNDLE NOW