![]() ![]() This is the shared Scheme that you justĬonfigured. You will now have a new file in the xcshareddata/xcschemes directory Drag the dependency above your test target so it is built first.Click the + button and add each dependency to the project.ĬocoaPods will appear as a static library named Pods.Click the Build tab in the left-hand panel of the Scheme editor. ![]() Highlight your application target and hit the Edit… button to.You will need to ensure that they have been configured as explicit If your target include cross-project dependencies such as CocoaPods, then Shared checkbox in the far right hand column of the sheet is checked. Locate the target you want to use for testing in the list.Open up the Manage Schemes sheet by selecting the Product → Schemes →.Scheme for your application target, and ensure that all dependencies (such asĬocoaPods) are added explicitly to the Scheme. In order to your run tests on Travis CI, you also need to create a Shared travis.yml instead of xcode_project.īuilds using the xcode6.4 or xcode7.3 images use If you are using a workspace instead of a project, use the xcode_workspace The form iphonesimulatorX.Y where X.Y is the version you want to test You can also specify an SDK using the xcode_sdk variable. Language : objective-c xcode_project : MyNewProject.xcodeproj # path to your xcodeproj folder xcode_scheme : MyNewProjectTests xcode_destination : platform=iOS Simulator,OS=10.1,name=iPad Pro (9.7-inch) In order for xcodebuild to work, you need to tell it where toįind your project or workspace, what scheme you would like to build and test, and whichĭevice or simulator run tests on. Travis CI runs xcodebuild and xcpretty by default toĮxecute your tests. Swift builds are just routed to our macOS image, the same as Objective-C builds. Said another way, we don’t have native support for Swift projects at this time. ![]() Right now, language: swift is just an alias for language: objective-c. Version of Xcode (and macOS) by specifying the corresponding osx_image key fromĭetailed iOS SDK versions are available in the macOS CI environment Travis CI uses macOS 10.13 (and Xcode 9.4.1) by default. Objective-C/Swift builds are not available on the Linux environments. Please make sure to read our Tutorial and general build This guide covers build environment and configuration topics specific to Improve this page on GitHub Building an Objective-C or Swift Project The README in our Git repository explains how to contribute.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |