Explore Xcode Cloud workflows

RSS for tag

Discuss the WWDC21 session Explore Xcode Cloud workflows.

Posts under wwdc21-10268 tag

13 Posts

Post

Replies

Boosts

Views

Activity

Xcode cloud and unlinking SCM
Today, playing with Xcode cloud I came across a really nasty, undesirable effect of executing steps in an undocumented order. I had a project with a brand new workflow, I had it linked to my SCM (gitlab self-hosted) and it worked. Today, it didn't work so I thought, OK, this thing is beta and something must not be working that well, let's reset everything and start over. I deleted the workflow, then cleared the Xcode cloud data (this removes everything from your Xcode cloud tabs on your product and, unfortunately, from your profile as well). Then proceed to navigate to your profile to unlink the SCM connection and it appears to be empty. Because of this, I removed my application in gitlab (which is the token provider for oath) to start again, thinking I did something wrong and I want to follow the steps brand new again. I went to Xcode, tried to create a new workflow and link my source control provider and... I get a "continue to authorise your repository" button, which is now broken because that application doesn't exist. The question is, does anybody know of a way to unlink my SCM from my account? The Xcode cloud tab under my profile tells me I need to create a workflow to access anything from there, but I am completely unable to complete that creation as the workflow requires it to be connected to a self hosted instance. This was extremely easy to get wrong.
5
0
2.3k
Oct ’23
XCode Achieve and distribute to store
when i run my app in the simulator all checks out but when i create an achieve and sent to test-flight i get different result. the App doesn't change from my previous version I uploaded earlier, its the same version even though it's a different version or build number. what could i be doing wrong. i am using XCode 13.3. i do clear the project build and also clear the xcode cache from disk
0
0
713
Apr ’22
Cannot find CFBundleDisplayName in info.plist file
Hi, I have a question, I added CFBundleDisplayName in info.plist file on my app, but unable to see the same when I open the info.plist file under ./Payload/MyAPP.app. **** Additional Details*** Building archive using "xcodebuild -scheme" command(CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO). Generating IPA using "xcodebuild -exportArchive" command. Thanks
3
0
1.5k
Feb ’22
Module compiled with Swift 5.2.4 cannot be imported by the Swift 5.5.1 compiler, Xcode 13.1 Error
So basically I faced this error on Xcode 13.1 and tried building the 3.5 to 4.2 version but did not get built. Module compiled with Swift 5.2.4 cannot be imported by the Swift 5.5.1 compiler: /Users/Documents/Workspace/Project/Carthage/Build/iOS/ObjectMapper.framework/Modules/ObjectMapper.swiftmodule/x86_64-apple-ios-simulator.swiftmodule Currently same error with github "Hearst-DD/ObjectMapper" "3.5.3" to github "Hearst-DD/ObjectMapper" "4.2.0" System: macOSBigSur: 11.6 (20G165) Could anyone please help me on this? I tried a couple of StackOverflow answers but does not seem to be working. Tried with NEW BUILD SYSTEM vs LEGACY BUILD SYSTEM. and some options in build settings.
2
0
4.1k
Jan ’22
Xcode Cloud to GitLab - Connection Error -"Your hostname must be publicly resolvable."
We are trying to implement Xcode Cloud for CI. We have a private repository in GitLab that can be accessed via VPN. We are experiencing the following errors while connecting Xcode Cloud to GitLab. We followed the steps provided by Apple. Connection Error to https://git------.com. Your hostname must be publicly resolvable. How can I resolve this issue? Thanks
1
0
1.4k
Dec ’21
Xcode Cloud fails to archive an app
When running my "Internal Testing" workflow, which basically archives the app and uploads it for internal TestFlight Testing, it fails with the following error: Package.resolved file is missing from the repository I'm using Swift Packages to add 3 dependencies to the Xcode project. All of them are open source and available on GitHub. I don't see any Package.resolved file locally, so I can't commit it. Swift Packages are managed via Xcode.
2
0
2.5k
Dec ’21
Xcode Cloud question
We have 75 Mac Pros in our own corporate datacenter that currently run our Jenkins instances for CI/CD. Can we repurpose these to serve as Xcode Cloud nodes for our builds, or does Xcode Cloud require that the builds occur on Apple's machines? If it must be done on Apple's hardware, who is a security contact at Apple who we can get our security team in touch with to vet the Xcode Cloud service? Thanks
2
0
1.6k
Aug ’21
On Xcode Cloud, my macOS archive fails with NSLocalizedDescription=exportOptionsPlist error for key 'method': expected one of {}, but found development
On Xcode Cloud, my macOS archive fails with NSLocalizedDescription=exportOptionsPlist error for key 'method': expected one of {}, but found development It succeeds locally and on my other build systems, it only fails on Xcode Cloud. Any thoughts?
0
0
1k
Aug ’21
Updating user permissions
Hi all, I am currently a software engineering student and last week I was able to work with files using the terminal. However starting today when I tried to do go into a folder using the terminal it said "request denied". so I go into the terminal's information and I have been removed from the permissions and when I went to add myself again it said "the operation can't be completed because I don't have the necessary permissions".
0
0
519
Aug ’21
Cloud SCM
Hi, looking forward to trying this out! Couple questions: How are the workflows stored? Can the workflows themselves be versioned in source control so that changes to the build can be tracked and rolled back if needed? For Unity games on iOS, the Xcode project is generated and not usually committed in a scm repo. Will there be a way to start an xcode cloud build without a source repo, downloading the zipped xcode project? (Or would we need to commit the generated folder to a git repo and then start a build from there.)
1
0
894
Jul ’21
Xcode 13 Breaks Linking to macOS Private Frameworks?
Since Apple withdrew the API for accessing Safari bookmarks ten years ago and is still working on a replacement API (FB5929825 and FB7772296), my macOS apps (Notarized Developer ID) have accessed Safari bookmarks via an XPC service which links to /System/Library/PrivateFrameworks/Safari.framework. Doing this requires that the XPC service' Build Settings have the following Other Linker Flags: -weak_framework Safari -Wl,-dyld_env -Wl,DYLD_VERSIONED_FRAMEWORK_PATH=/System/Library/StagedFrameworks/Safari (The above is complicated by the fact that the target Safari framework can sometimes be in a staged framework depending on Apple's development cycle.) Anyhow, upon trying to build with Xcode 13 for the first time this morning, I found that the Ld command fails when linking my XPC service, emitting this error: Undefined symbols for architecture arm64:   "_OBJC_CLASS_$_WebBookmarkList", referenced from:       objc-class-ref in SheepSafariHelper.o ld: symbol(s) not found for architecture arm64 The class WebBookmarkList is indeed defined in the Safari private framework and is apparently the first such class that it attempts to link to. I know that Safari framework is still there, because my app still builds and links with no errors in Xcode 12.5, and runs OK in macOS 12. (I am running both Xcodes in macOS 12.) Does anyone know what changed in Xcode 13, and is there a workaround?
2
0
2.6k
Jul ’21
Xcode cloud and unlinking SCM
Today, playing with Xcode cloud I came across a really nasty, undesirable effect of executing steps in an undocumented order. I had a project with a brand new workflow, I had it linked to my SCM (gitlab self-hosted) and it worked. Today, it didn't work so I thought, OK, this thing is beta and something must not be working that well, let's reset everything and start over. I deleted the workflow, then cleared the Xcode cloud data (this removes everything from your Xcode cloud tabs on your product and, unfortunately, from your profile as well). Then proceed to navigate to your profile to unlink the SCM connection and it appears to be empty. Because of this, I removed my application in gitlab (which is the token provider for oath) to start again, thinking I did something wrong and I want to follow the steps brand new again. I went to Xcode, tried to create a new workflow and link my source control provider and... I get a "continue to authorise your repository" button, which is now broken because that application doesn't exist. The question is, does anybody know of a way to unlink my SCM from my account? The Xcode cloud tab under my profile tells me I need to create a workflow to access anything from there, but I am completely unable to complete that creation as the workflow requires it to be connected to a self hosted instance. This was extremely easy to get wrong.
Replies
5
Boosts
0
Views
2.3k
Activity
Oct ’23
XCode Cloud
Does Apple plan to introduce an XCode Cloud REST API in addition to its webhooks in the not too distant future?
Replies
1
Boosts
0
Views
1.3k
Activity
Jun ’22
XCode Achieve and distribute to store
when i run my app in the simulator all checks out but when i create an achieve and sent to test-flight i get different result. the App doesn't change from my previous version I uploaded earlier, its the same version even though it's a different version or build number. what could i be doing wrong. i am using XCode 13.3. i do clear the project build and also clear the xcode cache from disk
Replies
0
Boosts
0
Views
713
Activity
Apr ’22
Cannot find CFBundleDisplayName in info.plist file
Hi, I have a question, I added CFBundleDisplayName in info.plist file on my app, but unable to see the same when I open the info.plist file under ./Payload/MyAPP.app. **** Additional Details*** Building archive using "xcodebuild -scheme" command(CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO). Generating IPA using "xcodebuild -exportArchive" command. Thanks
Replies
3
Boosts
0
Views
1.5k
Activity
Feb ’22
Module compiled with Swift 5.2.4 cannot be imported by the Swift 5.5.1 compiler, Xcode 13.1 Error
So basically I faced this error on Xcode 13.1 and tried building the 3.5 to 4.2 version but did not get built. Module compiled with Swift 5.2.4 cannot be imported by the Swift 5.5.1 compiler: /Users/Documents/Workspace/Project/Carthage/Build/iOS/ObjectMapper.framework/Modules/ObjectMapper.swiftmodule/x86_64-apple-ios-simulator.swiftmodule Currently same error with github "Hearst-DD/ObjectMapper" "3.5.3" to github "Hearst-DD/ObjectMapper" "4.2.0" System: macOSBigSur: 11.6 (20G165) Could anyone please help me on this? I tried a couple of StackOverflow answers but does not seem to be working. Tried with NEW BUILD SYSTEM vs LEGACY BUILD SYSTEM. and some options in build settings.
Replies
2
Boosts
0
Views
4.1k
Activity
Jan ’22
Xcode Cloud to GitLab - Connection Error -"Your hostname must be publicly resolvable."
We are trying to implement Xcode Cloud for CI. We have a private repository in GitLab that can be accessed via VPN. We are experiencing the following errors while connecting Xcode Cloud to GitLab. We followed the steps provided by Apple. Connection Error to https://git------.com. Your hostname must be publicly resolvable. How can I resolve this issue? Thanks
Replies
1
Boosts
0
Views
1.4k
Activity
Dec ’21
Xcode Cloud fails to archive an app
When running my "Internal Testing" workflow, which basically archives the app and uploads it for internal TestFlight Testing, it fails with the following error: Package.resolved file is missing from the repository I'm using Swift Packages to add 3 dependencies to the Xcode project. All of them are open source and available on GitHub. I don't see any Package.resolved file locally, so I can't commit it. Swift Packages are managed via Xcode.
Replies
2
Boosts
0
Views
2.5k
Activity
Dec ’21
Xcode Cloud question
We have 75 Mac Pros in our own corporate datacenter that currently run our Jenkins instances for CI/CD. Can we repurpose these to serve as Xcode Cloud nodes for our builds, or does Xcode Cloud require that the builds occur on Apple's machines? If it must be done on Apple's hardware, who is a security contact at Apple who we can get our security team in touch with to vet the Xcode Cloud service? Thanks
Replies
2
Boosts
0
Views
1.6k
Activity
Aug ’21
On Xcode Cloud, my macOS archive fails with NSLocalizedDescription=exportOptionsPlist error for key 'method': expected one of {}, but found development
On Xcode Cloud, my macOS archive fails with NSLocalizedDescription=exportOptionsPlist error for key 'method': expected one of {}, but found development It succeeds locally and on my other build systems, it only fails on Xcode Cloud. Any thoughts?
Replies
0
Boosts
0
Views
1k
Activity
Aug ’21
Updating user permissions
Hi all, I am currently a software engineering student and last week I was able to work with files using the terminal. However starting today when I tried to do go into a folder using the terminal it said "request denied". so I go into the terminal's information and I have been removed from the permissions and when I went to add myself again it said "the operation can't be completed because I don't have the necessary permissions".
Replies
0
Boosts
0
Views
519
Activity
Aug ’21
Cloud SCM
Hi, looking forward to trying this out! Couple questions: How are the workflows stored? Can the workflows themselves be versioned in source control so that changes to the build can be tracked and rolled back if needed? For Unity games on iOS, the Xcode project is generated and not usually committed in a scm repo. Will there be a way to start an xcode cloud build without a source repo, downloading the zipped xcode project? (Or would we need to commit the generated folder to a git repo and then start a build from there.)
Replies
1
Boosts
0
Views
894
Activity
Jul ’21
lost connection to the debugger on my mac
I recently updated to Monterey from big sur on my m1 MacBook and now I tried running a simple code in CPP using xcode and it show this error where it says lost connection to the debugger on my mac . I just started coding so is it some bug in mac os Monterey or something is wrong in the setting
Replies
4
Boosts
0
Views
3.1k
Activity
Jul ’21
Xcode 13 Breaks Linking to macOS Private Frameworks?
Since Apple withdrew the API for accessing Safari bookmarks ten years ago and is still working on a replacement API (FB5929825 and FB7772296), my macOS apps (Notarized Developer ID) have accessed Safari bookmarks via an XPC service which links to /System/Library/PrivateFrameworks/Safari.framework. Doing this requires that the XPC service' Build Settings have the following Other Linker Flags: -weak_framework Safari -Wl,-dyld_env -Wl,DYLD_VERSIONED_FRAMEWORK_PATH=/System/Library/StagedFrameworks/Safari (The above is complicated by the fact that the target Safari framework can sometimes be in a staged framework depending on Apple's development cycle.) Anyhow, upon trying to build with Xcode 13 for the first time this morning, I found that the Ld command fails when linking my XPC service, emitting this error: Undefined symbols for architecture arm64:   "_OBJC_CLASS_$_WebBookmarkList", referenced from:       objc-class-ref in SheepSafariHelper.o ld: symbol(s) not found for architecture arm64 The class WebBookmarkList is indeed defined in the Safari private framework and is apparently the first such class that it attempts to link to. I know that Safari framework is still there, because my app still builds and links with no errors in Xcode 12.5, and runs OK in macOS 12. (I am running both Xcodes in macOS 12.) Does anyone know what changed in Xcode 13, and is there a workaround?
Replies
2
Boosts
0
Views
2.6k
Activity
Jul ’21