ios - xcodebuild workspace and scheme -
i little confused happens xcodebuild command line tool when specify workspace , scheme.
i understand how configured scheme works in xcode ide gui. build action lists targets build , each action (analyze, test, run, profile, archive), select 1 want build action execute for.
so if have each action (analyze, test, run, profile, archive) selected in build action building, happens when execute below command.
xcodebuild clean install -workspace myworkspace.xcworkspace -scheme myscheme -configuration adhoc symroot=path dstroot=path...
it searches myscheme.xcscheme in main xcodeproj has configuration specified when editing scheme in xcode.
what xcodebuild read in file? build configured target adhoc configuration , disregard else?
you're there, syntax bit off. according man page:
xcodebuild -workspace workspacename -scheme schemename [-configuration configurationname] [-sdk [sdkfullpath | sdkname]] [buildaction ...] [setting=value ...] [-userdefault=value ...]
where buildaction 1 of following:
buildaction ... specify build action (or actions) perform on target. available build actions are:
build build target in build root (symroot). default build action. archive archive scheme build root (symroot). requires specifying scheme. test test scheme build root (symroot). requires specifying scheme. installsrc copy source of project source root (srcroot). install build target , install target's installation directory in dis- tribution root (dstroot). clean remove build products , intermediate files build root (symroot).
in xcode ide, choose buildaction run through product menu, or clicking , holding round button on top left of ide (run = play triangle, test = wrench icon, etc).
also, careful note where xcodebuild looking build scheme - can either in .xcproj or .xcworkspace file, depending on 1 created. (if didn't manually create workspace, have .xcproj file).
you can ascertain schemes have via 'manage schemes' setting in xcode.
Comments
Post a Comment