xcodebuild archive randomly fails its dependency resolution

When I try to compile my project in command line with xcodebuild archive, it fails randomly.

Looking closer, it tries to resolve an iOS Framework dependency by compiling an OSX target.


here is the head of the log, where we see that the plateform is iOS, and the first target opened :

Build settings from command line:
   CODE_SIGN_IDENTITY = iPhone Distribution
   ONLY_ACTIVE_ARCH = NO
   SDKROOT = iphoneos9.0
   VFBuildNumber = 166
   VFCommit = 20239e
   VFContext = Production

=== BUILD TARGET FluideKit-Mac OF PROJECT FluideKit WITH CONFIGURATION Release ===
xcodebuild archive randomly fails its dependency resolution
 
 
Q