Continuous Integration

RSS for tag

Continuous integration is the process of automating and streamlining the building, analyzing, testing, and archiving of your apps, in order to ensure that they are always in a releasable state.

Posts under Continuous Integration tag

48 Posts
Sort by:
Post not yet marked as solved
37 Replies
13k Views
I think I've encountered a new way to fail.t = 1.13s Waiting for accessibility to loadt = 61.14s Assertion Failure: UI Testing Failure - App accessibility isn't loadedThis happens when running an integration via Xcode bot, on a rather large codebase The test runs fine on my local machine's Xcode, but fails on the server. A simple toy app also finishes integration without any issues, so likely the app is triggering some bizarre edge case.Can anyone at Apple comment on whatever could be causing this?
Posted
by rmundo.
Last updated
.
Post not yet marked as solved
6 Replies
1.1k Views
After updating the XCode to version 11.4 (11E146), I stopped seeing repository branches in the bot settings. But I see these repository branches in Source Controll Navigator. Does anyone know how I can fix it?
Posted
by bora14.
Last updated
.
Post not yet marked as solved
1 Replies
1.8k Views
This a repost from https://stackoverflow.com/questions/68872891/xcode-13-beta-xcrun-error-failed-to-locate-instruments Please note, I'm looking for /Applications/Xcode.app/Contents/Developer/usr/bin/instruments util (lower-case), not the Instruments app which can be found in Xcode.app/Contents/Applications. I have both Xcode12 and Xcode13-beta-5 on my computer. When run xcrun instruments -w <device id>, Xcode13 says xcrun: error: Failed to locate 'instruments'. Locating the "instruments" in Xcode12: olia@Olhas-MacBook-Pro % ls /Applications/Xcode.app/Contents/Developer/usr/bin/*instruments* # output ✅ /Applications/Xcode.app/Contents/Developer/usr/bin/instruments Locating the "instruments" in Xcode13: olia@Olhas-MacBook-Pro % ls /Applications/Xcode-beta.app/Contents/Developer/usr/bin/*instruments* # output ❌ zsh: no matches found: /Applications/Xcode-beta.app/Contents/Developer/usr/bin/*instruments* Here, Xcode-beta.app is Xcode13, and Xcode.app is Xcode12.
Posted
by olia.
Last updated
.
Post not yet marked as solved
0 Replies
327 Views
On XCode 12.0.1, I have this intermittent error, is there any way to fix this? t = 0.19s Open <bundle_id> t = 0.29s Launch <bundle_id> <unknown>:0: error: -[<test_name>] : activate application '<XCUIApplicationImpl: 0x600000842d00 <bundle_id> at <app_path>' (current state: Running Background) t = 61.11s Setting up automation session t = 61.13s Wait for <bundle_id> to idle The test continues running for a while, but it failed because of the error during the launch step (0.29s - 61.11s). Also, notice an unexpected long launching here, it normally just takes 10-15s for this step. Thanks
Posted Last updated
.
Post not yet marked as solved
0 Replies
385 Views
I wrote a few unit test cases using XCTest by mocking the data? Is there any best practice to have multiple test profiles with different data sets? Sometime mock should return nil, sometimes an array with 2 elements and sometimes an array with 10 elements. How to have multiple test profiles?
Posted Last updated
.
Post not yet marked as solved
1 Replies
1.5k Views
Recently I started developing IOS app and I use git for version control. And we have several developers working together but every time we changed things in the project, the XCode will generate some unrelated codes in project.pbxproj file. I would like to know why xcode will have this behavior and sometimes what xcode does is simply swapping the location of two PBXContainerItemProxy segments. This cause lots of headache everytime I want to link a framework and I have to manually go into project.pbxproj file to see if some certain changes need to be reverted. Could you please give me some answers why XCode will have these kind of behaviors and the way to avoid them?
Posted
by gao288.
Last updated
.
Post marked as solved
1 Replies
2.4k Views
Hello,Does anyone know how to configure Xcode Server to reach GitHub through a proxy?Our proxy settings are configured under the network settings for the Ethernet port. A desktop session on the server correctly reaches GitHub, but the server times out with the following error in the logs:Apr 7 18:20:16 buildserver com.apple.dt.Xcode.sourcecontrol.Git[7091]: #DVTSourceControl Notice: Error with libgit operation (git_remote_connect(remote, GIT_DIRECTION_FETCH, &amp;remoteCallbacks)) Method: -[DVTSourceControlGitPlugInPrimary _libgit_headRevisionOfRemoteRepository:andBranches:completionBlock:] Apr 7 18:20:16 buildserver node[94]: #DVTSourceControl Error: -1 curl error: Failed to connect to github.com port 443: Operation timed out (-1) Underlying Error: curl error: Failed to connect to github.com port 443: Operation timed out (-1) Method: __97-[DVTSourceControlManager revisionOfLocation:inRepository:branchAndTagLocations:completionBlock:]_block_invoke_2It looks like git doesn't use the network proxy settings. Is there a way to manually configure the proxy settings for the git instance used by Xcode Server?
Posted
by Beast.
Last updated
.
Post not yet marked as solved
1 Replies
1.2k Views
Hi, I'm running a CD/CI pipeline with Gitlab which builds and deploy a flutter app via a mac mini M1. Recently we have upgraded xcode to 12.5.1 and our flutter app from v1 to v2, which involved a painful amount of dependencies upgrade. This upgrade has created some issues only on computer with M1 chip. As much as we have fixed most of the issue, 1 remaing is fixable ONLY by manually changing the Target > Build Settings > Architecture from ARCHS_STANDARDS to 'arm64' only. Because each time we deploy a new instance of XCode is created, we can't manually make this change and we need to make it from the code. I've applied this into my Podfile: post_install do |installer| installer.pods_project.targets.each do |target| flutter_additional_ios_build_settings(target) target.build_configurations.each do |config| config.build_settings['ARCHS'] = 'arm64' end end end but unfortunately it doesn't force the ARCHS to change to arm64. Is there a way to do that from the Podfile or any other files in the code? Thanks Matt
Posted
by devolab.
Last updated
.