Xcode 10: unable to attach DB error

后端 未结 7 1679
粉色の甜心
粉色の甜心 2020-12-02 13:34

When updating to Xcode 10, iOS static library target fails to build. Way how I am trying to build it is following:

xcodebuild -target TargetName -configurati         


        
7条回答
  •  囚心锁ツ
    2020-12-02 13:37

    If you want to keep the XCode 10 default build system but still running your build outside of the IDE (in a CI machine for instance), just replace your -target parameter for the -scheme parameter in your xcodebuild command like:

    xcodebuild -scheme SchemeName -configuration Release clean build
    

    Thanks to this post from 2015 that talks about a very similar problem and it gave me the hint to solve this problem. As the same author says,

    I would hazard a guess, that xcodebuild without a scheme goes wrongly through the "modern build system", giving the mentioned error

提交回复
热议问题