If you’re using Xcode 10 on a new project, Xcode 10 adopts a new build ordering that is independent of the ordered list in the Build Phases of Xcode. Put "$(BUILT_PRODUCTS_DIR)/$(INFOPLIST_PATH)" into your Fabric Run Script’s “Input Files” section to ensure your installation of Fabric goes smoothly.
主要是因為在 Xcode 10 的 Build Phases 中,Run Script 若是彼此之間沒有相依性,或是它所依賴的目標檔案已經可取得,那麼這些 Run Script 將會以平行處理的方式執行。在 Xcode 10 的 Build System Release Notes 中寫了這麼一段:
In the new build system, shell scripts can't rely on the state of build artifacts not listed in other build phases (for example, the Info.plist file or .dSYM files.) Add files the script build phase depends on as explicit input dependencies to the shell script build phase. (40852184)