iOS project translation prerequisites

The following are the prerequisites for translating iOS projects:

  • Objective-C++ projects must use the non-fragile Objective-C runtime (ABI version 2 or 3).
  • Use Apple’s xcode-select command-line tool to set your Xcode path. OpenText SAST uses the system global Xcode configuration to find the Xcode toolchain and headers.
  • Make sure that all source files required for a successful Xcode build are provided.

    You can exclude files from the analysis using the -exclude option (see iOS Code Analysis Command-Line Syntax).

  • Make sure that you have any dependencies required to build the project available.
  • To translate Swift code, make sure that you have available all third-party modules, including CocoaPods. Bridging headers must also be available. However, Xcode usually generates them automatically during the build.
  • If your project includes property list files in binary format, you must first convert them to XML format. You can do this with the Xcode putil command.

  • To translate Objective-C projects, ensure that the headers for third-party libraries are available.
  • To translate Watchkit® applications, make sure that you translate both the iPhone application target and the WatchKit extension target.