Build phase script is running before needed files are created in Xcode 10

时光总嘲笑我的痴心妄想 提交于 2019-12-11 01:33:12

问题


https://github.com/realm/realm-cocoa/blob/master/scripts/strip-frameworks.sh

We are always using this script to remove architectures for dynamic frameworks. It has worked with Xcode 9.

In Xcode 10, it didn't remove the architectures. Anything in Xcode 10 that could break this? We have a theory that it is related to the new build system


回答1:


Solution

The new build system is now running scripts in parallel if its dependency is already available or if it doesn't have any dependency. The solution is to provide input files to tell "run scripts" not to run yet without those dependencies.

This is more elaborated in this post

Alternative Solution:

We used the legacy build system as a work around.

File > Workspace Settings



来源:https://stackoverflow.com/questions/52709928/build-phase-script-is-running-before-needed-files-are-created-in-xcode-10

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!