Fixing Common iOS 12 Jailbreak Issues with Cydia
To resolve an issue where an app switcher is quitting out of the app switcher, it's recommended to quit out of the app switcher and then refresh your sources until it's completely done. Once that's done, try installing a specific tweak again and if it's an issue with the actual repo itself, just delete whatever repo it shows right here. For example, in this case, it's the G Mehran dot me repo. Find that in your sources section and then delete it. To delete the source, go to Sources edit and click on the little red "X" icon next to the source you want to delete.
If you get a database error where it says the package needs to be reinstalled but can't find an archive for it, this is a pretty easy fix that requires having files installed. To solve this issue, go into Var Lib dpkg and look for two status files: "status old" and "status". Copy the "status" file instead of "status old", just to make sure you have a backup of the original status file. Then, edit the copied status file and delete the entire section that's causing the issue. This is likely the tweak that was showing up in the error message.
For instance, if it says animation to be fast, go into the animations be fast tweak and click on it. Select the whole section of the tweak that's causing the issue and hit backspace to delete it. Then, save and you should be good to go. Make sure to force quit out of Cydia and then reopen it after making these changes.
If you get a database error where it says "No such file or directory - no such file or directory", this is going to require a lot of work. However, if you're wondering how this happened, it's because you clicked on "Reset all content and settings" inside the Settings app while jailbroken. This is a huge no-no for iOS 12 users, as it can completely mess up your file system. If you've made this mistake and are now facing this issue, I'll leave a link in the description below to a video on how to fix this error.
Another common issue is when Cydia shows "Target packages is configured in multiple times" and lists out a list of sources. This simply means that you have duplicate sources inside of Cydia. To fix this, go into Cydia and then go to your Sources edit section. Either delete the last source that you installed if you notice it happened only after adding a source, or just take a look at what the source is. For example, in this case, it's the H bang source listed multiple times. Go back into Cydia, find the H bang source, click Edit and then Delete Source to resolve the issue.
Fixing Common Jailbreak Issues with Cydia
To address common issues with Cydia after jailbreaking your iOS 12 device, follow these steps:
If you get a database error where it says "target packages is configured in multiple times" and lists out a list of sources, this simply means that you have duplicate sources inside of Cydia. To fix this, go into Cydia and then go to your Sources edit section. Either delete the last source that you installed if you notice it happened only after adding a source, or just take a look at what the source is.
Another common issue with iOS 12 jailbreak tweaks is when Cydia shows an error message indicating that there is no such file or directory for a specific tweak. In this case, go into Var Lib dpkg and look for two status files: "status old" and "status". Copy the "status" file instead of "status old", just to make sure you have a backup of the original status file.
To solve this issue, edit the copied status file and delete the entire section that's causing the error. This is likely the tweak that was showing up in the error message. For instance, if it says animation to be fast, go into the animations be fast tweak and click on it. Select the whole section of the tweak that's causing the issue and hit backspace to delete it. Then, save and you should be good to go.
Force Quitting Cydia and Reopening
If you're experiencing issues with Cydia after trying some tweaks or modifications, try force quitting Cydia and then reopening it again. This simple step can often resolve issues that may have been caused by a tweak or modification that's not working properly.
Resetting All Content and Settings
One of the most common mistakes that iOS 12 users make while jailbreaking is clicking on "Reset all content and settings" inside the Settings app. This mistake can completely mess up your file system and cause issues with Cydia. If you've made this mistake, it's recommended to go back to Step 1 and follow the instructions provided.
Conclusion
Fixing common iOS 12 jailbreak issues with Cydia requires patience and attention to detail. By following these steps, you should be able to resolve most common issues that may arise after jailbreaking your device.