Closed myafer closed 7 years ago
Sure, do you want to make a commandline application written in Swift to do this? What xctool commands do you want to run? What type of server are you uploading to?
Thx for your reply. I had call the xcbuild to build and package the project. Your framework is very good ! And could you me some suggestion about this https://github.com/myafer/HHSSJJ/blob/master/HHSSJJ/main.swift
Okay, I have some comments:
main.currentdirectory = projectPath
. This way you don't have to do "cd " + projectPath + ";
all the time.try runAndPrint("xcodebuild", "archive", "-scheme", "TTTT", "-configuration", "Release", "-archivePath", archivepath)
. This way you don't have to remember to use \". All the arguments are sent directly to xcodebuild
exactly the way you write them, even if they contain '*' or '?'.OK, thank you very much!
I want use this for call xctool to build my project and then uplaod to my sever. Could you give me some suggestion or a demo for me. Thanks!