Xcode Server

RSS for tag

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

Xcode Server Documentation

Posts under Xcode Server tag

51 Posts
Sort by:
Post not yet marked as solved
0 Replies
1.8k Views
I use Xcode 13.2.1 on macOS 12.3 Beta (21E5206e) and want to compile a watchOS-only application with Xcode Server. The app runs on a simulator fine using UI of Xcode, but it fails on Xcode Server during the testing, because a destination isn't available. The server uses a command similar to this: xcodebuild -scheme "MyApp" -destination 'id=3A6FF6DA-5EE5-41E0-83EB-573A212D9C08' test So, I run this command in Terminal and get the following: Command line invocation: /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -scheme "MyApp" -destination id=3A6FF6DA-5EE5-41E0-83EB-573A212D9C08 test User defaults from command line:     IDEPackageSupportUseBuiltinSCM = YES xcodebuild: error: Unable to find a destination matching the provided destination specifier: { id:3A6FF6DA-5EE5-41E0-83EB-573A212D9C08 } The requested device could not be found because no available devices matched the request. Available destinations for the "MyApp" scheme: { platform:iOS Simulator, id:3A6FF6DA-5EE5-41E0-83EB-573A212D9C08, OS:15.2, name:iPhone 11 } Ineligible destinations for the "MyApp" scheme: { platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device } { platform:watchOS, id:dvtdevice-DVTiOSDevicePlaceholder-watchos:placeholder, name:Any watchOS Device } Just to double check that I actually have the specified destination available for the project, I run: xcodebuild -scheme "MyApp" -showdestinations and get: Command line invocation:     /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -scheme "MyApp" -showdestinations User defaults from command line:     IDEPackageSupportUseBuiltinSCM = YES --- xcodebuild: WARNING: Using the first of multiple matching destinations: { platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device } { platform:watchOS, id:dvtdevice-DVTiOSDevicePlaceholder-watchos:placeholder, name:Any watchOS Device } { platform:iOS Simulator, id:3A6FF6DA-5EE5-41E0-83EB-573A212D9C08, OS:15.2, name:iPhone 11 } Available destinations for the "MyApp" scheme: { platform:iOS Simulator, id:3A6FF6DA-5EE5-41E0-83EB-573A212D9C08, OS:15.2, name:iPhone 11 } Ineligible destinations for the "MyApp" scheme: { platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device } { platform:watchOS, id:dvtdevice-DVTiOSDevicePlaceholder-watchos:placeholder, name:Any watchOS Device } Could somebody pinpoint to the problem? Why I'm getting The requested device could not be found because no available devices matched the request. if the device is actually available according to xcodebuild? I tried: to remove all simulators and create new ones to remove DerivedData to update target versions, I'm running iOS 15.2 and watchOS 8.3 on simulators, my application targets watchOS 8.0, so I changed it to 8.3 without any luck to run using IDs and device specifiers without specific IDs of all my simulators to specify in a Xcode Server bot specific simulators, or just "iOS simulators", or even my real connected device – neither worked
Posted
by
Post not yet marked as solved
0 Replies
309 Views
I want to develop based on iOS and I did some verifications based on xCode Instruments firstly. But there are some confusions on the verification results. I did the test to open a file in 1KB size. The analysis results from xCode Instruments is as followings: In "Disk Usage", it shows that there are 4KB "Page In" operations. (Please refer to P1.png attached) In "Virtual Memory Trace", it shows totally 4-times of "File Backed Page In" operations, and each operation size is 16K. (Please refer to P2.png & P3.png attached) That is, Size of "File Backed Page In" is around 4*16K=64KB. I did similar tests on different size of files. Every time the values of "Disk Usage"->"Page In" and "Virtual Memory Trace"->"File Backed Page In" are not matched (In this example, the two results are 4KB vs. 64KB). I think that both values represent disk IO size of the process and they should be in the same value for the same process. Why the values are different? What are the differences between this two options in xCode Instrument tool? Thanks.
Posted
by
Post not yet marked as solved
0 Replies
698 Views
Hello, I am uploading an update of a test flight and it gives me this error in the final part. :( It gives me the following legend in xcode app store connection operation error error itms-90168: "null" In the Packaging record that is generated.... Failed for distribution item with error "Error Domain=IDEFoundationErrorDomain Code=1 It generates that error right at the end, at the moment of finishing uploading the .ipa. It generates a registry folder where the .ipa and several files come out. Does anybody know what is it due to? Thanks in advance I will leave a little code of the last lines of the log with the idea that it can help something 2022-02-04 10:33:14 +0000 IDEDistributionItem init <DVTFilePath:0x7fb7460218c0:'/var/folders/8z/7bs_lwwj1pv9km22m1xstl1h0000gn/T/XcodeDistPipeline.~~~Jb9sT3/Root/Payload/NameApp.app/Frameworks/FirebaseInstallations.framework'> 2022-02-04 10:33:14 +0000 IDEDistributionItem init <DVTFilePath:0x7fb7d7f40070:'/var/folders/8z/7bs_lwwj1pv9km22m1xstl1h0000gn/T/XcodeDistPipeline.~~~Jb9sT3/Root/Payload/NameApp.app/Frameworks/FBSDKShareKit.framework'> 2022-02-04 10:33:14 +0000 IDEDistributionItem init <DVTFilePath:0x7fb78b7c5790:'/var/folders/8z/7bs_lwwj1pv9km22m1xstl1h0000gn/T/XcodeDistPipeline.~~~Jb9sT3/Root/Payload/NameApp.app/Frameworks/libswiftObjectiveC.dylib'> 2022-02-04 10:33:14 +0000 [OPTIONAL] Can't have a profile, not a bundle at <DVTFilePath:0x7fb78b7c5790:'/var/folders/8z/7bs_lwwj1pv9km22m1xstl1h0000gn/T/XcodeDistPipeline.~~~Jb9sT3/Root/Payload/NameApp.app/Frameworks/libswiftObjectiveC.dylib'> 2022-02-04 10:33:14 +0000 IDEDistributionItem init <DVTFilePath:0x7fb746034f60:'/var/folders/8z/7bs_lwwj1pv9km22m1xstl1h0000gn/T/XcodeDistPipeline.~~~Jb9sT3/Root/Payload/NameApp.app/Frameworks/FirebaseCoreDiagnostics.framework'> 2022-02-04 10:33:14 +0000 IDEDistributionItem init <DVTFilePath:0x7fb7d9e4bda0:'/var/folders/8z/7bs_lwwj1pv9km22m1xstl1h0000gn/T/XcodeDistPipeline.~~~Jb9sT3/Root/Payload/NameApp.app'> 2022-02-04 10:33:14 +0000 Processing step: IDEDistributionCreateManifestStep 2022-02-04 10:33:14 +0000 Skipping step: IDEDistributionCreateManifestStep because it said so
Posted
by
Post not yet marked as solved
0 Replies
252 Views
For some reasons it is required to send binary files from iOS app to MacOS Command line tool (CLT) app for the computation of data and also send back the computed results from maxOS CLT app to the iOS app. a) what is preferred way (using tools & framework from apple)? b) If it's not easy to achieve this using apple tools and frameworks; will "Vapor" be useful for this task?
Posted
by
Post not yet marked as solved
0 Replies
2.1k Views
I was trying to install Xcode from the App Store. I somewhat managed to download the app but got stuck on the installation process. I have tried everything I could think of like resetting/restarting my device, stopping/cancelling and re-downloading the App (but this resulted in starting the download from 0, each time.) after restart mac xcode status
Post not yet marked as solved
1 Replies
339 Views
Trying to get XCUI testing builds running. Test Fails with a screenshot showing the "Use Bluetooth" popup but app is not visible in it, only icon on the springboard. Perusing the logs the only helpful line I can find is: *** Terminating app due to uncaught exception 'Halted', reason: 'Protection is missing from non-development build' *** I could not find any information about this crash via Google. I originally had done a Debug build, tried with a Release build and same result. The crash report didn't really have anything useful either, excerpt: Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x0000000000000000, 0x0000000000000000 Exception Note: EXC_CORPSE_NOTIFY Triggered by Thread: 0 Application Specific Information: abort() called Thread 0 name: Dispatch queue: com.apple.main-thread Is this related to the entitlements and Data Protection? Any other ideas?
Posted
by
Post not yet marked as solved
0 Replies
859 Views
I tried to initialise Xcode Server on mac-mini 2020 M1 and got error. Xcode 13.1, macOS Monterey 12.0.1. I tried to upgrade libressl with no luck and have no idea what to do (system has new version but xcscontrol still using libressl-2.8) sudo xcscontrol --initialize /Volumes/Lacia/XcodeServer --build-service-user xcodeserver objc[28026]: Class AMSupportURLConnectionDelegate is implemented in both /usr/lib/libamsupport.dylib (0x1fa64f130) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x103fcc2c8). One of the two will be used. Which one is undefined. objc[28026]: Class AMSupportURLSession is implemented in both /usr/lib/libamsupport.dylib (0x1fa64f180) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x103fcc318). One of the two will be used. Which one is undefined. ***  (1/29) [START] Verifying that Xcode is accessible      (1/29) [END - 0.09s] Verifying that Xcode is accessible ***  (2/29) [START] Checking if Xcode version is supported      (2/29) [END - 0.00s] Checking if Xcode version is supported ***  (3/29) [START] Checking for Rosetta      (3/29) [END - 0.00s] Checking for Rosetta ***  (4/29) [START] Running xcode-select --switch for /Applications/Xcode.app ***  (5/29) [START] Enabling developer mode ***  (6/29) [START] Creating default service data directories      (6/29) [END - 0.00s] Creating default service data directories ***  (7/29) [START] Creating a symlink to the current Xcode application path ***  (8/29) [START] Preparing control integrations      (7/29) [END - 0.00s] Creating a symlink to the current Xcode application path      (8/29) [END - 0.00s] Preparing control integrations ***  (9/29) [START] Configuring CouchDB *** (10/29) [START] Configuring Redis *** (11/29) [START] Configuring Apache *** (12/29) [START] Configuring service launchd jobs     (11/29) [END - 0.00s] Configuring Apache     (10/29) [END - 0.00s] Configuring Redis      (9/29) [END - 0.00s] Configuring CouchDB     (12/29) [END - 0.00s] Configuring service launchd jobs *** (13/29) [START] Creating service groups *** (14/29) [START] Configuring CouchDB to use all cores *** (15/29) [START] Configuring logging     (14/29) [END - 0.00s] Configuring CouchDB to use all cores     (15/29) [END - 0.00s] Configuring logging      (5/29) [END - 0.01s] Enabling developer mode     (13/29) [END - 0.01s] Creating service groups *** (16/29) [START] Creating service users      (4/29) [END - 0.01s] Running xcode-select --switch for /Applications/Xcode.app     (16/29) [END - 1.72s] Creating service users *** (17/29) [START] Configuring SSL certificates     (17/29) [END - 4.88s] FAILED: Configuring SSL certificates Failed: Could not export API server SSL certificate: Error Domain=XCSSecurity Code=-1 "OpenSSL: Error decrypting key 4306077228:error:06FFF089:digital envelope routines:CRYPTO_internal:bad key length:/System/Volumes/Data/SWE/macOS/BuildRoots/b8ff8433dc/Library/Caches/com.apple.xbs/Sources/libressl/libressl-75/libressl-2.8/crypto/apple/hmac/hmac.c:188: 4306077228:error:06FFF078:digital envelope routines:CRYPTO_internal:keygen failure:/System/Volumes/Data/SWE/macOS/BuildRoots/b8ff8433dc/Library/Caches/com.apple.xbs/Sources/libressl/libressl-75/libressl-2.8/crypto/evp/evp_pbe.c:166: 4306077228:error:23FFF073:PKCS12 routines:func(4095):pkcs12 algor cipherinit error:/System/Volumes/Data/SWE/macOS/BuildRoots/b8ff8433dc/Library/Caches/com.apple.xbs/Sources/libressl/libressl-75/libressl-2.8/crypto/pkcs12/p12_decr.c:83: 4306077228:error:23FFF075:PKCS12 routines:func(4095):pkcs12 pbe crypt error:/System/Volumes/Data/SWE/macOS/BuildRoots/b8ff8433dc/Library/Caches/com.apple.xbs/Sources/libressl/libressl-75/libressl-2.8/crypto/pkcs12/p12_decr.c:133: " UserInfo={NSLocalizedDescription=OpenSSL: Error decrypting key 4306077228:error:06FFF089:digital envelope routines:CRYPTO_internal:bad key length:/System/Volumes/Data/SWE/macOS/BuildRoots/b8ff8433dc/Library/Caches/com.apple.xbs/Sources/libressl/libressl-75/libressl-2.8/crypto/apple/hmac/hmac.c:188: 4306077228:error:06FFF078:digital envelope routines:CRYPTO_internal:keygen failure:/System/Volumes/Data/SWE/macOS/BuildRoots/b8ff8433dc/Library/Caches/com.apple.xbs/Sources/libressl/libressl-75/libressl-2.8/crypto/evp/evp_pbe.c:166: 4306077228:error:23FFF073:PKCS12 routines:func(4095):pkcs12 algor cipherinit error:/System/Volumes/Data/SWE/macOS/BuildRoots/b8ff8433dc/Library/Caches/com.apple.xbs/Sources/libressl/libressl-75/libressl-2.8/crypto/pkcs12/p12_decr.c:83: 4306077228:error:23FFF075:PKCS12 routines:func(4095):pkcs12 pbe crypt error:/System/Volumes/Data/SWE/macOS/BuildRoots/b8ff8433dc/Library/Caches/com.apple.xbs/Sources/libressl/libressl-75/libressl-2.8/crypto/pkcs12/p12_decr.c:133: } Total time: 6.70 seconds Error initializing service: Could not export API server SSL certificate: Error Domain=XCSSecurity Code=-1 "OpenSSL: Error decrypting key 4306077228:error:06FFF089:digital envelope routines:CRYPTO_internal:bad key length:/System/Volumes/Data/SWE/macOS/BuildRoots/b8ff8433dc/Library/Caches/com.apple.xbs/Sources/libressl/libressl-75/libressl-2.8/crypto/apple/hmac/hmac.c:188: 4306077228:error:06FFF078:digital envelope routines:CRYPTO_internal:keygen failure:/System/Volumes/Data/SWE/macOS/BuildRoots/b8ff8433dc/Library/Caches/com.apple.xbs/Sources/libressl/libressl-75/libressl-2.8/crypto/evp/evp_pbe.c:166: 4306077228:error:23FFF073:PKCS12 routines:func(4095):pkcs12 algor cipherinit error:/System/Volumes/Data/SWE/macOS/BuildRoots/b8ff8433dc/Library/Caches/com.apple.xbs/Sources/libressl/libressl-75/libressl-2.8/crypto/pkcs12/p12_decr.c:83: 4306077228:error:23FFF075:PKCS12 routines:func(4095):pkcs12 pbe crypt error:/System/Volumes/Data/SWE/macOS/BuildRoots/b8ff8433dc/Library/Caches/com.apple.xbs/Sources/libressl/libressl-75/libressl-2.8/crypto/pkcs12/p12_decr.c:133: " UserInfo={NSLocalizedDescription=OpenSSL: Error decrypting key 4306077228:error:06FFF089:digital envelope routines:CRYPTO_internal:bad key length:/System/Volumes/Data/SWE/macOS/BuildRoots/b8ff8433dc/Library/Caches/com.apple.xbs/Sources/libressl/libressl-75/libressl-2.8/crypto/apple/hmac/hmac.c:188: 4306077228:error:06FFF078:digital envelope routines:CRYPTO_internal:keygen failure:/System/Volumes/Data/SWE/macOS/BuildRoots/b8ff8433dc/Library/Caches/com.apple.xbs/Sources/libressl/libressl-75/libressl-2.8/crypto/evp/evp_pbe.c:166: 4306077228:error:23FFF073:PKCS12 routines:func(4095):pkcs12 algor cipherinit error:/System/Volumes/Data/SWE/macOS/BuildRoots/b8ff8433dc/Library/Caches/com.apple.xbs/Sources/libressl/libressl-75/libressl-2.8/crypto/pkcs12/p12_decr.c:83: 4306077228:error:23FFF075:PKCS12 routines:func(4095):pkcs12 pbe crypt error:/System/Volumes/Data/SWE/macOS/BuildRoots/b8ff8433dc/Library/Caches/com.apple.xbs/Sources/libressl/libressl-75/libressl-2.8/crypto/pkcs12/p12_decr.c:133: }
Posted
by
Post not yet marked as solved
2 Replies
915 Views
I've received this message when I try to run the program: "Failed to install the requested application The bundle identifier of the application could not be determined. Ensure that the application's Info.plist contains a value for CFBundleIdentifier." What I can do to fix it?
Posted
by
Post marked as solved
32 Replies
4.9k Views
Hi, Anyone else seeing Xcode Server initialise failing while configuring SSL certificates? Failure: Could not export API server SSL certificate: Error Domain=XCSSecurity Code=-1 "OpenSSL: Error decrypting key 4369385004:error:06FFF089:digital envelope routines:CRYPTO_internal:bad key length:<snip> Same result after sudo xcscontrol --reset + restart Xcode Server 13.1 or 13.2b macOS Monterey 12.1 (21C5021h) on Intel or Apple
Posted
by
Post not yet marked as solved
0 Replies
317 Views
when I tried to open xampp I faced a problem Xcode quit unexpectedly while using the libMainThreadChecker.dylib plug-in.
Posted
by
Post not yet marked as solved
1 Replies
501 Views
Hi All, After the upgrade to Xcode 13 final, I can’t seem to get Xcode Server to code sign my app in a bot. Error was always: Warning: unable to build chain to self-signed root for signer "Apple Development: OS X Server (...)" Building the app directly using Xcode interactively works though. Xcode version: 13 (13A233) macOS version: Monterey 12.0 Beta (21A5534d)
Posted
by
Post not yet marked as solved
2 Replies
949 Views
On the newest AppleTV 4K, I have updated to TVOS 15. Because of that, Xcode 12.5.1 is building, but never runs the project because of the fetchsymbols issue: Failed to start remote service "com.apple.dt.fetchsymbols" on device. Please help! My option was to downgrade, however, it is not doable on the newest AppleTV 4K, 2021.
Posted
by
Post not yet marked as solved
0 Replies
351 Views
hi. i wanted to archiv my ios project and i choose my Iphone as remot device. I have already used this Iphone the first time to achiv and it worked. but now i get error: "the selected device does not support archiving. The selected iOS device is not supported to create an archive. Select a remote device from the drop-down menu before archiving.". But i have selected my Iphone
Posted
by
Post not yet marked as solved
0 Replies
434 Views
Hi, this is to help people who facing this message when building application in their iOS devices. Here are steps to solve this problem. 1- Go to the setting in your iphone 2- General 3- Device managment (under VPN) 4- click on Apple Development 5- click on Trust "Apple Development: youremail@email" 6- you will like this message , press Trust Great! your project will open in your iOS device now. Note: don't forget to set signing setting in your Xcode
Posted
by
Post not yet marked as solved
0 Replies
603 Views
I use the command to compile the project, and there will be errors: /bin/sh -c /Users/lgh/Library/Developer/Xcode/DerivedData/OriginalSweeper-deuxhkhtebxhwzaspabzexwnpgcy/Build/Intermediates.noindex/ArchiveIntermediates/OriginalSweeper/IntermediateBuildFilesPath/OriginalSweeper.build/Release-iphoneos/OriginalSweeper.build/Script-3F94AC9F80668846F05679F5.sh /bin/sh: /Users/lgh/Library/Developer/Xcode/DerivedData/OriginalSweeper-deuxhkhtebxhwzaspabzexwnpgcy/Build/Intermediates.noindex/ArchiveIntermediates/OriginalSweeper/IntermediateBuildFilesPath/OriginalSweeper.build/Release-iphoneos/OriginalSweeper.build/Script-3F94AC9F80668846F05679F5.sh: /bin/sh: bad interpreter: Bad address ** ARCHIVE FAILED ** The following build commands failed: PhaseScriptExecution [CP]\ Check\ Pods\ Manifest.lock /Users/lgh/Library/Developer/Xcode/DerivedData/OriginalSweeper-deuxhkhtebxhwzaspabzexwnpgcy/Build/Intermediates.noindex/ArchiveIntermediates/OriginalSweeper/IntermediateBuildFilesPath/OriginalSweeper.build/Release-iphoneos/OriginalSweeper.build/Script-3F94AC9F80668846F05679F5.sh (1 failure)
Posted
by