Xcode Server

RSS for tag

Xcode Server controls server-side bots that continuously build, analyze, test, and even archive your Xcode projects.

Posts under Xcode Server tag

180 Posts

Post

Replies

Boosts

Views

Activity

Bookmark Creation With Security Scope Fails in Xcode Cloud
I have an macOS app, where the user can open/drag a folder so that the contents can be listed and used. The app saves the bookmark data for these folders and restores them the next time the app runs. This works perfect on the development machines and on thousands of users' Macs. Recently I added UI tests which perform a couple if happy path tests and they are helping a lot. One of the tests adds a folder and tries to use an image which is in the folder. The folder is copied from the test bundle to the Desktop at the beginning of the test. This works both locally (on my Mac) and on two CI "servers" (latest macOS, Xcode Server). At the moment I try to migrate to Xcode Cloud. Unit tests run fine (after disabling the Hardened Runtime). However, I do not get the UI tests to succeed. They run and add the folder, however, the URL's bookmark data creation fails. I tried to track the differences during the build and found Xcode Cloud builds always being adhoc-signed. Running the UI tests locally but signing the app (and the tests) adhoc too does not result in the same problem. Problem in short: user selects folder (using NSOpenPanel or Drag'n'Drop) url.bookmarkData() works locally and in Xcode Cloud url.bookmarkData(options: [.withSecurityScope]) only works locally but not in Xcode Cloud This is easily reproducible with a very simple project which I can hand-out if needed. Anybody a hint or idea? Since those folders are essential for the app, not solving this would render Xcode Cloud completely useless for me. Thanks! Daniel
1
0
883
Aug ’23
Is There Any Way for XCodeBuild in Linux Server?
Ask if there is a way to run XCodeBuild in a Linux server environment. Server installation in our IDC is only possible with UNIX and X86 rack equipment, so it is difficult to use a Mac Pro, so we are looking for alternative way. Ask if it is possible to use OSX images in a Docker environment. If we want to use the XCodeBuild function by running MacOS using the OSX Docker image and we intend to report any bugs found at this time to Apple, I wonder if the license is protected under the AppleSecurityBounty program. I wonder if it is possible to purchase a physical macOS device a nd apply the serial of the device to the OSX Docker image to run it.
1
0
1.8k
Jul ’23
Xcode not Loading projects or new Projects
I keep getting this in the terminal. I'm new in the Apple world. My Xcode was working two days ago and out of nowhere today started giving me problems. Please Help. I already unistalled and re-installed the app, updated my MacOs to Ventura 13.4 version. objc[1164]: Class DYShaderAnalyzerNextGPU is implemented in both /Applications/Xcode.app/Contents/SharedFrameworks/MTLToolsShaderProfiler.framework/Versions/A/MTLToolsShaderProfiler (0x141881808) and /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/GPUTools/PlugIns/GLToolsShaderProfilerMobileSupport.gtplugin/Contents/MacOS/GLToolsShaderProfilerMobileSupport (0x1441ab610). One of the two will be used. Which one is undefined.
2
0
1.2k
Jul ’23
Xcode 14.3 Server Builder keeps crashing
I just installed Xcode 14.3 and now my Xcode Server doesn't work. The Xcode Server Builder keeps opening then crashing. I've tried disabling Xcode Server and even resetting it all using the command "sudo xcrun xcscontrol --reset" but whenever I start it up the Builder keeps crashing. Any other suggestions I can try? Resetting and starting through Xcode 14.2 works fine. Crash log: xcode.crash
5
6
3.5k
Jul ’23
Xcode Server Crashes Repeatedly.
Has anyone enabled Xcode Server on Xcode 14.3.1? After I enabled it, it crashed repeatedly. Has anyone encountered this? Steps: Open Xcode, Settings, enable Xcode Server Follow the steps Xcode provides Switch to the account of Xcode Server Xcode Server crashes. macOS Ventura 13.4 Mac mini M1 16G 512G Xcode 14.3.1
0
0
1.1k
Jun ’23
Static method 'list' requires that 'Transaction' conform to 'Model'
I'm trying to use a grapghQL API to query a list of data and return an array of that data. From that array, I will pick one random value to use. The code looks as follows: func queryLyrics() { var lyricArray : [Lyric] = [] Task { do { let result = try await Amplify.API.query(request: .list(Transaction.self)) switch result { case .success(let lyricsData): print("Successfully retrieved list of Lyrics") // convert an array of LyricData to an array of Lyric class instances //an array of LyricData to get one Lyric class instance for n in lyricsData { let lyric1 = Lyric.init(from: n) MainActor.run { lyricArray.append(lyric1) } } let goodLyric = lyricArray.randomElement() case .failure(let error): print("Can not retrieve result : error \(error.errorDescription)") } } catch { print("Can not retrieve Notes : error \(error)") } } }. However, the .list function provides the error: Static method 'list(_:where:includes:limit:)' requires that 'Transaction' conform to 'Model'. Im wondering why this is? and how can I fix this?
0
0
906
Jun ’23
LC_ENCRYPTION_INFO (ITMS-90125)
Hi, I've tried multiple ways of solving this issue, including adding scripts, DISABLE Bitcode and non works. ERROR ITMS-90125: "The binary is invalid. The encryption info in the LC_ENCRYPTION_INFO load command is either missing or invalid, or the binary is already encrypted. This binary does not seem to have been built with Apple's linker." I am currently building a games with Unity, and trying to publish to test flight but no success at the moment. Non of the online solutions works on my side. Appreciate for your inputs, thanks in advance!
0
0
1.1k
Jun ’23
Unity Ads and Archiving with Xcode
Hi there, Working on my first game project and I'm really at a loss here. I have Unity Ads installed in my mobile game project and it works perfectly fine in Unity and if I directly upload a build from Xcode to my iPhone. If I try to Archive the build in Xcode and load it for Distribution on the App Store, all of the Ads don't play. I'm not sure how to see if TestFlight is throwing any errors with regards to the Ads, but everything else in the game works perfectly fine including IAPs. I'd greatly appreciate any suggestions, guidance, or just outright instructions. Thanks so much in advance!
1
0
2.1k
May ’23
firewall problem: XCode upload app to App Store Connect
Hi All, When I use XCode to upload app to App Store Connect with my company network. I get error. The log shows "Error Domain=ITunesConnectionOperationErrorDomain Code=-19000 "The server returned an invalid response. This may indicate that a network proxy is interfering with communication, or that Apple servers are having issues. Please try your request again later..." I am sure it is my company's firewall problems. because when I change to use my cell-phone's mobile network, I can upload successfully. Can anybody tell me how to set the firewall. My company has already allowed *.app.com, but still not work. Thank you very much.
0
0
831
May ’23
Xcode Server Builder quit unexpectedly error
It was working fine with Xcode 14.2 and Monterey, but I updated to Xcode 14.3 and Ventura and my bots stopped working. When enabling them, the logged in user used for the builds is unable to initialise the Xcode Server app. I've seen the release notes of Xcode 14 saying that they don't support Xcode Server anymore, meaning that they won't fix any problems like this. The issue is that this will stop the feature all together, so why still including it into 14.3? Now we are forced to pay Apple to use Xcode Cloud. What the heck Apple!
0
2
1k
Apr ’23
Xcode Server "Authentication failed because the credentials were missing"
I am struggling to get my Xcode Server working using Xcode 14.2 It used to work, but since the 14.3 upgrade left the Xcode builder constantly crashing (FB12090800) i'm trying to get it set back up in Xcode 14.2 I've completely reset everything by deleting all Keychain entries regarding Xcode and using the command sudo xcrun xcscontrol --reset Now when I run my new integrations, I get the error: Authentication failed because the credentials were missing I've created a new RSA certificate as documented here: https://docs.github.com/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent Added it to my Github account as documented here: https://docs.github.com/en/authentication/connecting-to-github-with-ssh/adding-a-new-ssh-key-to-your-github-account When I click Edit Bot... in Xcode and select the Repositories tab it successfully loads my repo. Yet when I click to Integrate the bot, it fails with the auth error. Xcode server is running on my main mac under the same root user I log in as. The failed integration offers up a Fix it button, but that crashes Xcode (FB11875463) and has done for all of Xcode 14.x I can load up Xcode 13 and hit the Fix it button, but all it does is open the same Repositories tab that successfully loads my repo. I've tried adding this to my GitHub config but it makes no difference: [url "ssh://git@github.com/"] insteadOf = https://github.com/ What else can I try?
1
1
2.4k
Apr ’23
Development Environments
I'd like to create something like a Docker image or EC2 image in which I can setup everything a person needs to work on my iOS project. Namely, I want to be able to set up a development environment where software engineers can work on code and build for iOS simulators running locally, take a snapshot of that environment, and share it with people in my company. Is there such a service out there in the world?
2
0
704
Apr ’23
Xcode 14.3 can not start Xcode server anymore
I've been using Xcode server for several years to run some UI tests for assurance quality. Even though it has some limitations and bugs, compared to Xcode Cloud, there is still a way to use it. In my case, it's mandatory, the UI Tests are running while connected to a local server application. Since I've updated to macOS 13.3 and Xcode 14.3, the user configured to run the tests is reported as "Logged out" on the Xcode Settings window, even though it is, in fact, logged in. Complete new install of the system, new install of Xcode and other tools : same results. I have a bunch of logs related to Xcode Server Builder in the console, but none is reported as an "error". Do someone have the same phenomenon ?
2
1
1.5k
Apr ’23
Bookmark Creation With Security Scope Fails in Xcode Cloud
I have an macOS app, where the user can open/drag a folder so that the contents can be listed and used. The app saves the bookmark data for these folders and restores them the next time the app runs. This works perfect on the development machines and on thousands of users' Macs. Recently I added UI tests which perform a couple if happy path tests and they are helping a lot. One of the tests adds a folder and tries to use an image which is in the folder. The folder is copied from the test bundle to the Desktop at the beginning of the test. This works both locally (on my Mac) and on two CI "servers" (latest macOS, Xcode Server). At the moment I try to migrate to Xcode Cloud. Unit tests run fine (after disabling the Hardened Runtime). However, I do not get the UI tests to succeed. They run and add the folder, however, the URL's bookmark data creation fails. I tried to track the differences during the build and found Xcode Cloud builds always being adhoc-signed. Running the UI tests locally but signing the app (and the tests) adhoc too does not result in the same problem. Problem in short: user selects folder (using NSOpenPanel or Drag'n'Drop) url.bookmarkData() works locally and in Xcode Cloud url.bookmarkData(options: [.withSecurityScope]) only works locally but not in Xcode Cloud This is easily reproducible with a very simple project which I can hand-out if needed. Anybody a hint or idea? Since those folders are essential for the app, not solving this would render Xcode Cloud completely useless for me. Thanks! Daniel
Replies
1
Boosts
0
Views
883
Activity
Aug ’23
Xcode version issues
I'm trying to install Xcode but because of version I'm not able to install.My Mac version is 12.6.8 where should I download an older version of Xcode?
Replies
1
Boosts
0
Views
775
Activity
Jul ’23
Error Fetching App Record : App record request failed with error: "Unexpected Status Code"
Still can't publish apps. Differents errors like : App record request failed with error: "Unexpected Status Code". What issues ? Thanks
Replies
22
Boosts
1
Views
10k
Activity
Jul ’23
Is There Any Way for XCodeBuild in Linux Server?
Ask if there is a way to run XCodeBuild in a Linux server environment. Server installation in our IDC is only possible with UNIX and X86 rack equipment, so it is difficult to use a Mac Pro, so we are looking for alternative way. Ask if it is possible to use OSX images in a Docker environment. If we want to use the XCodeBuild function by running MacOS using the OSX Docker image and we intend to report any bugs found at this time to Apple, I wonder if the license is protected under the AppleSecurityBounty program. I wonder if it is possible to purchase a physical macOS device a nd apply the serial of the device to the OSX Docker image to run it.
Replies
1
Boosts
0
Views
1.8k
Activity
Jul ’23
Xcode not Loading projects or new Projects
I keep getting this in the terminal. I'm new in the Apple world. My Xcode was working two days ago and out of nowhere today started giving me problems. Please Help. I already unistalled and re-installed the app, updated my MacOs to Ventura 13.4 version. objc[1164]: Class DYShaderAnalyzerNextGPU is implemented in both /Applications/Xcode.app/Contents/SharedFrameworks/MTLToolsShaderProfiler.framework/Versions/A/MTLToolsShaderProfiler (0x141881808) and /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/GPUTools/PlugIns/GLToolsShaderProfilerMobileSupport.gtplugin/Contents/MacOS/GLToolsShaderProfilerMobileSupport (0x1441ab610). One of the two will be used. Which one is undefined.
Replies
2
Boosts
0
Views
1.2k
Activity
Jul ’23
Xcode 14.3 Server Builder keeps crashing
I just installed Xcode 14.3 and now my Xcode Server doesn't work. The Xcode Server Builder keeps opening then crashing. I've tried disabling Xcode Server and even resetting it all using the command "sudo xcrun xcscontrol --reset" but whenever I start it up the Builder keeps crashing. Any other suggestions I can try? Resetting and starting through Xcode 14.2 works fine. Crash log: xcode.crash
Replies
5
Boosts
6
Views
3.5k
Activity
Jul ’23
Can't Sign in to Xcode ( Server Returned Http error: 404 (Not Found)) Please Help
I am having an issue with Xcode 6.2 That can't sign in with my Apple id. I have Get the Error "Server Returned Http error: 404 (Not Found)". Please Help Me
Replies
2
Boosts
0
Views
1.9k
Activity
Jul ’23
Xcode Server Crashes Repeatedly.
Has anyone enabled Xcode Server on Xcode 14.3.1? After I enabled it, it crashed repeatedly. Has anyone encountered this? Steps: Open Xcode, Settings, enable Xcode Server Follow the steps Xcode provides Switch to the account of Xcode Server Xcode Server crashes. macOS Ventura 13.4 Mac mini M1 16G 512G Xcode 14.3.1
Replies
0
Boosts
0
Views
1.1k
Activity
Jun ’23
Static method 'list' requires that 'Transaction' conform to 'Model'
I'm trying to use a grapghQL API to query a list of data and return an array of that data. From that array, I will pick one random value to use. The code looks as follows: func queryLyrics() { var lyricArray : [Lyric] = [] Task { do { let result = try await Amplify.API.query(request: .list(Transaction.self)) switch result { case .success(let lyricsData): print("Successfully retrieved list of Lyrics") // convert an array of LyricData to an array of Lyric class instances //an array of LyricData to get one Lyric class instance for n in lyricsData { let lyric1 = Lyric.init(from: n) MainActor.run { lyricArray.append(lyric1) } } let goodLyric = lyricArray.randomElement() case .failure(let error): print("Can not retrieve result : error \(error.errorDescription)") } } catch { print("Can not retrieve Notes : error \(error)") } } }. However, the .list function provides the error: Static method 'list(_:where:includes:limit:)' requires that 'Transaction' conform to 'Model'. Im wondering why this is? and how can I fix this?
Replies
0
Boosts
0
Views
906
Activity
Jun ’23
LC_ENCRYPTION_INFO (ITMS-90125)
Hi, I've tried multiple ways of solving this issue, including adding scripts, DISABLE Bitcode and non works. ERROR ITMS-90125: "The binary is invalid. The encryption info in the LC_ENCRYPTION_INFO load command is either missing or invalid, or the binary is already encrypted. This binary does not seem to have been built with Apple's linker." I am currently building a games with Unity, and trying to publish to test flight but no success at the moment. Non of the online solutions works on my side. Appreciate for your inputs, thanks in advance!
Replies
0
Boosts
0
Views
1.1k
Activity
Jun ’23
Unity Ads and Archiving with Xcode
Hi there, Working on my first game project and I'm really at a loss here. I have Unity Ads installed in my mobile game project and it works perfectly fine in Unity and if I directly upload a build from Xcode to my iPhone. If I try to Archive the build in Xcode and load it for Distribution on the App Store, all of the Ads don't play. I'm not sure how to see if TestFlight is throwing any errors with regards to the Ads, but everything else in the game works perfectly fine including IAPs. I'd greatly appreciate any suggestions, guidance, or just outright instructions. Thanks so much in advance!
Replies
1
Boosts
0
Views
2.1k
Activity
May ’23
firewall problem: XCode upload app to App Store Connect
Hi All, When I use XCode to upload app to App Store Connect with my company network. I get error. The log shows "Error Domain=ITunesConnectionOperationErrorDomain Code=-19000 "The server returned an invalid response. This may indicate that a network proxy is interfering with communication, or that Apple servers are having issues. Please try your request again later..." I am sure it is my company's firewall problems. because when I change to use my cell-phone's mobile network, I can upload successfully. Can anybody tell me how to set the firewall. My company has already allowed *.app.com, but still not work. Thank you very much.
Replies
0
Boosts
0
Views
831
Activity
May ’23
Xcode Server Builder quit unexpectedly error
It was working fine with Xcode 14.2 and Monterey, but I updated to Xcode 14.3 and Ventura and my bots stopped working. When enabling them, the logged in user used for the builds is unable to initialise the Xcode Server app. I've seen the release notes of Xcode 14 saying that they don't support Xcode Server anymore, meaning that they won't fix any problems like this. The issue is that this will stop the feature all together, so why still including it into 14.3? Now we are forced to pay Apple to use Xcode Cloud. What the heck Apple!
Replies
0
Boosts
2
Views
1k
Activity
Apr ’23
Xcode Server "Authentication failed because the credentials were missing"
I am struggling to get my Xcode Server working using Xcode 14.2 It used to work, but since the 14.3 upgrade left the Xcode builder constantly crashing (FB12090800) i'm trying to get it set back up in Xcode 14.2 I've completely reset everything by deleting all Keychain entries regarding Xcode and using the command sudo xcrun xcscontrol --reset Now when I run my new integrations, I get the error: Authentication failed because the credentials were missing I've created a new RSA certificate as documented here: https://docs.github.com/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent Added it to my Github account as documented here: https://docs.github.com/en/authentication/connecting-to-github-with-ssh/adding-a-new-ssh-key-to-your-github-account When I click Edit Bot... in Xcode and select the Repositories tab it successfully loads my repo. Yet when I click to Integrate the bot, it fails with the auth error. Xcode server is running on my main mac under the same root user I log in as. The failed integration offers up a Fix it button, but that crashes Xcode (FB11875463) and has done for all of Xcode 14.x I can load up Xcode 13 and hit the Fix it button, but all it does is open the same Repositories tab that successfully loads my repo. I've tried adding this to my GitHub config but it makes no difference: [url "ssh://git@github.com/"] insteadOf = https://github.com/ What else can I try?
Replies
1
Boosts
1
Views
2.4k
Activity
Apr ’23
'GCDWebServer/GCDWebServer.h' file not found
'GCDWebServer/GCDWebServer.h' file not found How to fix it?
Replies
0
Boosts
1
Views
1k
Activity
Apr ’23
Development Environments
I'd like to create something like a Docker image or EC2 image in which I can setup everything a person needs to work on my iOS project. Namely, I want to be able to set up a development environment where software engineers can work on code and build for iOS simulators running locally, take a snapshot of that environment, and share it with people in my company. Is there such a service out there in the world?
Replies
2
Boosts
0
Views
704
Activity
Apr ’23
Server Builder fails to start in Xcode 14.3
Xcode Server Builder fails to start causing its API to refuse loading the resources. As a result users fail logging in to integrate their accounts. The issue affects Xcode 14.3.
Replies
2
Boosts
0
Views
981
Activity
Apr ’23
Xcode 14.3 can not start Xcode server anymore
I've been using Xcode server for several years to run some UI tests for assurance quality. Even though it has some limitations and bugs, compared to Xcode Cloud, there is still a way to use it. In my case, it's mandatory, the UI Tests are running while connected to a local server application. Since I've updated to macOS 13.3 and Xcode 14.3, the user configured to run the tests is reported as "Logged out" on the Xcode Settings window, even though it is, in fact, logged in. Complete new install of the system, new install of Xcode and other tools : same results. I have a bunch of logs related to Xcode Server Builder in the console, but none is reported as an "error". Do someone have the same phenomenon ?
Replies
2
Boosts
1
Views
1.5k
Activity
Apr ’23
xcode14.2 archive stuck on "processing symbols for xxx.framwork"
xcode14.2 archive for apple connect but stuck on "processing symbols for xxx.framwork" but archive for adhoc is ok! it's framework problem or Xcode problem? I tried archive old xcarchive I has upload to apple store but it's stuck on "processing symbols for xxx.framwork" again
Replies
1
Boosts
0
Views
814
Activity
Mar ’23