Configure iOS application builds Differences between debugging and distribution

For an iPhone / iPad application, what build settings do you do differently between Debug and Distribution builds? Pay attention to any unique settings that you will only make for iPhone and iPad apps.

Here is what I am doing at present (some are already set by default to Xcode), but would like to put together an exhaustive list. Normal path information is not included in the list.

To build adhoc and the App Store:

  • Enable product build verification
  • Set optimization level for fastest and smallest
  • Assign Entitlements.plist for code signing rights
  • Debugging debugging characters while copying
  • Add NS_BLOCK_ASSERTIONS = 1 to "Other Flags C"
  • For iPad application only, set “Architectures” and “Trusted Architectures” to “Optimized” (arm7).

To build debugging:

  • Add DEBUG to the preprocessor macros.
+4
source share
2 answers

In the Debug assembly, I also usually install the DEBUG preprocessor macro, and then a macro like DLog instead of NSLog for all my logging.

+1
source

I recently discovered that LLVM 2.0 (sometimes?) Creates buggy executables for first-generation iOS devices, but it’s faster and better to develop LLVM than GCC, so I installed Debug builds to use LLVM and releases to use LLVM-GCC.

In addition, I do not think that manually setting the "Rights" has been necessary for some time. Xcode seems to automatically apply the correct permissions for ad-hoc collections.

+1
source

Source: https://habr.com/ru/post/1347582/


All Articles