Different behavior in Xcode and xcodebuild

I have a CI environment that is building my project. Therefore, when I compile my project using xcodebuild -target MyTargetand run it on a physical device, I get a visual error from one of the libraries Three20, as well as with a reproducible failure.

However, when I compile and run the project with the same goal using Xcode, I have no crash or visual problem.

Since I am not doing anything unusual with xcodebuild, I would expect the two assemblies to be the same. Generally, I would prefer a problem in two places than two assemblies behave differently.

Does anyone encounter similar problems and how can I make sure that the product of Xcode and xcodebuild is identical? Many thanks for your help.

+5
source share
1 answer

Try to run xcodebuild -scheme MySchemewhere MySchemeit will most likely be the name of your target if Xcode automatically generates this scheme for you.

The GUI uses schemas when building, and I found that you can usually get the same behavior by specifying a schema xcodebuild.

+3
source

All Articles