Troubleshooting
This document covers common issues which may arise when trying to protect your application using Defender for iOS.
ERROR: Project build failed with status = 65
This may be the most common error when building your project using Defender for iOS.
This error occurs when an object inside your project is modified, but due to the object properties, the modification prevents your application from compiling properly. To resolve this error, we need to find the original object name and add it to an exclusion list so Defender for iOS does not modify this object.
Steps to Resolve:
- Enable debug level 3 either in your configuration file or command line.
- Run Defender for iOS again with all other arguments remaining the same.
- Open the log file and search for
‘error:’
- You should find a line such as:
/NavigationBarView.swift:43:27: error: type 'Color' has no member 'Wcvtv93ykrc8fQu4'
- Take the masked value, in this example 'Wcvtv93ykrc8fQu4', and search for it within the log file. You should find the original value in the log file such as:
- red -> Wcvtv93ykrc8fQu4
- The ‘red’ property is the cause of the error.
Add the exclusion argument and value to your command line argument or config file and rerun Defender for iOS:
$ ./defenderForiOS <path to project>/Project.xcodeproj -o <path to output directory> -l 3 -x red --scheme <scheme name>