Xcode4 shows all output (delete "Show only first 200 notifications") in terminal

we use xcodebuild for some CI Jenkins tasks.

We have an error that stops the assembly, but does not see what it is, because xcodebuild limits the length of the log to the first 200 notifications:

Showing first 200 notices only ** TEST FAILED ** 

Is there a way to remove the 200 notification limit? We know that we can do this in Xcode using the user interface, but should be able to do this from the command line using xcodebuild

+6
source share
3 answers

Just use xcodebuild cli. In Jenkins, install an "invoke script" with the following contents: xcodebuild clean test -project SOMEPROJECT.xcodeproj -SOMECHEME scheme -destination 'name = iPhone 6, OS = 9.1'

0
source

You can basically do this in one of the following ways:

a. Add this to your configuration files. OTHER_CFLAGS (Other C Flags)
e.g. OTHER_CFLAGS = -ferror limit = 0

b. GCC_PREPROCESSOR_DEFINITIONS (Preprocessor Macros)
with. INFOPLIST_PREPROCESSOR_DEFINITIONS (Info.plist preprocessor definitions)

0
source

If you want to try it in Xcode, select Show Problem Navigator in the left pane, select a target, if you have any linker warning or Dsymutil Warning, click on any of them, you should be able to see a list of all warnings, filter them. by selecting " ALL " and " ALL problems " in the right pane. You can now see general warnings with details. enter image description here

0
source

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


All Articles