I'm tryging to configure a CI pipeline and run unit tests automatically, but I'm handling with no schemes for the current workspace. I know I can create them by using Xcode/ Manage Schemes etc... but since the nature it self of the automation in the tests routine, I'm figuring out if there's a way to automatize the scheme creation step.
Is there a way to autocreate schemes for a Xcode Project from command line
2.4k Views Asked by YadirHB At
1
There are 1 best solutions below
Related Questions in XCODE
- Using Storyboard Reference
- Getting this message in my console in xcode "Ignoring restoreCompletedTransactionsWithApplicationUsername: because already restoring transactions"?
- Error when creating UIImage
- fade in an bounce animation subview
- How to delete static library ".a" file from xcode project?
- Error in main.storyboard
- Is the compiler Xcode uses to produce Assembly code a bad compiler?
- Using paths bonded to a XCode project to be shared
- How to set the time of Local notification in app to random between two times? (swift)
- "Invalid Signature, code object not signed at all" error
- Alarming memory increase with custom segue
- Display both alertTitle and AlertBody on a custom WatchKit notification
- How to make a CocoaPods project work on OS X El Capitan & Xcode 7 Beta?
- Cannot use CTRL+Drag for making a button action in Xcode?
- Labels properties changing in Xcode
Related Questions in XCODEBUILD
- xcodebuild setting parameter equivalent in Xcode GUI build?
- How to build a workspace with frameworks from command line with overridden non-wildcard PROVISIONING_PROFILE
- Xcode 8.2, Swift Compiler Error: error: unexpected input file
- xcodebuild error on file path
- Bitrise.io scheme not found
- xcodebuild test-without-building. How to override test run parameters from command line
- Xcode 8 and exportPath
- Configuring Xcode project to be built with specific build tools version
- xcodebuild flag overrides code signing for pods project targets
- xcodebuild error - SecKey API returned: -25308
- Specify individual target build settings with xcodebuild
- Import CommmonCrypto library to Swift project
- xcodebuild fails to create Archive due to SymLink error with Alamofire
- Build bundle using xcodebuild
- Order of library search path entries
Related Questions in XCODE-PROJECT
- How can I delete an Xcode workspace?
- Why isn't my cocoapods post_install hook updating my preprocessor macros?
- Integrating pods with all targets
- Undefined symbols for architecture armv7 for Cocoapods libraries
- Debug configuration file (.xcconfig)
- Removing unused frameworks in Xcode?
- Remove unnecessary frameworks in Xcode project
- Xcode project with a certain Product name crashes at launch
- Classes in Swift files inside folder references not seen by Xcode 10's compiler
- Attach Header File To Target On Xcode
- xcconfig has no effect when running 'swift package generate-xcodeproj'
- Is there a way to autocreate schemes for a Xcode Project from command line
- What tools support editing project.pbxproj files?
- xcode change code signing identity by ruby gem xcodeproj
- Project file changed many places
Related Questions in XCODEPROJ
- How to remove a group from Xcode project programmatically?
- What is a proper way to execute ruby script from xcode build phase script?
- Is `XCBuildConfiguration#base_configuration_reference` supported in xcodeproj?
- Add Active Compilation Conditions/Custom Flags using fastlane
- Ruby Xcodeproj: Add a file to GroupReference in a Workspace
- What's the difference between Xcode's move to trash and remove reference?
- What is the source of Xcode build settings defaults?
- Get xcodeproj and ruby 2.7.0 into the PATH
- How to remove file reference from Runner.xcodeproj
- Creating New iOS Build Target with Xcodeproj
- Xcode build environment variable for scheme that is running
- Is there a way to autocreate schemes for a Xcode Project from command line
- How to Add file .a to project by xcodegen swift
- Add file to native target programmatically via tuist/XcodeProj
- how to share common code between two projects in xcode swift
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Firstly to test an Xcode project is mandatory to use at least one scheme configured to run tests. After that the test should be ran from command line with xcodebuild. So there was two steps to fulfill, first automatically generate the schemes required, and secondly run the tests for the test-configured-schemes.
1- By using a ruby gem CocoaPods/Xcodeproj in a script I was able to perform the creation of the schemes. The following code creates the schemes for all targets:
Step 1 (OK)
2- Create a shell script to run the tests from command line. This script receives can be edited to include the scheme(s) in which the tests must run, looping scheme by scheme until all tests pass or one fail.
Step 2 (OK)
Hope this helps!