-
Notifications
You must be signed in to change notification settings - Fork 241
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Obfuscation fails on Xcode 7.2 #52
Comments
so after looking a bit more at the specific error it seems it has to do with the fact that it is using the iphonesimulator sdk to compile. After I switched that out to use the iphonos sdk it all started working....mostly. now the obfuscation completes perfectly, but I cannot build the app I have around 20 errors all saying the same thing: |
I have the same problem. Did you solve this issue? |
No unfortunately not. I emailed the team to see if they could provide any more insight into the problem and when/if there was going to be a fix. Apparently they are waiting for Apple to release a new ClassDump that is compatible with Xcode 7.2 Who knows when that will happen if even at all. |
While I don't know the cause of your original issue, I do know the cause of your second issue: the build failing with iPhoneOS SDK. @daushn, you are likely encountering this same issue. The approach ios-class-guard takes to renaming is clever, but can produce less than intuitive compiler errors when there is a problem. In order for it to work well, the system libraries that your app uses must be analyzed. ios-class-guard will warn you if this fails. Pay attention to warnings like the following:
This means that ios-class-guard is not able to analyze the dependencies correctly. Apple has dramatically changed the SDKs ship with Xcode (6 and again in 7) to reduce download footprints. iPhoneSimulator SDK still works, but the iPhoneOS SDK format is unsupported. This means that analysis of an ARM binary will not work. Make sure to look for the
This number should be > 50k for even a simple iOS project. If the number is very small, analysis of the SDK failed, and poor build results can be expected, including error messages like We (PreEmptive Solutions) forked iOS Class Guard, creating a new product, called PreEmptive Protection for iOS - Rename (or PPiOS-Rename), that fixes this issue and a number of others. PPiOS-Rename uses the same approach to renaming, but will use iPhoneSimulator SDK in lieu of iPhoneOS SDK, even for ARM binaries. Note that PPiOS-Rename changes the way the obfuscation process is integrated into the build (to make it easier to use), so you'll probably need to make changes to your build, and to pay attention to the new/changed argument names. Please give it a try and let us know how it works for you. |
I am trying to obfuscate my project and I am getting tons of errors in the process
The text was updated successfully, but these errors were encountered: