Xcode 10 archiving fails - only on command line (xcodebuild)

前端 未结 4 1960
攒了一身酷
攒了一身酷 2021-02-02 12:05

I\'m having issues with archiving on my CI machine (Jenkins), when running the process manually on the SAME machine but with the Xcode UI, everything works just fine.

T

相关标签:
4条回答
  • 2021-02-02 12:23

    I had the same issue doing:

    xcodebuild -workspace ABC.xcworkspace -scheme SCHEME_NAME archive -archivePath ABC.xcarchive
    

    I solved it by stripping out the -archivePath and its parameter.

    0 讨论(0)
  • 2021-02-02 12:29

    Eventually I figured it out, it's something that looks really UNRELATED, and yet it was the only thing that fixed the described issue for me.

    Go to your build settings and remove any recursive search paths you have there. That's it. (any search path that ends with ** is a recursive one).

    Good luck!

    0 讨论(0)
  • 2021-02-02 12:31

    A related case in which this error appears is by running:

    xcodebuild -scheme sharetec build

    In my case I just had to tune up a little more the parameters like this:

    xcodebuild -workspace [WP_NAME].xcworkspace -scheme [A_TARGET] -sdk iphoneos clean build

    So the error disappears.

    0 讨论(0)
  • 2021-02-02 12:45

    I had this issue when using AppCenter. I had selected a different version of xcode to that of my project's deployment target.

    0 讨论(0)
提交回复
热议问题