为什么运行build_frameworks.sh会失败?

时间:2017-10-24 22:44:09

标签: audiokit

运行build_frameworks.sh脚本有时会导致这种神秘错误。为什么要这样做,我该如何解决呢?

~/Code/AudioKit/AudioKit () ./Frameworks/build_frameworks.sh 
cat: ../VERSION: No such file or directory
Building frameworks for platforms: iOS macOS tvOS
Ignoring configuration file 'simulator.xcconfig' because it could not be loaded.
        Reason: File could not be parsed due to preprocessing errors:
    The file “simulator.xcconfig” couldn’t be opened because there is no such file. (/Users/username/Code/AudioKit/AudioKit/simulator.xcconfig)Build settings from command line:
    BUILD_DIR = /Users/username/Code/AudioKit/AudioKit/build
    SDKROOT = iphonesimulator11.0

xcodebuild: error: '../AudioKit/iOS/AudioKit For iOS.xcodeproj' does not exist.
~/Code/AudioKit/AudioKit () cd Frameworks/

2 个答案:

答案 0 :(得分:4)

必须从build_frameworks.sh目录运行Frameworks/脚本! cd进入该目录运行脚本,你应该有更好的成功。 :)

答案 1 :(得分:1)

从AudioKit 4.0.3开始,这个问题就消失了:

⋊> ~/D/AudioKit on develop ⨯ ./Frameworks/build_frameworks.sh           23:46:08
This script needs to be run from the Frameworks folder

通过https://github.com/AudioKit/AudioKit/commit/c85fbc714c172338f9586074315602dda8051d71