Xcode compilation unexpected results

2019-08-20 12:37发布

问题:

✅ Xcode 10.2.1

I have a project, on which I worked in Xcode 10.2.1. Suddenly it started to get stuck building one of my many pods (one of 2, inconsistently). Says something like "Building <AppName>: <PodName> | Building 749 of 803 tasks". And while idle, it gets stuck "Indexing Text".

Update: This version is unable to Build or Index ANY project I try. True even for unchanged presets.

SOLVED: Restarting my machine was the solution


✅ Xcode 11.0 Beta 1

Just to test, I've opened this project in Xcode 11 Beta (1) and it worked just fine. I was able to Build and Run, Archive but not Distribute (AppStore Connect says tool is unsupported).


❌ Xcode 11.0 Beta 4

The latest available Beta, however, Builds and Runs this project with no problems, however, fails to Archive it.


Additional information

  1. I tried cleaning, restarting; updating CocoaPods; reinstalling and reinitializing all Pods, nothing helped.
  2. The issue appeared, seemingly, out of nowhere, not in between installing or updating any of the Pods.
  3. It worked perfectly in Xcode 11.0 Beta 1, just as one would expect any version of Xcode to work with an .xcworkspace. No warnings, no errors, nothing.