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

132 Posts

Post

Replies

Boosts

Views

Activity

CI tests failing with "Could not compute signing task inputs"
My CircleCI workflow has started failing with an error I can't seem to find any documentation for: Could not compute signing task inputs - operation was cancelled. ... and then a reference to a 3rd party library's product, eg.: (in target 'Appboy_iOS_SDK_AppboyKit' from project 'Appboy_iOS_SDK'). I'm using SPM to manage dependencies and I'm trying to modularize my Xcode project by adding a local SPM package. Below is the relevant part of the CircleCI output. I can't seem to figure out what these errors are referring to and they don't seem to occur when I remove UI tests from the scheme, so I'm assuming this has something to do with the "Copy Bundle Resources" step of the "MyAppUITests" target. Any help would be much appreciated. Xcode version: 12.5.1 [00:00:45]: Running Tests: ▸ Touching MyApp.app (in target 'MyApp' from project 'MyApp') [00:00:45]: ▸ Build Succeeded [00:00:45]: ▸ 2021-07-22 00:00:45.521 xcodebuild[1629:69156] [MT] DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/IDEFrameworks/IDEFrameworks-18212/IDEFoundation/Testing/IDETestRunSpecificationBuilder.m:678 [00:00:45]: ▸ Details: Failed to compute path to baseline file during test run spec construction: <XCTHTestRunSpecification: 0x7fa5036121a0> [00:00:45]: ▸ Object: <IDETestRunSpecificationBuilder> [00:00:45]: ▸ Method: +testRunSpecificationsForTestingSpecifiers:scheme:buildables:withBuildParameters:additionalEnvironmentVariables:additionalCommandLineArguments:testRerunPolicy:includeClangProfileParameters:shouldDebugAppExtensions:error: [00:00:45]: ▸ Thread: <NSThread: 0x7fa4f9618f70>{number = 1, name = main} [00:00:45]: ▸ Please file a bug at https://feedbackassistant.apple.com with this warning message and any useful information you can provide. [00:00:45]: ▸ 2021-07-22 00:00:45.526 xcodebuild[1629:69156] [MT] DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/IDEFrameworks/IDEFrameworks-18212/IDEFoundation/Testing/IDETestRunSpecificationBuilder.m:678 [00:00:45]: ▸ Details: Failed to compute path to baseline file during test run spec construction: <XCTHTestRunSpecification: 0x7fa50305bb20> [00:00:45]: ▸ Object: <IDETestRunSpecificationBuilder> [00:00:45]: ▸ Method: +testRunSpecificationsForTestingSpecifiers:scheme:buildables:withBuildParameters:additionalEnvironmentVariables:additionalCommandLineArguments:testRerunPolicy:includeClangProfileParameters:shouldDebugAppExtensions:error: [00:00:45]: ▸ Thread: <NSThread: 0x7fa4f9618f70>{number = 1, name = main} [00:00:45]: ▸ Please file a bug at https://feedbackassistant.apple.com with this warning message and any useful information you can provide. [00:00:45]: ▸ 2021-07-22 00:00:45.531 xcodebuild[1629:69156] [MT] DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/IDEFrameworks/IDEFrameworks-18212/IDEFoundation/Testing/IDETestRunSpecificationBuilder.m:678 [00:00:45]: ▸ Details: Failed to compute path to baseline file during test run spec construction: <XCTHTestRunSpecification: 0x7fa50306a230> [00:00:45]: ▸ Object: <IDETestRunSpecificationBuilder> [00:00:45]: ▸ Method: +testRunSpecificationsForTestingSpecifiers:scheme:buildables:withBuildParameters:additionalEnvironmentVariables:additionalCommandLineArguments:testRerunPolicy:includeClangProfileParameters:shouldDebugAppExtensions:error: [00:00:45]: ▸ Thread: <NSThread: 0x7fa4f9618f70>{number = 1, name = main} [00:00:45]: ▸ Please file a bug at https://feedbackassistant.apple.com with this warning message and any useful information you can provide. [00:00:45]: ▸ 2021-07-22 00:00:45.536 xcodebuild[1629:69156] [MT] DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/IDEFrameworks/IDEFrameworks-18212/IDEFoundation/Testing/IDETestRunSpecificationBuilder.m:678 [00:00:45]: ▸ Details: Failed to compute path to baseline file during test run spec construction: <XCTHTestRunSpecification: 0x7fa503076680> [00:00:45]: ▸ Object: <IDETestRunSpecificationBuilder> [00:00:45]: ▸ Method: +testRunSpecificationsForTestingSpecifiers:scheme:buildables:withBuildParameters:additionalEnvironmentVariables:additionalCommandLineArguments:testRerunPolicy:includeClangProfileParameters:shouldDebugAppExtensions:error: [00:00:45]: ▸ Thread: <NSThread: 0x7fa4f9618f70>{number = 1, name = main} [00:00:45]: ▸ Please file a bug at https://feedbackassistant.apple.com with this warning message and any useful information you can provide. [00:00:45]: ▸ 2021-07-22 00:00:45.549 xcodebuild[1629:69156] [MT] DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/IDEFrameworks/IDEFrameworks-18212/IDEFoundation/Testing/IDETestRunSpecificationBuilder.m:678 [00:00:45]: ▸ Details: Failed to compute path to baseline file during test run spec construction: <XCTHTestRunSpecification: 0x7fa503660a10> [00:00:45]: ▸ Object: <IDETestRunSpecificationBuilder> [00:00:45]: ▸ Method: +testRunSpecificationsForTestingSpecifiers:scheme:buildables:withBuildParameters:additionalEnvironmentVariables:additionalCommandLineArguments:testRerunPolicy:includeClangProfileParameters:shouldDebugAppExtensions:error: [00:00:45]: ▸ Thread: <NSThread: 0x7fa4f9618f70>{number = 1, name = main} [00:00:45]: ▸ Please file a bug at https://feedbackassistant.apple.com with this warning message and any useful information you can provide. [00:00:45]: ▸ 2021-07-22 00:00:45.555 xcodebuild[1629:69156] [MT] DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/IDEFrameworks/IDEFrameworks-18212/IDEFoundation/Testing/IDETestRunSpecificationBuilder.m:678 [00:00:45]: ▸ Details: Failed to compute path to baseline file during test run spec construction: <XCTHTestRunSpecification: 0x7fa50366c6a0> [00:00:45]: ▸ Object: <IDETestRunSpecificationBuilder> [00:00:45]: ▸ Method: +testRunSpecificationsForTestingSpecifiers:scheme:buildables:withBuildParameters:additionalEnvironmentVariables:additionalCommandLineArguments:testRerunPolicy:includeClangProfileParameters:shouldDebugAppExtensions:error: [00:00:45]: ▸ Thread: <NSThread: 0x7fa4f9618f70>{number = 1, name = main} [00:00:45]: ▸ Please file a bug at https://feedbackassistant.apple.com with this warning message and any useful information you can provide. [00:00:51]: ▸ ❌ error: Could not compute signing task inputs - operation was cancelled. (in target 'Appboy_iOS_SDK_AppboyKit' from project 'Appboy_iOS_SDK') [00:00:51]: ▸ ❌ error: Could not compute signing task inputs - operation was cancelled. (in target 'Appboy_iOS_SDK_AppboyUI' from project 'Appboy_iOS_SDK') [00:00:51]: ▸ ❌ error: Could not compute signing task inputs - operation was cancelled. (in target 'Mixpanel_Mixpanel' from project 'Mixpanel') [00:00:52]: ▸ Testing failed: [00:00:52]: ▸ Could not compute signing task inputs - operation was cancelled. [00:00:52]: ▸ Testing cancelled because the build failed. [00:00:52]: ▸ ** TEST FAILED **```
1
0
1.4k
Sep ’21
UI Testing Failure - App accessibility isn't loaded
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?
38
0
18k
Sep ’21
Xcode 13 beta: “xcrun: error: Failed to locate 'instruments'”
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.
1
0
3.5k
Aug ’21
XCUITest Failure - Error: activate application (current state: Running Background)
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
1
0
671
Aug ’21
project.pbxproj file autogenerated code snippet.
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?
1
1
3.5k
Aug ’21
Xcode Server not using the network proxy settings to reach GitHub
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?
2
0
3.3k
Aug ’21
Change XCode Target > Build Settings > Architecture from Podfile or such
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
1
0
4.9k
Jul ’21
Xcode Cloud beta only available to account holder?
Our account holder got the message that we can now use Xcode Cloud via the beta. However, the developers in our organization are not able to access any Xcode Cloud features. Creating a workflow fails with the message This operation couldn’t be completed. Is there any additional setup required to get Xcode Cloud running on a developer machine?
0
0
890
Jun ’21
Why Swift Package copy framework to Watch extensions dir
Now I have a project. have two targets App A Watch App B Then I import a swift package Mapbox and add dependency in App A. App A now will Embed Mapbox in section "Framework, Libraries and Embed Content" and Embed Watch App B in "Build Phrase/Embed Watch Content" which is a PBXCopyFilesBuildPhase. It is wired when I build in local, on the Mapbox. framework only copy to under dir AppA/frameworks when executing prhase "Embed Watch Content". But when I compile it on Microsoft App Center. it will copy the Mapbox.framework to WatchAppB/. any idea how to define where the Mapbox.framework to be copied to?
0
0
588
Jun ’21
CI tests failing with "Could not compute signing task inputs"
My CircleCI workflow has started failing with an error I can't seem to find any documentation for: Could not compute signing task inputs - operation was cancelled. ... and then a reference to a 3rd party library's product, eg.: (in target 'Appboy_iOS_SDK_AppboyKit' from project 'Appboy_iOS_SDK'). I'm using SPM to manage dependencies and I'm trying to modularize my Xcode project by adding a local SPM package. Below is the relevant part of the CircleCI output. I can't seem to figure out what these errors are referring to and they don't seem to occur when I remove UI tests from the scheme, so I'm assuming this has something to do with the "Copy Bundle Resources" step of the "MyAppUITests" target. Any help would be much appreciated. Xcode version: 12.5.1 [00:00:45]: Running Tests: ▸ Touching MyApp.app (in target 'MyApp' from project 'MyApp') [00:00:45]: ▸ Build Succeeded [00:00:45]: ▸ 2021-07-22 00:00:45.521 xcodebuild[1629:69156] [MT] DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/IDEFrameworks/IDEFrameworks-18212/IDEFoundation/Testing/IDETestRunSpecificationBuilder.m:678 [00:00:45]: ▸ Details: Failed to compute path to baseline file during test run spec construction: <XCTHTestRunSpecification: 0x7fa5036121a0> [00:00:45]: ▸ Object: <IDETestRunSpecificationBuilder> [00:00:45]: ▸ Method: +testRunSpecificationsForTestingSpecifiers:scheme:buildables:withBuildParameters:additionalEnvironmentVariables:additionalCommandLineArguments:testRerunPolicy:includeClangProfileParameters:shouldDebugAppExtensions:error: [00:00:45]: ▸ Thread: <NSThread: 0x7fa4f9618f70>{number = 1, name = main} [00:00:45]: ▸ Please file a bug at https://feedbackassistant.apple.com with this warning message and any useful information you can provide. [00:00:45]: ▸ 2021-07-22 00:00:45.526 xcodebuild[1629:69156] [MT] DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/IDEFrameworks/IDEFrameworks-18212/IDEFoundation/Testing/IDETestRunSpecificationBuilder.m:678 [00:00:45]: ▸ Details: Failed to compute path to baseline file during test run spec construction: <XCTHTestRunSpecification: 0x7fa50305bb20> [00:00:45]: ▸ Object: <IDETestRunSpecificationBuilder> [00:00:45]: ▸ Method: +testRunSpecificationsForTestingSpecifiers:scheme:buildables:withBuildParameters:additionalEnvironmentVariables:additionalCommandLineArguments:testRerunPolicy:includeClangProfileParameters:shouldDebugAppExtensions:error: [00:00:45]: ▸ Thread: <NSThread: 0x7fa4f9618f70>{number = 1, name = main} [00:00:45]: ▸ Please file a bug at https://feedbackassistant.apple.com with this warning message and any useful information you can provide. [00:00:45]: ▸ 2021-07-22 00:00:45.531 xcodebuild[1629:69156] [MT] DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/IDEFrameworks/IDEFrameworks-18212/IDEFoundation/Testing/IDETestRunSpecificationBuilder.m:678 [00:00:45]: ▸ Details: Failed to compute path to baseline file during test run spec construction: <XCTHTestRunSpecification: 0x7fa50306a230> [00:00:45]: ▸ Object: <IDETestRunSpecificationBuilder> [00:00:45]: ▸ Method: +testRunSpecificationsForTestingSpecifiers:scheme:buildables:withBuildParameters:additionalEnvironmentVariables:additionalCommandLineArguments:testRerunPolicy:includeClangProfileParameters:shouldDebugAppExtensions:error: [00:00:45]: ▸ Thread: <NSThread: 0x7fa4f9618f70>{number = 1, name = main} [00:00:45]: ▸ Please file a bug at https://feedbackassistant.apple.com with this warning message and any useful information you can provide. [00:00:45]: ▸ 2021-07-22 00:00:45.536 xcodebuild[1629:69156] [MT] DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/IDEFrameworks/IDEFrameworks-18212/IDEFoundation/Testing/IDETestRunSpecificationBuilder.m:678 [00:00:45]: ▸ Details: Failed to compute path to baseline file during test run spec construction: <XCTHTestRunSpecification: 0x7fa503076680> [00:00:45]: ▸ Object: <IDETestRunSpecificationBuilder> [00:00:45]: ▸ Method: +testRunSpecificationsForTestingSpecifiers:scheme:buildables:withBuildParameters:additionalEnvironmentVariables:additionalCommandLineArguments:testRerunPolicy:includeClangProfileParameters:shouldDebugAppExtensions:error: [00:00:45]: ▸ Thread: <NSThread: 0x7fa4f9618f70>{number = 1, name = main} [00:00:45]: ▸ Please file a bug at https://feedbackassistant.apple.com with this warning message and any useful information you can provide. [00:00:45]: ▸ 2021-07-22 00:00:45.549 xcodebuild[1629:69156] [MT] DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/IDEFrameworks/IDEFrameworks-18212/IDEFoundation/Testing/IDETestRunSpecificationBuilder.m:678 [00:00:45]: ▸ Details: Failed to compute path to baseline file during test run spec construction: <XCTHTestRunSpecification: 0x7fa503660a10> [00:00:45]: ▸ Object: <IDETestRunSpecificationBuilder> [00:00:45]: ▸ Method: +testRunSpecificationsForTestingSpecifiers:scheme:buildables:withBuildParameters:additionalEnvironmentVariables:additionalCommandLineArguments:testRerunPolicy:includeClangProfileParameters:shouldDebugAppExtensions:error: [00:00:45]: ▸ Thread: <NSThread: 0x7fa4f9618f70>{number = 1, name = main} [00:00:45]: ▸ Please file a bug at https://feedbackassistant.apple.com with this warning message and any useful information you can provide. [00:00:45]: ▸ 2021-07-22 00:00:45.555 xcodebuild[1629:69156] [MT] DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/IDEFrameworks/IDEFrameworks-18212/IDEFoundation/Testing/IDETestRunSpecificationBuilder.m:678 [00:00:45]: ▸ Details: Failed to compute path to baseline file during test run spec construction: <XCTHTestRunSpecification: 0x7fa50366c6a0> [00:00:45]: ▸ Object: <IDETestRunSpecificationBuilder> [00:00:45]: ▸ Method: +testRunSpecificationsForTestingSpecifiers:scheme:buildables:withBuildParameters:additionalEnvironmentVariables:additionalCommandLineArguments:testRerunPolicy:includeClangProfileParameters:shouldDebugAppExtensions:error: [00:00:45]: ▸ Thread: <NSThread: 0x7fa4f9618f70>{number = 1, name = main} [00:00:45]: ▸ Please file a bug at https://feedbackassistant.apple.com with this warning message and any useful information you can provide. [00:00:51]: ▸ ❌ error: Could not compute signing task inputs - operation was cancelled. (in target 'Appboy_iOS_SDK_AppboyKit' from project 'Appboy_iOS_SDK') [00:00:51]: ▸ ❌ error: Could not compute signing task inputs - operation was cancelled. (in target 'Appboy_iOS_SDK_AppboyUI' from project 'Appboy_iOS_SDK') [00:00:51]: ▸ ❌ error: Could not compute signing task inputs - operation was cancelled. (in target 'Mixpanel_Mixpanel' from project 'Mixpanel') [00:00:52]: ▸ Testing failed: [00:00:52]: ▸ Could not compute signing task inputs - operation was cancelled. [00:00:52]: ▸ Testing cancelled because the build failed. [00:00:52]: ▸ ** TEST FAILED **```
Replies
1
Boosts
0
Views
1.4k
Activity
Sep ’21
UI Testing Failure - App accessibility isn't loaded
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?
Replies
38
Boosts
0
Views
18k
Activity
Sep ’21
Xcode bot does not see repository branches
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?
Replies
6
Boosts
0
Views
2.1k
Activity
Aug ’21
Xcode 13 beta: “xcrun: error: Failed to locate 'instruments'”
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.
Replies
1
Boosts
0
Views
3.5k
Activity
Aug ’21
XCUITest Failure - Error: activate application (current state: Running Background)
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
Replies
1
Boosts
0
Views
671
Activity
Aug ’21
XCTest profile
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?
Replies
0
Boosts
0
Views
763
Activity
Aug ’21
project.pbxproj file autogenerated code snippet.
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?
Replies
1
Boosts
1
Views
3.5k
Activity
Aug ’21
Xcode Server not using the network proxy settings to reach GitHub
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?
Replies
2
Boosts
0
Views
3.3k
Activity
Aug ’21
Change XCode Target > Build Settings > Architecture from Podfile or such
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
Replies
1
Boosts
0
Views
4.9k
Activity
Jul ’21
Xcode Cloud Code Coverage?
I could not find mention of code coverage in Xcode cloud? Is it supported now? Or do I need to use local bots to continue to get code coverage reports? Thanks in advance. -pj
Replies
0
Boosts
2
Views
1.2k
Activity
Jul ’21
Xcode Cloud beta only available to account holder?
Our account holder got the message that we can now use Xcode Cloud via the beta. However, the developers in our organization are not able to access any Xcode Cloud features. Creating a workflow fails with the message This operation couldn’t be completed. Is there any additional setup required to get Xcode Cloud running on a developer machine?
Replies
0
Boosts
0
Views
890
Activity
Jun ’21
Why Swift Package copy framework to Watch extensions dir
Now I have a project. have two targets App A Watch App B Then I import a swift package Mapbox and add dependency in App A. App A now will Embed Mapbox in section "Framework, Libraries and Embed Content" and Embed Watch App B in "Build Phrase/Embed Watch Content" which is a PBXCopyFilesBuildPhase. It is wired when I build in local, on the Mapbox. framework only copy to under dir AppA/frameworks when executing prhase "Embed Watch Content". But when I compile it on Microsoft App Center. it will copy the Mapbox.framework to WatchAppB/. any idea how to define where the Mapbox.framework to be copied to?
Replies
0
Boosts
0
Views
588
Activity
Jun ’21